Change highlight colours with userContent.css
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.
Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.
Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
-
- Keeps coming back
- Posts: 827
- Joined: 2017-10-10, 21:20
Change highlight colours with userContent.css
Operating system: MacOS 13.5.2
Browser version: 33.0
32-bit or 64-bit browser?: 64 bit
Problem URL:
Browser theme (if not default): Darkpitch
Installed add-ons:
Installed plugins: (about:plugins):
Is there any code that I could use to specify the highlight colours with userContent.css? I tried searching for that but was unable to find the name of the element. I know that it can be done from about:config, but my problem is not actually with Pale Moon, but with LibreWolf, which ignores the ui.textSelect settings.
Browser version: 33.0
32-bit or 64-bit browser?: 64 bit
Problem URL:
Browser theme (if not default): Darkpitch
Installed add-ons:
Installed plugins: (about:plugins):
Is there any code that I could use to specify the highlight colours with userContent.css? I tried searching for that but was unable to find the name of the element. I know that it can be done from about:config, but my problem is not actually with Pale Moon, but with LibreWolf, which ignores the ui.textSelect settings.
-
- Astronaut
- Posts: 660
- Joined: 2014-09-01, 15:11
- Location: Milan Italy
Re: Change highlight colours with userContent.css
What is the "highlight colour" ? URL, visited link ? can be set globally in Preferences->Content->Colours, os site-by-ste with NoSquint
Or is something else ?
Or is something else ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Change highlight colours with userContent.css
Moved because it's not about Pale Moon.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Board Warrior
- Posts: 1081
- Joined: 2012-06-08, 12:14
Re: Change highlight colours with userContent.css
Hmm... apparently "There's an extension for it"... although helpfully the reply gives no name or link... if can find the mystery extension could unpack and see how/what method employed? https://www.reddit.com/r/LibreWolf/comm ... ing_color/
-
- Keeps coming back
- Posts: 940
- Joined: 2021-01-26, 11:18
Re: Change highlight colours with userContent.css
in about:config create strings:
ui.highlighttext = #ff0000
ui.highlight = #00ff00
This works for normal text selected with the mouse.
ui.highlighttext = #ff0000
ui.highlight = #00ff00
This works for normal text selected with the mouse.
You do not have the required permissions to view the files attached to this post.
-
- Keeps coming back
- Posts: 827
- Joined: 2017-10-10, 21:20
-
- Keeps coming back
- Posts: 827
- Joined: 2017-10-10, 21:20
Re: Change highlight colours with userContent.css
For LibreWolf (takes a Firefox extension), there is an extension called Stylus which can use a stylesheet to change the appearance of content, similar to userContent.css for Pale Moon.Blacklab wrote: ↑2024-02-05, 19:54Hmm... apparently "There's an extension for it"... although helpfully the reply gives no name or link... if can find the mystery extension could unpack and see how/what method employed? https://www.reddit.com/r/LibreWolf/comm ... ing_color/
-
- Fanatic
- Posts: 132
- Joined: 2018-08-03, 17:00
-
- Keeps coming back
- Posts: 940
- Joined: 2021-01-26, 11:18
-
- Keeps coming back
- Posts: 940
- Joined: 2021-01-26, 11:18
Re: Change highlight colours with userContent.css
How TO - Change Text Selection Color
https://www.w3schools.com/howto/howto_c ... ection.asp
https://www.w3schools.com/howto/howto_c ... ection.asp
-
- Keeps coming back
- Posts: 940
- Joined: 2021-01-26, 11:18
Re: Change highlight colours with userContent.css
Firefox supports userContent.css, so LibreWolf should too.
1) In about:config page set
toolkit.legacyUserProfileCustomizations.stylesheets = true
2) Create a "chrome/userContent.css" file in your profile.
1) In about:config page set
toolkit.legacyUserProfileCustomizations.stylesheets = true
2) Create a "chrome/userContent.css" file in your profile.
Code: Select all
::selection {
color: red !important;
background: yellow !important;
}
-
- Keeps coming back
- Posts: 827
- Joined: 2017-10-10, 21:20
Re: Change highlight colours with userContent.css
That is the one! That code works. Thanks.Kris_88 wrote: ↑2024-02-07, 07:56Firefox supports userContent.css, so LibreWolf should too.
1) In about:config page set
toolkit.legacyUserProfileCustomizations.stylesheets = true
2) Create a "chrome/userContent.css" file in your profile.Code: Select all
::selection { color: red !important; background: yellow !important; }