Coder Social home page Coder Social logo

Comments (6)

Godiesc avatar Godiesc commented on June 24, 2024 1

Hello, I don't think there is a simple way to do that, that icon is provided by the website, so you can change it, but you have to do it for each bookmark. I found this way in [reddit](https://sh.reddit.com/r/FirefoxCSS/comments/iezs1a/change_icon_for_those_bookmarks_without_favicon/)

1.- I first search for an image for amazon here: https://iconduck.com/icons/2881/amazon-square.
2.- I edited that image code to add the property fill="context-fill" to give the image the color of the theme.

imagen

3.- Add the image into chrome/icons folder.
4.- Into the file ogx_tricks.css add the next code:

.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;
    }

imagen

from firefox-gx.

Godiesc avatar Godiesc commented on June 24, 2024 1

for the new-tab favicon I use this, I wonder why librewolf change it:

/* Favicon de pagina newtab */

.tab-icon-image[src="chrome://branding/content/icon32.png"] {
    content: url("../icons/foxlogofavicon.svg");
    fill: var(--identity-icon-color, var(--general-color)) !important;
}

for the sites favicon I don't know how to do that, maybe you should ask in https://sh.reddit.com/r/FirefoxCSS/ to see if is possible i some way.

from firefox-gx.

soilentgreen avatar soilentgreen commented on June 24, 2024 1

Thanks again @Godiesc for your help. It worked :-)
For the sites favicon I'll ask in reddit as you suggested.

from firefox-gx.

soilentgreen avatar soilentgreen commented on June 24, 2024

Many thanks, It worked like a charm :-)
Can I ask another help?
There is any way to color the tabs webs icons to red as-well?

222

from firefox-gx.

soilentgreen avatar soilentgreen commented on June 24, 2024

@Godiesc , I don't know if it something you want to use in your theme, but the user ilovebmo01 give me this code:

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

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

And it's 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.

Just so you know.

from firefox-gx.

Godiesc avatar Godiesc commented on June 24, 2024

thanks for sharing, I didn't consider that cause the favicon is essential to distinguish the tab, and make it just 1 color or similar can do confusion.

from firefox-gx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.