Last active
March 2, 2019 04:08
-
-
Save matmunn/92c3daf1a6288164588e9831aab06af3 to your computer and use it in GitHub Desktop.
Userscripts
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 Hide Gmail Ads | |
// @namespace https://matmunn.me/ | |
// @version 0.1 | |
// @description Hide the ads in Gmail | |
// @author Mat Munn <[email protected]> | |
// @match https://mail.google.com/mail/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
GM_addStyle(".aKB { display: none!important; }"); | |
})(); |
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 Polymer Disable | |
// @match *://www.youtube.com/* | |
// @exclude *://www.youtube.com/embed/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
var url = window.location.href; | |
if (url.indexOf("disable_polymer") === -1) { | |
if (url.indexOf("?") > 0) { | |
url += "&"; | |
} else { | |
url += "?"; | |
} | |
url += "disable_polymer=1"; | |
window.location.href = url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment