ZoriaRPG

Tampermonkey Youtube Polymer Fix for Edge

Nov 2nd, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 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. })();
Add Comment
Please, Sign In to add comment