YouTube is currently experimenting with server-side ad injection. This means that the ad is being added directly into the video stream.

This breaks sponsorblock since now all timestamps are offset by the ad times.

For now, I set up the server to detect when someone is submitting from a browser with this happening and rejecting the submission to prevent the database from getting filled with incorrect submissions.

@sponsorblock can you see a way of working around this?
@iain the ui needs to change to include ad links, so the data for when ads happen should still be retrievable _somewhere_ in the page. Then just a bit of math
@sponsorblock That's a relief. Thank you for all your great work.

@sponsorblock

YouTube is currently experimenting with server-side ad injection

wow when/if this reaches me it might be time to break my youtube addiction and say goodbye to google

@sponsorblock according to this pinned thread on uBO's subreddit, youtube devs and adblock devs are in a pretty heated fight, like, right now

that thread gives you an idea of the kind of overengineered obfuscated overdone mess the youtube website is

google is going way too far to temporarily inconvenience adblock users

@soop
They stopped putting email ads in "Promotions" and are now part of normal main inbox.
@mrblissett @soop I wonder if they're a/b testing that; email is still categorized there as well as their injected fake-email ads for me but it would not shock me for them to put the latter in main too, ugh.
@soop @sponsorblock YouTube devs or YouTube managers/execs? Wild to think they've fired any dev who thinks it's scummy but does the work anyway and finally found the pool of devs who like ads

@KayOhtie
I am curious how this scummy. Youtube provides a service under the condition that users watch ads. They stop delivering ads seperatly and include them in the main content stream just as TV does.

I know ads can be accessibility issue. But being able to block them never was intended functionality. So where is the scum.

@drawnto @KayOhtie If your Internet Service Provider bans some of the Internet resources, it stops being an Internet Service Provider becomes a subset-of-the-Internet-provider and should be liable for false advertising because it's scummy. By the same logic, if a video hosting starts serving back videos that differ from what uploaded, it stops being a video hosting.
@KayOhtie @drawnto capitalism itself is the scum

@hazelnot

@KayOhtie

That we can agree on. It's less scum than monarchy & feudalism right now but that's hardly a good thing.

@soop @sponsorblock

That means that there's a critical mass of people using ad-blocking to trigger YouTube into fighting them.

Ergo, there are a lot of people unhappy with watching ads on YouTube. Honestly, when I watch YouTube without an ad blocker, the experience is horrible.

Ergo, when (and if) YouTube somehow wins that fight, a large number of people will be generally unhappy with YouTube. A certain percentage of them will quit YouTube.

Apparently the math works out (or at least YouTube think that the math works out) that the number of people quitting YouTube will be lower than the number of people who keep watching ads.

I hope they're wrong.

@soop @sponsorblock I got my first Serverside injected ads today 😕
@sponsorblock what the FUCK ​
@privateger @sponsorblock basically #YouTube tries to complete it's transformation into a shitty #IPTV service!

@sponsorblock …wonder if there’s enough metadata exposed to determine new offsets and block the injected ads? like, maybe something can be pulled from the transcript from known good submissions?

probably not accurate enough to make submissions on an injected video work properly, but.

@sponsorblock YouTube is freakishly devoted to staying with a monetization plan that has never worked for them and is currently not working for them
@comradevlast @sponsorblock Except it IS working for them. They're just not content with obscene profits and want even more obscene profits, but they're incompetent and going to end up reducing profits.
@dalias @comradevlast @sponsorblock the fact that YouTube will demonentize someone for saying fuck and then shows porn ads tell you everything you need to know about them. They exist only to make profit.

@dalias @comradevlast @sponsorblock

I really would like to know how much costs all these server and the huge storage.

@sponsorblock

I agree with the person who said that, if necessary, they will watch a black, silent rectangle with a countdown timer, until the ad has passed.

@sponsorblock I am surprised they haven't tried this yet tbh. If the video is directly in the stream, it is much harder to block it.

@sponsorblock you could download videos in advance, or ask people in the archiving scene if they have an archive like this. Then you could extract the timestamps pretty easy.

