Skip to content

Instantly share code, notes, and snippets.

@matmunn
Last active March 2, 2019 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matmunn/92c3daf1a6288164588e9831aab06af3 to your computer and use it in GitHub Desktop.
Save matmunn/92c3daf1a6288164588e9831aab06af3 to your computer and use it in GitHub Desktop.
Userscripts
// ==UserScript==
// @name Hide Gmail Ads
// @namespace https://matmunn.me/
// @version 0.1
// @description Hide the ads in Gmail
// @author Mat Munn <mat@matmunn.me>
// @match https://mail.google.com/mail/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(".aKB { display: none!important; }");
})();
// ==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