Edit: Replies to this thread indicate this is not fully correct as it exists on all browsers; and is likely an ad thing.
If the person who tweeted this scrolled down in the hackernews thread, they’d see this code was misinterpreted. It’s part of an anti Adblock script that runs 5s after page load. Still shitty, but less insidious
Don’t use the youtube website. On any browser. Use freetube instead, if your situation and use case allows it. No Google bullshit required. Loads fast, no ads, no tracking. Fully self contained.
I really appreciate you saying “if your situation and use case allows it”. I’m sick of people “suggesting” these kind of things by just saying “don’t do this” “stop doing that” while completely ignoring that not everyone has the same use cases, preferences and possibilities for such.
I wish there was a GTK Piped client. Freetube has that kinda janky feeling of a browser (it’s an Electron app, so not surprising) and I don’t see why I wouldn’t just use Piped in a browser then.
Does it proxy requests like piped?
You can proxy through Invidious or use a local API
Does freetube show recommendations? Most free clients seem to scrape your subscriptions and lack features like playlists.
Whoever posted this is not a programmer. Does no conditional on that code so it would run on every browser on every session so where’s the check for Firefox?
Unless they are claiming that it is injected at runtime. But that’s easily provable/disprovable with agent spoofing.
In the demo I saw they did an agent spoofing to Chrome and the delay went away, but it didn’t look very extensively tested. As others said, the disappearance on reload could easily be because they thought he was returning to the page and had already seen the ad/been punished for not seeing the ad and so something ad-related disappeared instead.
Iirc the thing is it loads a different js file when it detects chrome which doesn’t have the 5s delay. The reasoning is this is part of some anti adblocker code and chrome didn’t need the extra logic.
So it’s got nothing to do with Firefox it’s to do with preventing and blocking so it’ll happen on Chrome as well.
Well chrome doesn’t need the 5s delay.
Chrome doesn’t need a 5 second delay to implement ad blocking, or Chrome doesn’t need a five second delay because it’s Chrome?
Does an important difference here because one is anti-competitive and the other isn’t.
yea there does appear to be delay but it doesnt target firefox users specifically (i think) or atleast isn’t obvious to me cuz the code is obfuscated. more likely related to ads (since there is a 5 second delay before you can skip ads). anti-adblock maybe yes.
Can confirm it’s happening to me even on Chrome (they won’t let me remove it at work )
“Here’s a screenshot of nothing to prove that I found code!”
Laughts in agent spoofing
Browser detection is rarely done through User Agent lookup anymore. Nowadays we determine browser through feature detection.
And yet in this case if I change my agent to any non-FF value while using FF, videos load immediately.
I set my agent back to FF, 5 second delay.
I won’t spoof the agent. I want Google to know I’ll keep using Firefox no matter what. Except for YouTube, I don’t use any other service of theirs, too shitty.
The best way to make them back down is to show we won’t bow.
The other day, I finally switched to ProtonMail. I still just forward my gmail inbox for now because I’m too lazy to go through all my accounts and change the email all at once. In due time, I will have switched. Fuck Google.
I will make a call to a friend of mine called EU to solve this problem.
EU legislation taxi
uBlock on firefox here, no User Agent spoofing, videos load in ~1-2 seconds as normal still. Wouldn’t surprise me if it’s used in nicher circumstances though.
deleted by creator