Advertisement
Xyberviri

HowToDeleteOnVideoBannerAdsOnYouTube

Jun 22nd, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. hello random internet, do you hate banner ads on youtube that pop up on top of video content? this is how you get rid of that shit
  2.  
  3. open the developer console and type:
  4.  
  5. $( ".video-ads" ).remove();
  6. document.getElementById("video-ads").remove();
  7. document.getElementById("player-ads").remove();
  8. document.getElementById("google_companion_ad_div").remove();
  9.  
  10. fixed (for now)
  11.  
  12. how does this work? Youtube loads those ads into a div container(one of several) and all we have to do is delete one of them so the scripts running to load the ads are unable to target it, ie they just blow up.
  13.  
  14.  
  15. <div class="video-ads" ....> This seems to be the main container parent to load the ads into, there are other children tags inside of it but deleting this one is the quickest and cleanest to delete all of them.
  16.  
  17. If they go and move the tag around or change the name then all you have to do is right click on that stupid image and choose "inspect element" and find a class property of one of the tags above the video container and below the video player. .
  18.  
  19.  
  20. fuck you google for making ads pop up on top of video content in addition to playing during content, in addition to playing before content.. like fucking Christ i see why you all got rid of "dont be evil", you assholes are the reason we are heading towards Idiocracy.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement