-
-
Notifications
You must be signed in to change notification settings - Fork 0
Creating Styles and Options
soulhotel edited this page Oct 5, 2025
·
3 revisions
First, let's talk about how userChrome Companion works. Assuming you already know what userChrome & CSS are..
- userChrome Companion manipulates Firefox's Window Title by adding text (characters, emojis, codes, etc) to it.
- userChrome CSS can target the Firefox Window Title and applies Styles based on what it can find.
Now let's say you have an option in userChrome Companion, like: ๐ฑ cat mode or ๐ถ dog mode. Turning these options ON will add them +1 to Firefox's Window Title. And it will stay there (whether you close the sidebar, restart, etc) until you toggle it off.
-
New Tabin the Window Title becomes, -
๐ฑ New Tabor๐ฑ ๐ถ New Tab
In your userChrome CSS, you can apply styles for these options, like:
:root[titlemodifier*="๐ฑ"] {
#navigator-toolbox {
display: none !important;
}
}
:root[titlemodifier*="๐ถ"]
#urlbar {
background-color: transparent !important;
}
}
And obviously options (๐ฑ cat mode,๐ถ dog mode) can be parsed seperately or together via the css, like:
/* both ๐ฑ ๐ถ present in title at the same time */
:root[titlemodifier*="๐ฑ"][titlemodifier*="๐ถ"] {
#navigator-toolbox {
display: none !important;
}
}
/* or like this*/
:root[titlemodifier*="๐ฑ ๐ถ"] {
#navigator-toolbox {
display: none !important;
}
#urlbar {
background-color: transparent !important;
}
}
I think the best part about this is that Theme Creators can share/use/import their own custom options by linking to it via github, like:
