Live data from Hacker News

uBlock filter list to hide all YouTube Shorts

github.com

361–362 of 362 posts

Re: uBlock filter list to hide all YouTube Shorts

#361

Earlier quoted context omitted.

i'm the same as you, but YT has started to place its content behind sign-in wall Anon usage + uBlock and VPN, is a dead man walking

> YT has started to place its content behind sign-in wall Any examples of that?

Try opening any monetized video behind a VPN service, with a clean browser cache, and not using chrome .

50/50 it will play, without logging in 1st

Re: uBlock filter list to hide all YouTube Shorts

#362

In addition to the unhook addon that others also recommended and is great, I would also suggest, as an alternative, setting a redirection rule from "www.youtube.com/shorts/XYWZ" to "www.youtube.com/watch?v=XYWZ". This will play the short but in the classical youtube video (landscape) format, with no infinite scrolling, or replay or autoplay (assuming these are in general disabled), which takes away a big part of the…

I use the rule ||youtube.com/shorts/*$uritransform=/shorts\/(.*)/watch\/\$1/` in uBlock Origin. (Except that it doesn't work if you click on a short from YouTube's interface - it loads with JavaScript which bypasses the redirection.)

try tapermonkey script

``` // ==UserScript== // @name YouTube Shorts → Normal Player // @match ://www.youtube.com/ // @run-at document-start // ==/UserScript==

function redirectShorts() { const match = location.pathname.match(/^\/shorts\/([a-zA-Z0-9_-]+)/); if (match) { location.replace(`/watch?v=${match[1]}`); } }

// Catch initial page load redirectShorts();

// Catch SPA navigation early (fires before page renders) document.addEventListener('yt-navigate-start', redirectShorts);

// Fallback document.addEventListener('yt-navigate-finish', redirectShorts); ```

Post reply on HN