Let’s set Firefox font size and change bookmarks folder icons. Before you do this be sure that:
- inside
about:config
and set thetoolkit.legacyUserProfileCustomizations.stylesheets
(quick left mouse button double-click) totrue
, quick tutorial you can find here: Fix Mozilla Firefox ignoring userChrome.css, - inside your file explorer you can see the file extensions like
.exe
,.txt
,.msi
,.docx
, … like for examplefile.exe
and not just the file name likefile
. You can see how to do it in the walkthrough video at time 01:59
Open Firefox profile folder
-
Left mouse button click on the menu button
Help
.;
-
Save the changes you’ve made. Not all programs have same way of saving the file but usually you can do that by left mouse button click on
File
in the top main menu and left mouse button click onSave
, keyboard shortcut to save isCTRL + S
(clickCTRL
and while pressing it clickS
and then release both buttons).
Doing the changes to userChrome.css
Inside userChrome.css
should be like:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Changing all bookmarks folder icons */
.bookmark-item[container] {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAjklEQVR42mNkAIIfx2xbgVQWAwHw//9/hh9cVgxX7ny5aBs6zQEkxgg1YD2QCiBkAAgwCdowXH0u8cHQKV9w1ICBNODaC4kvH24vUHVIO/+CLANuvhJnUGVdu4PD6rAnJQYcABrgOMIN2A00wI3MaBT/+vHOQl371PP3YQYQn505rRgu3/180S50ugNIDACEZogRw/LarAAAAABJRU5ErkJggg==') !important;
}
/* Global UI font size */
* { font-size: 12pt !important; }
After you make the changes ALWAYS save the changes to a file othervise Firefox will not see them. Whatever is between /*
and */
is the comment and firefox will ignore that text.
Let’s deconstruct above code bellow… .
First part: to select the bookmarks folders icon
/* Changing all bookmarks folder icons */
.bookmark-item[container] {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAjklEQVR42mNkAIIfx2xbgVQWAwHw//9/hh9cVgxX7ny5aBs6zQEkxgg1YD2QCiBkAAgwCdowXH0u8cHQKV9w1ICBNODaC4kvH24vUHVIO/+CLANuvhJnUGVdu4PD6rAnJQYcABrgOMIN2A00wI3MaBT/+vHOQl371PP3YQYQn505rRgu3/180S50ugNIDACEZogRw/LarAAAAABJRU5ErkJggg==') !important;
}
You put your icon in between apostrofies in url
like for example icon.png
where the actual icon file is in the chrome
folder we created earlier, example:
list-style-image: url('icon.png') !important;
You can use base64
, svg
, png
, jpg
, jpeg
, bmp
, … depends on your need.
This code sets one icon for all of the folders but in case you want to change individual folder icon you need to change .bookmark-item[container]
to .bookmark-item[container][label="Folder name"]
where Folder name
is the title of your folder in the browser bookmarks. For the next folder just duplicate .bookmark-item[containe...}
and change Folder name
with the icon, here is an example:
/* Changing first folder bookmark icon */
.bookmark-item[container][label="Folder name"] {
list-style-image: url('First_folder_icon.png') !important;
}
/* Changing second folder bookmark icon */
.bookmark-item[container][label="Second folder name"] {
list-style-image: url('Second_folder_icon.png') !important;
}
Second part: to set the global Firefox text size
/* Global UI font */
* { font-size: 12pt !important; }
Change the number 12pt
to whatever size you want like for example 16pt
and save the changes to a file. Change just the number, pt
stays always there.