this post was submitted on 12 Mar 2024
6 points (100.0% liked)
Firefox Customs
3 readers
9 users here now
Post your unsupported Firefox customizations here!
From the makers of r/FirefoxCSS
Links
Related
Rules
- Posts must have flair!
- Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.
- Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.
- 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.
- Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Thank you for your answer.
I added
brightness(0)
andinvert(0.5)
and as you say they become red circle/square. I wonder if there is is anyway to replace those icons as it can done with bookmark icons? An example of replacement of Amazon bookmark image (gave me by Firefox-gx theme creator Godiesc):_fill="context-fill"__
to give the image the color of the theme..bookmark-item[image*="page-icon:https://www.amazon.com"]>.toolbarbutton-icon { width: 0px !important; height: 0px !important; padding: 0 0 18px 18px !important; background-image: url("../icons/amazon-square.svg") !important; background-size: cover !important; }
okay there is a way to do this in css, but
but it is less hacky than doing it with the background-image way, so if you want to try it:
content
[^1]img[src="data:image/png;base64,iVBORw0K[..]8sRwEqwGyXYQAAAABJRU5ErkJggg=="]
img.tab-icon-image[src=".."] {}
however, this doesn't work from my minute or so's testing
(by the way if you add 3 backticks you get a codeblock rather than the ol' ugly inline code. also you can specify the language in markdown, although i don't know if it affects anything in lemmy)
[^1]: also this only works in ffx, but that's not important right now
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.
well i don't really know how much you know, so i don't want to over-explain things, but:
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[..]
in it because the actual string is too long for a lemmy commentdo feel free to ask further questions, although my replies may be slow as i'm not really on lemmy that often