Last active
September 2, 2018 12:08
-
-
Save tripulse/947b8b9e8b73fc9df94b5b4ab755abae to your computer and use it in GitHub Desktop.
Tweaks URL little bit and bring old YouTube layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube Old Layout | |
// @description Tweaks URL little bit and bring old YouTube layout. | |
// @match *://www.youtube.com/* | |
// @exclude *://www.youtube.com/embed/* | |
// @grant none | |
// @run-at document-start | |
// @version 2.0 | |
// ==/UserScript== | |
(function() { | |
/** Grabbing Current URL and preventing page from load **/ | |
var URI = new URL(location.href); | |
document.execCommand("stop"); | |
/** Sets the QueryParameter and reloads the page **/ | |
URI.searchParams.set("disable_polymer", "true"); | |
if(location.href != URI.href) location.href = URI.href; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code is for Tampermonkey addon.
Here's how to Install this.