Skip to content

Instantly share code, notes, and snippets.

@bitten2up
Created April 27, 2023 15:57
Show Gist options
  • Save bitten2up/933c374f4770a41ec1135c5364a85783 to your computer and use it in GitHub Desktop.
Save bitten2up/933c374f4770a41ec1135c5364a85783 to your computer and use it in GitHub Desktop.
Noto Emoji everywere
// ==UserScript==
// @name Noto Emoji everywhere
// @namespace https://bitten2up.dev
// @version 1.0
// @description use noto monochrome emoji everywhere
// @author Bitten2up
// @match *://*/*
// @icon https://github.com/litten2up/bittens-adventure/blob/next/assets/window.png?raw=true
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
(function() {
'use strict';
// Your code here...
addGlobalStyle(`@font-face {font-family: 'Noto Sans Emoji';src: url('https://raw.githubusercontent.com/litten2up/noto-emoji-script/main/Noto-Sans-emoji.ttf')format('truetype');`);
addGlobalStyle("*{font-family: 'Noto Sans emoji', sans-serif !important;}");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment