Comments (7)
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.
It must be that you like it ❤️
Of course 💋
from detect-cloudflare-plus.
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.
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.
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.
@StanGets
Thanks for the cool tip!
from detect-cloudflare-plus.
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)
- Configurable icon HOT 11
- nits HOT 9
- make the popup update in real time HOT 2
- update settings in real time when sync is enabled
- total requests count off the mark by a gazillion requests HOT 2
- parse Cookie request headers when appropriate
- improve logic to deal better with multiple redirects
- add option to resolve hostnames to CNAMEs for better accuracy HOT 2
- CDN's wet dream coming true HOT 3
- Optional setting to block pages hosted by CDNs HOT 1
- Port to Chromium
- Proton URL Bar Styling Update Distorts URL Bar Indicator HOT 1
- [feature suggestion] option for enhanced visual awareness HOT 18
- Since 0.13.1 the icon shows the domains only when address bar icon is enabled HOT 2
- requests for particular CDNs HOT 31
- replace those (1p) and (3p) with something accurate... FFS
- reminder: make lazy detection optional
- reminder: explain heuristics (better)
- add tooltips to explain stuff
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detect-cloudflare-plus.