DescriptionVideo ads on YouTube are blocked by rewriting the flashvars used to configure the in-video ads. However when you click on another video, the flash player is told via JavaScript which video and which ads to show next, bypassing our flashvars rewrite code.
However YouTube can only do that when history.pushState is available. Otherwise it navigates to the URL of the next video, where the player is loaded and the flashvars can be rewritten again.
So I have disabled history.pushState for youtube.com, in order to block ads also in subsequent YouTube videos.
Patch Set 1 #Patch Set 2 : Only disable history.pushState if actually blocking ads #
Total comments: 4
Patch Set 3 : Made pushStateDisabled a local variable #Patch Set 4 : Addressed comments #MessagesTotal messages: 6
|