Last active 1745775652

显示国家图标的篡改猴脚本,我也不知道哪里下载的来自了

Country_Emojis.user.js Raw
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
12let style = `@font-face{font-family:NotoColorEmojiLimited;unicode-range:U+1F1E6-1F1FF;src:url(https:font-display:swap}.emoji{font-family:'NotoColorEmojiLimited'}`;
13let s;
14document.head.append((s = document.createElement("style")));
15s.innerHTML = style;
16for (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}