Created
January 28, 2018 07:05
-
-
Save 1v/424adda8f9004e9e621a23c1be290830 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Gmail Icon | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mail.google.com/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.2.1.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
waitForKeyElements('link[rel="icon"]', change_icon); | |
function change_icon(node){ | |
var link = node.attr('href'); | |
node.attr('href', link.replace(/-b/, '')); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or like, if you don't want to load jquery for absolutely no reason on the page...