Remove Youtube Ads(Works)

Removes all ads including video ads

  1. // ==UserScript==
  2. // @name Remove Youtube Ads(Works)
  3. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.8
  6. // @description Removes all ads including video ads
  7. // @author Wrekt/Ethan
  8. // @match https://www.youtube.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. var advideo = false;
  13.  
  14. setTimeout(function() {
  15. console.log("Removing All Youtbe Ad's!!");
  16. }, 4000);
  17.  
  18. function removead() {
  19. $(".video-stream").attr("src", "");
  20. }
  21.  
  22. (function(){
  23. if ($(".videoAdUiRedesign")[0]){
  24. advideo = true;
  25. } else {
  26. advideo = false;
  27. }
  28. $("#player-ads").remove();
  29. $("#masthead-ad").remove();
  30. $("#offer-module").remove();
  31. $(".video-ads").remove();
  32. $("#pyv-watch-related-dest-url").remove();
  33.  
  34. if (advideo == true) {
  35. removead();
  36. }
  37. setTimeout(arguments.callee, 1000);
  38. })(1000);