Guest User

Untitled

a guest
Jul 24th, 2018
19,984
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  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. })();
Comments
Add Comment
Please, Sign In to add comment