diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 3a7846fa4..7267d60cd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,8 +21,7 @@ assignees: '' - ..deactivate other extensions running on YouTube? (or use an incognito window after activating this extension to run there / _chrome://extensions `details` chrome://extensions/?id=bnomihfieiccainjcjblhegjgglakjdd_ ) - ..open the Browser-console, with the `F12`-Key, before/when the error occures? (then hopefully you'll see an error message in the console). - ...copy the YouTube-DOM shown above the console (`F12`) in case YouTube is giving you a new verson. You can copying the root element `` in the top after the bug happened: -![chrome](https://github.com/code-charity/youtube/assets/25022245/ab976601-516a-40ad-970a-a5dbfc490c06) - ![Firefox](https://github.com/code-charity/youtube/assets/25022245/d5c2cd43-b77c-4c65-b9ba-cb6e85a18d9c) + (FireFox:) - There are 2-3 different versions depending if you open a new window or clicked a link on youtube --- diff --git a/.github/ISSUE_TEMPLATE/wish-or-feature-request---with-bounty-payment.md b/.github/ISSUE_TEMPLATE/wish-or-feature-request---with-bounty-payment.md index 45336e09d..83697def2 100644 --- a/.github/ISSUE_TEMPLATE/wish-or-feature-request---with-bounty-payment.md +++ b/.github/ISSUE_TEMPLATE/wish-or-feature-request---with-bounty-payment.md @@ -2,7 +2,7 @@ name: Wish or Feature request, with BOUNTY PAYMENT about: Wish or Feature request, with BOUNTY PAYMENT title: '' -labels: Bounty!, Feature request, good first issue, help wanted +labels: Feature request, good first issue, help wanted assignees: '' --- diff --git a/.github/README.md b/.github/README.md index dbb087cc3..f2f2c74e7 100644 --- a/.github/README.md +++ b/.github/README.md @@ -6,7 +6,7 @@ -[ ](https://github.com/code-for-charity/ImprovedTube-for-YouTube/releases/latest "Release.zip")
Report a bug · +[ ](https://github.com/code-for-charity/ImprovedTube-for-YouTube/releases/latest "Release.zip")
Report a bug · Wish a feature · Contribute · Donate · [Test🧪](https://github.com/code-for-charity/ImprovedTube-for-YouTube/archive/refs/heads/master.zip "Latest.zip") @@ -41,7 +41,7 @@ Today adding features can be easier & so motivating as there are 500 000 users. - [ ] Documentation, tooltips - [ ] Full-page GUI, watch-history, dashboard - [ ] Clean YT's DOM & avoid CPU-rendering - - [ ] Smart [filtering /discovery](https://github.com/code-for-charity/ImprovedTube-for-YouTube/issues/1451), [tl](https://github.com/code-for-charity/ImprovedTube-for-YouTube/issues/1463), [md](https://github.com/code-charity/youtube/issues?q=is%3Aopen+sort%3Aupdated-desc+label%3A%22%3Cmeta%3E+data%22) + - [ ] Smart [filtering /discovery](https://github.com/code-for-charity/ImprovedTube-for-YouTube/issues/1451), [YT.js](https://github.com/LuanRT/YouTube.js), [M](https://github.com/code-for-charity/ImprovedTube-for-YouTube/issues/1463), [D](https://github.com/code-charity/youtube/issues?q=is%3Aopen+sort%3Aupdated-desc+label%3A%22%3Cmeta%3E+data%22) - [ ] Smart Player-[buttons](https://github.com/code-for-charity/ImprovedTube-for-YouTube/issues/1445) for all \ - [ ] Continuously include awesome code: [YCS](https://github.com/sonigy/YCS)
[Yr](https://github.com/MarcGuiselin/youtube-refined)filters, UserScripts, [n](https://github.com/raingart/Nova-YouTube-extension) & **([i](https://github.com/ThomasTavernier/Improve-Crunchyroll)**, [p](https://github.com/ppixiv/ppixiv), [r](https://github.com/refined-github/refined-github) [o](https://github.com/ovity/octotree), ..) - [ ] Run on m.youtube.com (grey-out some) diff --git a/js&css/extension/www.youtube.com/appearance/player/player.css b/js&css/extension/www.youtube.com/appearance/player/player.css index fab70daa4..ada0b1489 100644 --- a/js&css/extension/www.youtube.com/appearance/player/player.css +++ b/js&css/extension/www.youtube.com/appearance/player/player.css @@ -207,6 +207,8 @@ html[it-hide-scroll-for-details='true'] ytd-app[scrolling_] { /*-------------------------------------------------------------- # Player Size --------------------------------------------------------------*/ +/*required for firefox' autoplay:off only: */ +html[data-page-type="video"][it-player-size]:not([it-player-size='do_not_change']) #movie-player .ytp-cued-thumbnail-overlay { z-index:10 } /*-------------------------------------------------------------- # NORMAL @@ -386,7 +388,7 @@ html[data-page-type=video][it-player-size='max_width'] ytd-watch-flexy:not([full justify-content: center !important} html[data-page-type=video][it-player-size='max_width'] { - --it-player-size: 100vh;} + --it-player-size: 86vh;} html[data-page-type=video][it-player-size='max_width'] .ytp-fit-cover-video .html5-main-video { object-fit: contain !important;} @@ -583,4 +585,4 @@ html[it-player-hide-skip-overlay=true] .ytp-doubletap-ui, .ytp-doubletap-ui-lega --------------------------------------------------------------*/ html[it-hide-video-title-fullScreen='true'] .ytp-title-text > a { display: none !important; -} \ No newline at end of file +} diff --git a/js&css/web-accessible/www.youtube.com/player.js b/js&css/web-accessible/www.youtube.com/player.js index 3f09f2053..ad837c06f 100644 --- a/js&css/web-accessible/www.youtube.com/player.js +++ b/js&css/web-accessible/www.youtube.com/player.js @@ -81,11 +81,11 @@ if (DATA.keywords && !keywords) { keywords = DATA.keywords.join(', ') || ''; } if (keywords === 'video, sharing, camera phone, video phone, free, upload') { keywords = ''; } var musicIdentifiers = /(official|music|lyrics)[ -]video|(cover|studio|radio|album|alternate)[- ]version|soundtrack|unplugged|\bmedley\b|\blo-fi\b|\blofi\b|a(lla)? cappella|feat\.|(piano|guitar|jazz|ukulele|violin|reggae)[- ](version|cover)|karaok|backing[- ]track|instrumental|(sing|play)[- ]?along|卡拉OK|卡拉OK|الكاريوكي|караоке|カラオケ|노래방|bootleg|mashup|Radio edit|Guest (vocals|musician)|(title|opening|closing|bonus|hidden)[ -]track|live acoustic|interlude|featuring|recorded (at|live)/i; var musicIdentifiersTitleOnly = /lyrics|theme song|\bremix|\bAMV ?[^a-z0-9]|[^a-z0-9] ?AMV\b|\bfull song\b|\bsong:|\bsong[\!$]|^song\b|( - .*\bSong\b|\bSong\b.* - )|cover ?[^a-z0-9]|[^a-z0-9] ?cover|\bconcert\b/i; -var musicIdentifiersTitle = new RegExp(musicIdentifiersTitleOnly.source + musicIdentifiers.source, "i"); +var musicIdentifiersTitle = new RegExp(musicIdentifiersTitleOnly.source + '|' + musicIdentifiers.source, "i"); var musicRegexMatch = musicIdentifiersTitle.test(DATA.title); if (!musicRegexMatch) { var musicIdentifiersTagsOnly = /, (lyrics|remix|song|music|AMV|theme song|full song),|\(Musical Genre\)|, jazz|, reggae/i; - var musicIdentifiersTags = new RegExp(musicIdentifiersTagsOnly.source + musicIdentifiers.source, "i"); + var musicIdentifiersTags = new RegExp(musicIdentifiersTagsOnly.source + '|' + musicIdentifiers.source, "i"); keywordsAmount = 1 + ((keywords || '').match(/,/) || []).length; if ( ((keywords || '').match(musicIdentifiersTags) || []).length / keywordsAmount > 0.08) { musicRegexMatch = true}} diff --git a/js&css/web-accessible/www.youtube.com/shortcuts.js b/js&css/web-accessible/www.youtube.com/shortcuts.js index e2615a426..7c56e4f77 100644 --- a/js&css/web-accessible/www.youtube.com/shortcuts.js +++ b/js&css/web-accessible/www.youtube.com/shortcuts.js @@ -587,28 +587,20 @@ ImprovedTube.shortcutTranscript = function () { /*------------------------------------------------------------------------------ 4.7.22 LIKE ------------------------------------------------------------------------------*/ - ImprovedTube.shortcutLike = function () { - var like = (document.querySelectorAll('#menu #top-level-buttons-computed ytd-toggle-button-renderer button')[0]); - if (like) { - like.click(); - } + var like = document.querySelector('#menu #top-level-buttons-computed #segmented-like-button ytd-toggle-button-renderer button'); + if (like) {like.click();} }; - /*------------------------------------------------------------------------------ 4.7.23 DISLIKE ------------------------------------------------------------------------------*/ - ImprovedTube.shortcutDislike = function () { - var like = (document.querySelectorAll('#menu #top-level-buttons-computed ytd-toggle-button-renderer button')[1]); - if (like) { - like.click(); - } + var dislike = document.querySelector('#menu #top-level-buttons-computed #segmented-dislike-button ytd-toggle-button-renderer button'); + if (dislike) { dislike.click();} }; /*------Report------*/ - ImprovedTube.shortcutReport = function () { try{document.querySelectorAll("tp-yt-iron-dropdown").forEach(el => el.style.opacity = 0); document.querySelector('svg path[d^="M7.5,12c0,0.83-0.67,1.5-1.5"]').closest("button").click();document.querySelectorAll("tp-yt-iron-dropdown").forEach(el => el.style.opacity = 0)} diff --git a/manifest.json b/manifest.json index 71811bc70..4235e683b 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "short_name" : "ImprovedTube", "name": "'Improve YouTube!' 🎧 (for YouTube & Videos)", "description": "__MSG_description_ext__", - "version": "4.443", + "version": "4.500", "default_locale": "en", "icons": { "16": "stuff/icons/16.png", diff --git a/menu/index.html b/menu/index.html index 9ac8354d5..191fdae52 100644 --- a/menu/index.html +++ b/menu/index.html @@ -1,48 +1,49 @@ - - - - - - ImprovedTube - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + ImprovedTube + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +