-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEmoji_Font_Override.user.js
More file actions
33 lines (32 loc) · 1.37 KB
/
Emoji_Font_Override.user.js
File metadata and controls
33 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==UserScript==
// @name Emoji Font Override
// @namespace https://github.com/sinazadeh/userscripts
// @version 1.0.7
// @description Override default emoji fonts to prioritize Noto Color Emoji for consistent rendering of Unicode 16 emoji across all websites.
// @author TheSina
// @match *://*/*
// @grant GM_addStyle
// @run-at document-start
// @license MIT
// @downloadURL https://raw.githubusercontent.com/sinazadeh/userscripts/refs/heads/main/Emoji_Font_Override.user.js
// @updateURL https://raw.githubusercontent.com/sinazadeh/userscripts/refs/heads/main/Emoji_Font_Override.meta.js
// ==/UserScript==
/* jshint esversion: 6 */
(function () {
'use strict';
GM_addStyle(`
@font-face {
font-family: 'Segoe UI Emoji';
src:
local('Noto Color Emoji'), local('Apple Color Emoji'),
local('Twemoji Mozilla'), local('Segoe UI Emoji');
font-display: swap;
unicode-range:
U+0023, U+002A, U+0030-0039, U+FE0E-FE0F, U+200D, U+20E3, U+1F3FB-1F3FF,
U+1F1E6-1F1FF, U+1F100-1F1FF, U+1F200-1F2FF, U+1F300-1F5FF,
U+1F600-1F64F, U+1F680-1F6FF, U+1F900-1F9FF, U+1FA70-1FAFF,
U+1FC00-1FCFF, U+2300-23FF, U+2190-21FF, U+2700-27BF, U+2B00-2BFF,
U+1F780-1F7FF;
}
`);
})();