Country_Emojis.user.js
· 895 B · JavaScript
Raw
// ==UserScript==
// @name Country Emojis
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match */*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
let style = `@font-face{font-family:NotoColorEmojiLimited;unicode-range:U+1F1E6-1F1FF;src:url(https:font-display:swap}.emoji{font-family:'NotoColorEmojiLimited'}`;
let s;
document.head.append((s = document.createElement("style")));
s.innerHTML = style;
for (let sheet of document.styleSheets) {
try {
for (let rule of sheet.cssRules) {
try {
if (rule.style.fontFamily.length > 0) {
rule.style.fontFamily =
"NotoColorEmojiLimited," + rule.style.fontFamily;
}
} catch (error) {}
}
} catch (error) {}
}
1 | // ==UserScript== |
2 | // @name Country Emojis |
3 | // @namespace http://tampermonkey.net/ |
4 | // @version 0.1 |
5 | // @description try to take over the world! |
6 | // @author You |
7 | // @match */* |
8 | // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
9 | // @grant none |
10 | // ==/UserScript== |
11 | |
12 | let style = `@font-face{font-family:NotoColorEmojiLimited;unicode-range:U+1F1E6-1F1FF;src:url(https:font-display:swap}.emoji{font-family:'NotoColorEmojiLimited'}`; |
13 | let s; |
14 | document.head.append((s = document.createElement("style"))); |
15 | s.innerHTML = style; |
16 | for (let sheet of document.styleSheets) { |
17 | try { |
18 | for (let rule of sheet.cssRules) { |
19 | try { |
20 | if (rule.style.fontFamily.length > 0) { |
21 | rule.style.fontFamily = |
22 | "NotoColorEmojiLimited," + rule.style.fontFamily; |
23 | } |
24 | } catch (error) {} |
25 | } |
26 | } catch (error) {} |
27 | } |