YouShield - Remove Youtube Shorts
+1
-1
| html[consume_mode=false] ytd-app { | ||
| overflow: hidden; | ||
| overflow: hidden !important; | ||
| } | ||
@@ -4,0 +4,0 @@ |
+13
-7
@@ -225,9 +225,15 @@ (async () => { | ||
| } else { | ||
| requestAnimationFrame(check); | ||
| function check() { | ||
| let shorts = document.getElementsByTagName('ytd-reel-video-renderer'); | ||
| for (let i = 3; i < shorts.length; i++) shorts[i].remove(); | ||
| if (shorts.length != 3) requestAnimationFrame(check); | ||
| else setTimeout(() => (requestAnimationFrame(check)), 3000); | ||
| } | ||
| const url = window.location.href; | ||
| const match = url.match(/youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/); | ||
| if (match) { | ||
| const videoId = match[1]; | ||
| window.location.href = `https://www.youtube.com/watch?v=${videoId}`; | ||
| } | ||
| // requestAnimationFrame(check); | ||
| // function check() { | ||
| // let shorts = document.getElementsByTagName('ytd-reel-video-renderer'); | ||
| // for (let i = 3; i < shorts.length; i++) shorts[i].remove(); | ||
| // if (shorts.length != 3) requestAnimationFrame(check); | ||
| // else setTimeout(() => (requestAnimationFrame(check)), 3000); | ||
| // } | ||
| } | ||
@@ -234,0 +240,0 @@ } |
+1
-1
| { | ||
| "name": "YouShield - Remove YouTube Recommendations", | ||
| "version": "3.6.4", | ||
| "version": "3.6.5", | ||
| "description": "Clear YouTube recommendations, suggestions, shorts, and homepage", | ||
@@ -5,0 +5,0 @@ "permissions": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet