Youtube Video Disabler using Keyword

Disable Youtube Video base on Keyword

  1. // ==UserScript==
  2. // @name Youtube Video Disabler using Keyword
  3. // @name:id Youtube Video Disabler dengan kata kunci
  4. // @namespace YoutubeVideoDisablerKeyword
  5. // @description Disable Youtube Video base on Keyword
  6. // @description:id Menonaktifkan Vieo Youtube berdasarkan kata kunci
  7. // @include https://www.youtube.com/watch*
  8. // @version 1.2016.1
  9. // @grant none
  10. // ==/UserScript==
  11. var f = document.querySelector('span#eow-title');
  12. var judul = f.title.split(" ");
  13. var kyWrd = ["pregnant"]; // Change with blocked keyword, can be an array
  14. for (var i; i < kyWrd.length; i++)
  15. {
  16. for (var j; j < judul.length; j++) {
  17. if(kyWrd[i] == judul[j])
  18. {
  19. var g = document.querySelector('#movie_player');
  20. g.remove();
  21. }
  22. }
  23. }