Guest User

Untitled

a guest
Jul 24th, 2018
14,418
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name youtube_disable_polymer
  3. // @namespace local
  4. // @version 0.1
  5. // @match http*://*.youtube.com/*
  6. // @grant none
  7. // @run-at document-start
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12. var href = document.location.href;
  13.  
  14. if (href.indexOf("/embed/") == -1) {
  15. if (href.indexOf("disable_polymer") == -1) {
  16. document.location += (href.indexOf("?") == -1 ? "?":"&") + "disable_polymer=1";
  17. }
  18. }
  19. })();
RAW Paste Data