Remove star wars youtube player theme

Reverts the youtube player to its default state

  1. // ==UserScript==
  2. // @name Remove star wars youtube player theme
  3. // @namespace https://lkubuntu.wordpress.com/
  4. // @version 1.0
  5. // @description Reverts the youtube player to its default state
  6. // @author AnonymousMeerkat
  7. // @match https://www.youtube.com/*
  8. // @grant none
  9. // @run-at document-end
  10. // ==/UserScript==
  11. /* jshint -W097 */
  12. 'use strict';
  13.  
  14. var beyond_el;
  15. var load_int;
  16.  
  17. if (window.location.href.match(".youtube.com") !== null)
  18. {
  19. load_int = window.setInterval(function() {
  20. beyond_el = document.getElementsByClassName("ytp-project-beyond");
  21. if (beyond_el && beyond_el[0])
  22. {
  23. beyond_el = beyond_el[0];
  24. window.clearInterval(load_int);
  25. window.setInterval(beyond_main, 100);
  26. }
  27. });
  28. }
  29.  
  30. function beyond_main() {
  31. beyond_el.classList.remove("ytp-project-beyond");
  32. beyond_el.classList.remove("ytp-project-beyond-light");
  33. beyond_el.classList.remove("ytp-project-beyond-dark");
  34. }