Replaces Segoe UI Emoji with Twemoji in Firefox on some pages.
Segoe UI Emoji → Twemoji Mozilla by myfonj
Details
Authormyfonj
LicenseCC0
Categoryglobal
Created
Updated
Code size1.1 kB
Code checksum8f37a379
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
In Gecko-based browsers (Firefox) on pages explicitly using systems "Segoe UI Emoji" in their font stack makes them use built-in "Twemoji Mozilla", that is otherwise only a fallback. Sadly, does not work on pages that leave the font stack on the browser/system entirely.
Source code
/* ==UserStyle==
@name Segoe UI Emoji → Twemoji Mozilla
@namespace github.com/openstyles/stylus
@version 1.1.1
@description In Gecko-based browsers (Firefox) on pages explicitly using systems "Segoe UI Emoji" in their font stack makes them use built-in "Twemoji Mozilla", that is otherwise only a fallback. Sadly, does not work on pages that leave the font stack on the browser/system entirely.
@author myf
@license CC0
==/UserStyle== */
/*
Changelog
1.1.1 (2025-02-28) Filled the rest of the range. Strange that it is needed.
1.1.0 (2025-02-28) Added rougly-fenced Segoe UI (No Emoji)
*/
@-moz-document url-prefix("https://"), url-prefix("http://") {
@font-face {
font-family: "Segoe UI Emoji";
src: local("Twemoji Mozilla");
}
/* Rougly-fenced "Emoji block" for when page uses generic Segoe UI and relies on internal Emoji fallback behind the scenes */
@font-face {
font-family: "Segoe UI";
src: local("Segoe UI");
unicode-range: U+0000-2319, U+1faf8-10ffff;
}
@font-face {
font-family: "Segoe UI";
src: local("Twemoji Mozilla");
unicode-range: U+231a-1faf8;
}
}