ShadowFox – Dark Theme for Firefox(overdodactyl.github.io)
overdodactyl.github.io
ShadowFox – Dark Theme for Firefox
https://overdodactyl.github.io/ShadowFox/
42 comments
> This tool binary-patches your local system rather than shipping via AMO. That’s not healthy.
Modifying/creating/updating a few text files in your profile directory is not "binary-patching".
And it's done this way because it's impossible to do it with only a WebExtension published on AMO.
Modifying/creating/updating a few text files in your profile directory is not "binary-patching".
And it's done this way because it's impossible to do it with only a WebExtension published on AMO.
> Modifying/creating/updating a few text files in your profile directory is not "binary-patching".
Correction #1: "This binary tool patches"
Predicted reply: "It's a shell script, not a binary"
Correction #2: "This executable tool patches"
Predicted reply: "It doesn't patch Firefox, it just alters your Firefox profile"
Correction #3: "This executable tool alters your profile"
Predicted reply: "Shell scripts aren't executables"
Correction #4: "This arbitrary code alters your profile"
Predicted reply: "It just adds a theme that AMO won't allow!"
And so, having nitpicked that to death to save us death by nested replies, I'm going to focus on your second sentence:
> it's done this way because it's impossible to do it with only a WebExtension published on AMO.
Correct. My point is that you can get lots of HN readers to do completely unsafe things — like allow a shell script to make modifications to their Firefox profile — by phrasing it as something appealing, like 'dark mode'. This modification is, by nature of being a command-line profile modification, horrendously unsafe.
It makes a case for why Apple is now implementing kernel-level restrictions for read/write access to ~/Library/Mail, ~/Photos, and so forth — because sooner or later someone will run something that unexpectedly demands access to something it shouldn't have, and the user will be given a chance to deny it. After I upgraded to Catalina beta, Dropbox tried to access my ~/Desktop folder. Why? I only use ~/Dropbox. I denied it access.
I wish I could have the same "permission dialog required" approach applied to ~/Library/Application Support/Firefox, so that nothing but Firefox and tools I explicitly authorize can edit my profile.
Until that day, people will continue running things like this, thinking that they're somehow safe, without any warning from the Firefox team that "Granting this access could allow malicious software to intercept your communications and steal your credentials", which this dark mode thing very much could if someday the author of this "shell script" decides to make it do so.
Correction #1: "This binary tool patches"
Predicted reply: "It's a shell script, not a binary"
Correction #2: "This executable tool patches"
Predicted reply: "It doesn't patch Firefox, it just alters your Firefox profile"
Correction #3: "This executable tool alters your profile"
Predicted reply: "Shell scripts aren't executables"
Correction #4: "This arbitrary code alters your profile"
Predicted reply: "It just adds a theme that AMO won't allow!"
And so, having nitpicked that to death to save us death by nested replies, I'm going to focus on your second sentence:
> it's done this way because it's impossible to do it with only a WebExtension published on AMO.
Correct. My point is that you can get lots of HN readers to do completely unsafe things — like allow a shell script to make modifications to their Firefox profile — by phrasing it as something appealing, like 'dark mode'. This modification is, by nature of being a command-line profile modification, horrendously unsafe.
It makes a case for why Apple is now implementing kernel-level restrictions for read/write access to ~/Library/Mail, ~/Photos, and so forth — because sooner or later someone will run something that unexpectedly demands access to something it shouldn't have, and the user will be given a chance to deny it. After I upgraded to Catalina beta, Dropbox tried to access my ~/Desktop folder. Why? I only use ~/Dropbox. I denied it access.
I wish I could have the same "permission dialog required" approach applied to ~/Library/Application Support/Firefox, so that nothing but Firefox and tools I explicitly authorize can edit my profile.
Until that day, people will continue running things like this, thinking that they're somehow safe, without any warning from the Firefox team that "Granting this access could allow malicious software to intercept your communications and steal your credentials", which this dark mode thing very much could if someday the author of this "shell script" decides to make it do so.
> And so, having nitpicked that to death to save us death by nested replies,
You saved us nothing. You should have just stopped after admitting you meant to write "This binary tool patches".
The several straw men (with replies) that follow in the first part are disingenuous and just serve to devalue the rest of your comment.
You saved us nothing. You should have just stopped after admitting you meant to write "This binary tool patches".
The several straw men (with replies) that follow in the first part are disingenuous and just serve to devalue the rest of your comment.
I use a conventional dark theme and e.g. it flashes a white background whenever I open a new tab before applying a black background. And certain pages can't be styled to block themes from hiding things.
It's inevitable that a good dark plugin will need to avoid the official channels.
It's inevitable that a good dark plugin will need to avoid the official channels.
The flash is typically due to Firefox waiting for a response from a web server. You can use a page from your local machine to alleviate the wait time. Here's how I do it [^1]:
[1]: https://habd.as/post/burying-firefox-white-tab-death/#hack-2...
[1]: https://habd.as/post/burying-firefox-white-tab-death/#hack-2...
You should file a bug about that with a screen recording. This dark mode stuff is new to everyone and it might just be an oversight.
Or just update the one which is already open: https://bugzilla.mozilla.org/show_bug.cgi?id=1538414
Totally agree
Why not use the official Firefox Color to change your theme? Doesn't need a separate installer.
https://color.firefox.com/
I'm using plata theme[1]. The only limitation is that FF Color doesn't apply to about:* pages, whereas SF does. I seldom change my settings anyway, so it's not an issue.
[1]: https://gitlab.com/tista500/plata-theme#extra-browser-suppor...
[1]: https://gitlab.com/tista500/plata-theme#extra-browser-suppor...
Or just write a userChrome.css and dump it in your profile directory. /r/firefoxCSS has the details
userChrome.css support will be disabled by default in Firefox 69.[1][2] The user must toggle the "toolkit.legacyUserProfileCustomizations.stylesheet" preference to enable that.
Based on the name of that preference, as well as this developer page[3] saying "Support for the userChrome.css file and any of its elements described below are not guaranteed in future versions of Firefox", it seems likely userChrome.css will be dropped in the future.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1541233
[2] https://www.mozilla.org/en-US/firefox/69.0beta/releasenotes/
[3] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tu...
Based on the name of that preference, as well as this developer page[3] saying "Support for the userChrome.css file and any of its elements described below are not guaranteed in future versions of Firefox", it seems likely userChrome.css will be dropped in the future.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1541233
[2] https://www.mozilla.org/en-US/firefox/69.0beta/releasenotes/
[3] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tu...
That's a bummer, AFAIK it's still required in order to disable to top tab bar row for use with Tree Style Tab or similar.
https://hackernoon.com/firefox-hide-tabs-6e1f6cf63d95
https://hackernoon.com/firefox-hide-tabs-6e1f6cf63d95
Quite like Solarized themes, so have one that switches from light to dark and vice versa.
I'm in love with color.firefox.com since it was out! So good.
I remember when operating systems had color themes and all applications magically adhered to the user settings because they used OS toolkits to draw their user interfaces.
It is 2019 and now we get to download a 7.5 megabyte untrusted binary blob that does who knows what to our system in order to patch one application with some rando's idea of a good dark theme. Pray it doesn't break the next time Firefox force-updates your shit.
Sigh.
It is 2019 and now we get to download a 7.5 megabyte untrusted binary blob that does who knows what to our system in order to patch one application with some rando's idea of a good dark theme. Pray it doesn't break the next time Firefox force-updates your shit.
Sigh.
Firefox Developer Editon comes with a dark theme too: https://wiki.mozilla.org/DevTools/Developer_Edition_Theme
Standard Firefox has a dark theme built right in. Select Menu - Customize. There's Default, Light, and Dark. And 3 densities for the UI.
A firefox theme i need to brew install just feels ... weird. Is there no other way to do this?
Not sure if it has as much coverage, but this was a new one to me that I plan on trying out:
https://news.ycombinator.com/item?id=20390261
https://news.ycombinator.com/item?id=20390261
Theming Firefox requires some funky file location detection; ShadowFox does that by executables, which is a little distressing. GitHub project also includes the sources to the distributables, as far as I recall.
Has anyone found working full dark theme for Firefox mobile on Android? I've tried several available through the standard addons page but they all seem to just change the top bar to some grayish background. I guess the API for change the Side Drop-Down Menu and Settings are not exposed?
The new preview version of Firefox is completely dark.
Link?A
Blog post: https://blog.mozilla.org/futurereleases/2019/06/27/reinventi...
GooglePlay: https://play.google.com/store/apps/details?id=org.mozilla.fe...
Some screenshots with dark theme: https://www.xda-developers.com/mozilla-transition-users-from...
GooglePlay: https://play.google.com/store/apps/details?id=org.mozilla.fe...
Some screenshots with dark theme: https://www.xda-developers.com/mozilla-transition-users-from...
im using darkreader which i think , work great
What's the advantage over the standard dark Firefox theme?
ShadowFox covers all corner cases. For instance, when opening a new tab, Firefox would flash a crazy huge white page before theming it.
Seems like this should be fixed in Firefox rather than requiring a theme which executes unsandboxed code on your machine to install itself. I get that people probably want this now, but personally if this bothered me I'd submit a feature request and wait for something more official.
>For instance, when opening a new tab, Firefox would flash a crazy huge white page before theming it.
I'm using a standard FF dark theme and I don't see anything like that. That's on Win7, FF 67.0.4 (64-bit).
I'm using a standard FF dark theme and I don't see anything like that. That's on Win7, FF 67.0.4 (64-bit).
I think this issue was fixed. But it definitely used to exist. I used to use ShadowFox specifically because of it.
On Mac, latest version, it still exists for new window and second new tab. Subsequent new tabs seem to be fixed.
[deleted]
I remember this issue but I haven’t seen it lately. Maybe they’ve fixed it?
No, it still exists. When I open a new window, it flashes white. When I open a second tab, also flashes white. When I open subsequent new tabs, it doesn't.
And besides, the settings, about:config etc. screens don't follow the dark theme.
And besides, the settings, about:config etc. screens don't follow the dark theme.
I wish it would leave some sign of it's existence in Firefox. In a few months I wont remember how I did that...
I've run into this problem with all sorts of little things on my Mac, so I use this to automate all those little things I tend to forget about! You're welcome to use it / star / fork.
https://github.com/echohack/macbot
https://github.com/echohack/macbot
No Mac here but thanks for trying :)
Above security concerns, I'm worried about installing a custom theme made by someone who would choose such difficult to read color pairing for their own website.
1) Convince them to install crapware* into their browser using basic-but-real functionality. Useful keywords: vi, solarized, dark mode, ad blocker.
2) Wait one month.
3) Ship your C&C backdoor via whatever autoupdate mechanism you put into place and see who phones home.
* This tool binary-patches your local system rather than shipping via AMO. That’s not healthy.