Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name youtube_disable_polymer
- // @namespace local
- // @version 0.1
- // @match http*://*.youtube.com/*
- // @grant none
- // @run-at document-start
- // ==/UserScript==
- (function() {
- 'use strict';
- var href = document.location.href;
- if (href.indexOf("/embed/") == -1) {
- if (href.indexOf("disable_polymer") == -1) {
- document.location += (href.indexOf("?") == -1 ? "?":"&") + "disable_polymer=1";
- }
- }
- })();
Add Comment
Please, Sign In to add comment