? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

BinChan's ZeroNotes

Messy Notes about using ZeroNet and other things
All code published here are under CC-BY-SA licence, if not compatible, then MIT license X)

Follow in NewsfeedFollowing

TOC by date
TOC by tag
View in light theme

Latest comments:

Add new post

Title

21 hours ago · 2 min read ·
3 comments

tag:
Body
Read more

Not found

A Dark Theme for ZeroNet

on Dec 20, 2016
tag: css zeronet

Ver 2

White theme is for noob, light theme is for amateur, dark theme is for expert ;)

This userstyle has been actively polished for more than 1 year, should work on all official zites and their clones.
Many unofficial zites are also supported, like NullPaste, ZeroWiki, Kaffiene Search, Git Center. Nevertheless, some other zites may have side effects - that some bright elements are still not changed. You can try it yourself, ask me to modify them or temporarily disable the theme.

Some devs may find the way I develop this userstyle very stupid, I should be able to automate a lot of things by writing a python script, but I enjoy the procedure like playing jigsaw puzzles, and having some simple time X)

Code theme is Vim Desert.

For Firefox family browser before Firefox 57, you can install it by Stylish plugin/add-on (version 2.0.x).
For Chrome family browser, you can use Stylus. The Chrome version of Stylish and the Firefox version newer than 3.xx is not recommended, as it's not opensource and has an opt-out option to collect user data, and I confirm that even I uncheck the data collection option, every time I start Inox (an ungoogled Chromium) it will connect to google-analytics. Even so use a firefox family browser if you care your privacy.

Currently Stylus Beta is available for Firefox 57, but in my Firefox (Iceweasel, Debian's rebranded version), it doesn't work for ZeroNet. There is another add-on called xStyle but it doesn't work, too... So for now there is no solution for Firefox 57.

How to install:

If you use Firefox (version < 57) and Stylish 2.xx, in the Manage Styles Setting you can choose Install from URLs, then simply copy this link and install it (for NullPaste bin it doesn't work in this way).

If you use Stylus, under Manage page, use Import styles and import this file, then click the update button to update it to the lastet version. You can also set up auto-update interval under Options UI.

If you use remote server mode or clearnet proxy and your ZeroNet address is not 127.0.0.1:43110, you need to change the addresses below in the json file.

...
    "updateUrl": "http://127.0.0.1:43110/1EiMAqhd6sMjPG2tznkkGXxhdwFBDdeqT9/shared/zeronet-dark-theme.userstyle.json",
    "md5Url": "http://127.0.0.1:43110/1EiMAqhd6sMjPG2tznkkGXxhdwFBDdeqT9/shared/zeronet-dark-theme.userstyle.md5",
    "url": "http://127.0.0.1:43110/1EiMAqhd6sMjPG2tznkkGXxhdwFBDdeqT9/?Post:3:A+Dark+Theme+For+ZeroNet",
...

In another way you can create a new theme and choose import Mozilla Format from the left panel, then copy & paste the content of this link, but you need to manually repeat these steps for update.

Screenshot:

Bildschirmfoto_2016-12-16_10-28-46.png (24x24)

Bildschirmfoto_2017-01-06_14-16-31.png (24x24)

More screenshot at My Jekyll Zite

Other sources:

My repo on Git Center. You can track the update log, submit issue and make request there.
repository on git.gnu.io
my gallery (Unmaintained, too lazy to update it :3)
my NullPaste bin (Unmaintained, too lazy to update it :3)
userstyle.org (Unmaintained, easy to install but the website contains many third-party javascripts)

Hope you enjoy it :)

15 Comments:

user_name1 day ago
Reply
Body
robioneon Sep 19, 2018
Reply

is there an update on this that works?

chandelieron Apr 26, 2018
Reply

binchan2mobile: It doesn't work, probably because of this bug: https://github.com/openstyles/stylus/issues/215

Thanks a lot for your notification! (^v^)

binchan2mobileon Apr 26, 2018
Reply

chandelier: Is it possible for Firefox 59 to use your dark theme? ...

It doesn't work, probably because of this bug: https://github.com/openstyles/stylus/issues/215

chandelieron Apr 26, 2018
Reply

binchan2mobile: Yep, I tried that before, adding more "!important" to every line may help, but iirc the profile affects all websites and slows down browser performance, also my code includes regexp but Firefox profile doesn't support it, so part of the code doesn't work

Emmmm... Okay... So I'll go back to default light theme. Await my vacation to dive deeper into it. Besides, I don't get your point: is it possible for Firefox 59 to use your dark theme? Is the following available for Firefox 59?

In another way you can create a new theme and choose import Mozilla Format from the left panel, then copy & paste the content of this link, but you need to manually repeat these steps for update.
binchan2mobileon Apr 26, 2018
Reply

chandelier: I just copy & paste the content of your link to firefox's profile Dir. It looks like that it works...

Yep, I tried that before, adding more "!important" to every line may help, but iirc the profile affects all websites and slows down browser performance, also my code includes regexp but Firefox profile doesn't support it, so part of the code doesn't work

chandelieron Apr 26, 2018
Reply

I just copy & paste the content of your link to firefox's profile Dir. It looks like that it works.
Yet something looks strange on ZeroMe: Everyone's tweets are indistinguishable since they are in the same color as background color (dark)

binchan2mobileon Apr 24, 2018
Reply

caryoscelus: Hmm, i'm not sure a licence line on firefox addons page counts as proper licence statement.. but it still makes them petty liars.

Yeah, from the addon page the license is still GPL and source code links to Github, the new version release is active but the source code hasn't been updated for more than 1 year. Maybe the new authors just don't care or forget to change the license..

caryosceluson Apr 24, 2018
Reply

binchan2: The new version is a total rewrite and the code probably has nothing to do with the old version, so maybe there is not GPL violation. They just happen to have the same name, and the new author also becomes the maintainer of userstyles.org..

Hmm, i'm not sure a licence line on firefox addons page counts as proper licence statement.. but it still makes them petty liars.

binchan2on Apr 23, 2018
Reply

caryoscelus: Wow. It's kinda weird and actually sounds like GPL violation.

The new version is a total rewrite and the code probably has nothing to do with the old version, so maybe there is not GPL violation. They just happen to have the same name, and the new author also becomes the maintainer of userstyles.org..

caryosceluson Apr 23, 2018
Reply

binchan2: Nope, Firefox is definitely open-source, but Stylish add-on (>2) is not opensource.

Wow. It's kinda weird and actually sounds like GPL violation.

chandelieron Apr 23, 2018
Reply

binchan2: Nope, Firefox is definitely open-source, but Stylish add-on (>2) is not opensource.

Oh, I realized that I misunderstood your statement about Stylish. Sorry for this stupid question. ||| =_=

binchan2on Apr 23, 2018
Reply

chandelier: Did you mean that Firefox with Version 59 is not open-source?And it comprises my privacy even I close the data sharing option?Where to know more about it?

Nope, Firefox is definitely open-source, but Stylish add-on (>2) is not opensource.

chandelieron Apr 23, 2018
Reply

Did you mean that Firefox with Version 59 is not open-source?
And it comprises my privacy even I close the data sharing option?
Where to know more about it?

tuckerbon Dec 01, 2017
Reply

Thank you much

scrubthesecondon Sep 20, 2017
Reply

My eyes thank you!

Select user
  • Welcome to ZeroMessage!
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More