Created
April 19, 2016 20:40
-
-
Save m-dango/4f487dcee7d04ba2f6d4c615812af668 to your computer and use it in GitHub Desktop.
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 Emoji One Color Font | |
// @namespace http://dango.space | |
// @description Insert Emoji One Color font into css on all pages | |
// @match *://*/* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
this.$ = this.jQuery = jQuery.noConflict(true); | |
$("body").css("font-family", function(index,currentValue){ | |
if (currentValue.match(/Emoji One Color/i)) { | |
return; | |
} else if (typeof currentValue == 'undefined') { | |
return "Emoji One Color"; | |
} else { | |
return '"Emoji One Color",' + currentValue; | |
} | |
}); |
Where is this script supposed to be executed?
Where is this script supposed to be executed?
It would typically be run in a browser extension such as Greasemonkey/Tampermonkey, however I no longer use this personally.
Where is this script supposed to be executed?
It would typically be run in a browser extension such as Greasemonkey/Tampermonkey, however I no longer use this personally.
What do you use now as a replacement/substitute?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@endolith Replacing
$("body")
with$("*")
makes it override emoji for every element, but I can't imagine it's easy on the browser.Perhaps a userstyle of the form ```
font-family: EmojiOne Color !important;
}```
would work?