Giter Club home page Giter Club logo

Comments (7)

 avatar commented on June 14, 2024 2

It's actually possible to change an extension's toolbar button badge colors using userChrome.css.
For instance with the True Sight extension we could have:

#detect-cloudflare-pa_cm_org-browser-action .toolbarbutton-badge  {
box-shadow: none !important; border: 1px solid #000 !important; background-color: #FFFF00 !important; color: #000 !important;}

Different badges depending on True Sight's analysis:

#detect-cloudflare-pa_cm_org-browser-action[tooltiptext="True Sight"] .toolbarbutton-badge {...}
#detect-cloudflare-pa_cm_org-browser-action[tooltiptext="External resources were served by a CDN."] .toolbarbutton-badge {...}
#detect-cloudflare-pa_cm_org-browser-action[tooltiptext="Multiple CDNs detected on this page!"] .toolbarbutton-badge  {...}
#detect-cloudflare-pa_cm_org-browser-action[tooltiptext="This page was served by a CDN!"] .toolbarbutton-badge  {...}

Side-note: it is this above setting that I use for all badges with the general code:

/* All badges : cosmetic */
.toolbarbutton-badge-stack .toolbarbutton-badge {
box-shadow: none !important; border: 1px solid #000 !important; background-color: #FFFF00 !important; color: #000 !important;}

because default Firefox settings bother my eyes.

I should have started by this : True Sight is a most valuable extension and now that it's been developed to consider CDNs as a whole I've definitely adopted it. Works nicely, so useful. Many thanks.

from detect-cloudflare-plus.

Thorin-Oakenpants avatar Thorin-Oakenpants commented on June 14, 2024 1

It must be that you like it ❤️

Of course 💋

from detect-cloudflare-plus.

Thorin-Oakenpants avatar Thorin-Oakenpants commented on June 14, 2024 1

I knew something was preventing me from sleeping ... and I worked it out a few hours ago (just got home) ... if the API isn't backported to ESR, then maybe you should consider using a different shade of yellow - darker, less saturation. Up to you.

from detect-cloudflare-plus.

claustromaniac avatar claustromaniac commented on June 14, 2024

Why did I get the feeling that you would be the one to bring this up first? 😆

This is actually a known issue. Believe it or not, I even bookmarked this bugzilla weeks ago for this occasion. xD

Changing the badge text color is not implemented in FF 62, but it is already implemented in FF 63. The nicest thing is the text color defaults to white or black depending on the background color (it changes automatically), so that issue is already solved in the current nightly & dev builds.

All we have to do is wait. I mean, I could do something like change the badge color to a darker tone for people on FF <63, but it is such a minor issue and I've been so busy with other stuff that I didn't even think much about it.

NFI why I included the panel in the pic :)

It must be that you like it ❤️

from detect-cloudflare-plus.

Thorin-Oakenpants avatar Thorin-Oakenpants commented on June 14, 2024

I could do something like change the badge color

I suspected as much re API limitations but seriously couldn't be arsed checking - so I just delegated it to you. No need to do anything, it's only 3 weeks or so until 63 lands

from detect-cloudflare-plus.

claustromaniac avatar claustromaniac commented on June 14, 2024

@StanGets
Thanks for the cool tip!

from detect-cloudflare-plus.

earthlng avatar earthlng commented on June 14, 2024

FWIW the yellow pageAction icon is also hard to see in the default light FF theme. Orange was much better.

from detect-cloudflare-plus.

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.