Another, and probably more realistic approach is, to get the add timestamps from the innertube api. I know for a fact they can be extracted from the progress-bar renderer and if I recall correctly on another more clean place. Ofc this breaks, if YouTube doesn’t transmit the add timestamps at all. But I highly doubt that will be the case, because they are needed to display the skip button and the colored progressbar. Then the algorythm to get the real timestamps would be very easy.

Since I already develop and maintain a music downloader for which I already reversengeneered youtube, I could reversengeneer it for you if you want to.

music-kraken-core

music-kraken-core

gitea.elara.ws
@sponsorblock They are spending a lot of time and money to ensure that people see ads. Be great if they invested that much energy into improving the user experience
@TrackerRoo how does that benefit the shareholders?
@sponsorblock @TrackerRoo This made me laugh and also cry a little inside

And @sponsorblock is investing a lot of time and money into playing along with Google's game.

Imagine if all that were spent on improving the user experience on open platforms, so we could stop playing Google's game!

(Yet, thanks for the effort! It sure improves life for YouTube consumers, I just don't consider it sustainable.)

@sponsorblock Does that affect people with YT Premium?
@sponsorblock this is why I always have newpipe as a backup for my subscriptions, and have that list locally backed up. I also just dont stay logged in on my web browser and only stay logged in on the youtube revanced patched app with no google services, and use cookie auto delete to always delete cookies unless I want them saved. We will always find ways to get around googles bullshit, they are just making it more difficult for the average actual user.
@sponsorblock This sounds like it could also affect tools like yt-dlp :c
@sponsorblock If they stopped spending so much money on trying to circumvent ad bypassing tools they wouldn't have to worry so much about the money lost due to ad bypassing tools
@sponsorblock the beginning of the end for YouTube I feel.

@syphist @sponsorblock #YouTube started to die when #AdPocalypse in 2016 hit and #SmallChannels got collectively punished under false pretenses.

https://www.youtube.com/watch?v=Qbok9Aju0JA

Susan Wojcicki is Ruining YouTube

YouTube
@sponsorblock The day sponsor block and ad block stops working is the day I stop using YouTubr all together.
@sponsorblock jeeze. Does Sponsor block record video length info at all, or there a way to snag that metadata accurately without ads in order to calculate offsets?
@KayOhtie yes, but video length can also change because the uploader can cut parts of it (or uncut)
@sponsorblock buh, that does make that rough :<
@sponsorblock Question: Does it still disable if I am using Premium?
@sponsorblock When you download your own video, you're getting it complete with ads? If so, that would be pretty fucked up :)
@uberprutser @sponsorblock that's what I'm afraid of - there will be no way to get a clean copy back ever again.
@vxo @uberprutser @sponsorblock unless you as the uploader login and download it from the studio site.
@kkarhan @uberprutser @sponsorblock ahhh I didn't know that was an option, cool.

@sponsorblock
Why is every proprietary software / service always like this, tryna to subjugate and screw anyone. Alright I'm quitting YouTube now. Oh wait I can't, I have quitted a long time. My decision was right all along.

I only use newpipe and invidious to make YouTube lost money and protect my privacy.

The day sponsorblock and new pipe give up on YouTube war is the day I bid YouTube adieu.

@sponsorblock

This sounds like it will affect the download tools like "yt-dlp" too.

I guess I need to brush-up on my com-skipping skills.

@sponsorblock Waow. Funny. I was expecting Youtube for more than 10 years to start doing that, as it would be the only way to insert almost unblockable ads in video streams.

But as long as ads are clickable it's ok as you said.

But in the end they might add unclickable ads... maybe in 10 years :D

@sponsorblock Hm, surely there's going to be metadata for where the ads are in order to make them unskippable in the player, right?
@sponsorblock are the timestamps provided by the "copy video URL at this time" feature also broken? It would be surprising to see if YouTube broke that feature
@eligrey they'll have some mangled code to do a conversion between the timestamps in there somewhere to do those things
@sponsorblock Can Invidious/Freetube suffer from this or this happens only in the official web client?
@LacyGreenfelder unknown, but there is a separate experiment they are running as of a few days ago which requires signing in to view videos which is affecting those frontends
@sponsorblock someone will find a way to bypass it