this post was submitted on 12 Mar 2024
6 points (100.0% liked)

Firefox Customs

2 readers
8 users here now

Chat with us!

Post your unsupported Firefox customizations here!

From the makers of r/FirefoxCSS

Links

Related

Rules

  1. Posts must have flair!
  2. Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.
  3. Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.
  4. When posting large amount of code use a service dedicated to hosting text snippets, such as pastebin, hastebin, github gist or equivalent. Relatively short snippets can be wrapped in code-block for inline viewing.
  5. Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.

founded 1 year ago
MODERATORS
 

Hi,
I want to color the tabs URLs icons to red- just the icons of the sites.
Someone on reddit gave me that code and explanation:

.tabbrowser-tab .tab-icon-image { filter: sepia(1) saturate(5000%) hue-rotate(0deg); }

What this does is make every icon the same hue with the sepia filter, then, you rotate the hue towards red. You need to use high saturation to make the colours pop and every icon should be red.

https://www.quackit.com/css/functions/css_hue-rotate_function.cfm

It partially succeeded. All the webs icons with one color as github, virusetotal...are colored in red, but all the webs with more than one color as google, amazon.. are colored partially in red. It as like this code can color only one color of the icon.
There is any way to color all the icons to red or replace them?

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 7 months ago (1 children)

First of all, thanks for the detailed answer. I must ask. I do not understand how are these codes can help to change the amazon icon for example? Nothing in the code links to any site that I want to change his icon. And the code did nothing.

[–] [email protected] 1 points 7 months ago

well i don't really know how much you know, so i don't want to over-explain things, but:

  • data uris are basically a way of embedding a whole image in text, rather than linking to an image (i.e. src=./favicon.png). more reading. so there's no way of guessing what image to replace, you have to inspect the source of the image in the browser chrome
  • which leads me to: the browser toolbox allows you to inspect the actual browserchrome itself more reading. you can't right click → inspect to pinpoint a specific element, but you can click the "⇱" icon and select an element
  • so you'll have to inspect your own browser to find the specific string
  • ~~if the code actually did nothing (on lemmy, not amazon) you might be out of luck - it's possible firefox compresses them differently so the uri doesn't match~~ i'm an idiot, it would do nothing, it has [..] in it because the actual string is too long for a lemmy comment

do feel free to ask further questions, although my replies may be slow as i'm not really on lemmy that often