[Release] Swarth
Moderators: Lootyhoof, FranklinDM
Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
[Release] Swarth
Swarth modifies web pages to use a dark color scheme or based on the user's preferences. This extension is a fork of Dark Background and Light Text, rewritten to utilize XUL overlays instead of Jetpack/Add-ons SDK.
Several additional features were included, such as following the browser's preferred color scheme, keeping changes made in private browsing sessions, and sorting configured pages. You can use this extension alongside AutoPageColor to achieve automatic light/dark color scheme switching based on your current time, provided that you enable the Follow preferred color scheme option.
Unlike DBaLT and its current derivatives, Swarth only targets content pages in the main tab browser (pages opened in the web panel/sidebar will be covered in the future). Changes to the extension's settings (i.e. toggling enabled and default color method) are not applied immediately on all windows and tabs. Instead, they take effect upon selecting or switching to a tab, fixing the minor but noticeable performance issue when enabling/disabling DBaLT's functionality while having many tabs open.
Open for feedback and suggestions!
Compatible with Pale Moon, Basilisk, and Borealis Navigator.
Several additional features were included, such as following the browser's preferred color scheme, keeping changes made in private browsing sessions, and sorting configured pages. You can use this extension alongside AutoPageColor to achieve automatic light/dark color scheme switching based on your current time, provided that you enable the Follow preferred color scheme option.
Unlike DBaLT and its current derivatives, Swarth only targets content pages in the main tab browser (pages opened in the web panel/sidebar will be covered in the future). Changes to the extension's settings (i.e. toggling enabled and default color method) are not applied immediately on all windows and tabs. Instead, they take effect upon selecting or switching to a tab, fixing the minor but noticeable performance issue when enabling/disabling DBaLT's functionality while having many tabs open.
Open for feedback and suggestions!
Compatible with Pale Moon, Basilisk, and Borealis Navigator.
Last edited by FranklinDM on 2021-08-11, 09:22, edited 1 time in total.
Reason: Update links
Reason: Update links
-
- Apollo supporter
- Posts: 39
- Joined: 2021-04-25, 14:56
Re: [Pre-release] Swarth
Works fine on both Pale Moon and Basilisk. Until now used Advanced Night Mode and Dark Background and Light Text because the colour preferences in the content menu would black out eMatrix's display.
Thank-you.
Thank-you.
Re: [Pre-release] Swarth
Upon a cursory code perusal I don't see anything that would prevent it from working with Borealis as it is very clean and seems web client agnostic save overlay. If you want an updated build for testing let me know.
In any event, this is damn fine work dude. I am proud of you.
In any event, this is damn fine work dude. I am proud of you.
-
- Fanatic
- Posts: 202
- Joined: 2017-09-27, 06:50
Re: [Pre-release] Swarth
With the extension enabled, the top banner on PM's homepage is blacked out.


Avatar's Source: yereverluvinuncleber
Re: [Pre-release] Swarth
That is likely because the banner is a background image. My suggestion is to not change the background if it is an image.
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Pre-release] Swarth
v1.0.0b1 XPI is now available.
Thanks! I've added in the necessary changes for compatibility with Borealis Navigator and it seemed to work just fine, assuming there were no changes to gBrowser behavior in the newer versions, but an updated build would certainly help in testing.
This issue should be fixed with this release, I reverted to former behavior (based on the commented surrounding code) where the background-image is retained when no-repeat is set as its position, although I'm uncertain as to how this will impact other sites.
Re: [Pre-release] Swarth
no-repeat backgrounds for divs is a common case .. least it was.. You can only do what you can do when you are making a generic styling extension.
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Swarth
Thanks to everyone who tested this extension! The initial stable release (v1.0.0) of Swarth is now available in the Pale Moon and Basilisk add-ons sites.
This includes several changes from the previous test releases:
This includes several changes from the previous test releases:
- The Swarth toolbar button was changed to a menu button, with the main button functioning mainly as a toggle to enable/disable the extension's functionality. The action of the toolbar button can be changed via Swarth's preferences.
- Moved the list of configured pages into its own window.
- Implemented import/export of configured pages. Configured pages can now be imported from/exported to JSON.
- Implemented import of configured pages from other extensions (Advanced Night Mode and Dark Background and Light Text, if available) via the configured pages window.
- The sidebar's web panel is now covered by this extension. This does not include other panels, such as bookmarks and history.
-
- Apollo supporter
- Posts: 41
- Joined: 2021-08-19, 10:05
Re: [Release] Swarth
First of all, thank you for this forked extension.
Secondly, unfortunately the blacking out images (as well as video) issue appears to occur on the front page, article listings and inside articles themselves at Ars Technica.
Front Page: Policy category: Aritcle: The image will show with its 'Enlarge' link popping it up in a lightbox though, but only there, not in place as the third image above shows.
Author profile images do show properly, as do 'Further Reading' images and multiple-photo slideshows such as in this article.
Images also do show properly in the 'Related Stories'/'Today on Ars' section above the footer navigation in articles.
I don't know if the way Ars does things is something this extension can realistically detect and account for, but felt it should at least be pointed out in case it can with an update.

Secondly, unfortunately the blacking out images (as well as video) issue appears to occur on the front page, article listings and inside articles themselves at Ars Technica.
Front Page: Policy category: Aritcle: The image will show with its 'Enlarge' link popping it up in a lightbox though, but only there, not in place as the third image above shows.
Author profile images do show properly, as do 'Further Reading' images and multiple-photo slideshows such as in this article.
Images also do show properly in the 'Related Stories'/'Today on Ars' section above the footer navigation in articles.
I don't know if the way Ars does things is something this extension can realistically detect and account for, but felt it should at least be pointed out in case it can with an update.
You do not have the required permissions to view the files attached to this post.
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Swarth
I'll see what I can do about this.
-
- Board Warrior
- Posts: 1426
- Joined: 2019-05-20, 20:07
- Location: New England
Re: [Release] Swarth
Love the extension name, as someone knowledgeable about English and other Germanic languages.
-
- Add-ons Team
- Posts: 613
- Joined: 2017-01-14, 02:40
- Location: Philippines
Re: [Release] Swarth
This should be fixed with the latest release.Pause wrote: ↑2021-09-18, 16:01... unfortunately the blacking out images (as well as video) issue appears to occur on the front page, article listings and inside articles themselves at Ars Technica.
Update to Swarth: v1.0.1
- Include workaround for missing thumbnails and article images on Ars Technica
- Add hidden preference for always retaining the background image when using the stylesheet processor (extensions.swarth.processor.retain_background_image)
-
- Apollo supporter
- Posts: 41
- Joined: 2021-08-19, 10:05
Re: [Release] Swarth
Perfect, thank you.FranklinDM wrote: ↑2021-11-20, 08:30This should be fixed with the latest release.Pause wrote: ↑2021-09-18, 16:01... unfortunately the blacking out images (as well as video) issue appears to occur on the front page, article listings and inside articles themselves at Ars Technica.

Re: [Release] Swarth
Hi. I would like to have Dark Reader's style of color. Which settings I need to modify to have something resemble Dark Reader's? I have used many similar exts to Dark Reader, e.g: https://midnight-lizard.org/ but finally still resort back to Dark Reader. IMHO Dark Reader has the best optimized color scheme. Thanks.
Re: [Release] Swarth
The fonts really sucks when this addon is on. Turning it off make the fonts back to be normal.
Re: [Release] Swarth
This forum isn't your personal blog. Please consider your thoughts before you post them and stop making multiple posts in the same thread right after one another.
-
- Site Admin
- Posts: 408
- Joined: 2012-05-17, 19:06
Re: [Release] Swarth
This forum is also keenly aware of people who try to dodge previously-issued account bans. Goodbye gnguyen9173.
Did you know that moral outrage triggers the pleasure centers of the brain? It's unlikely you can actually get addicted to outrage, but there is plausible evidence that you can become strongly predisposed to it.
Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"

Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"

-
- Knows the dark side
- Posts: 5517
- Joined: 2015-12-09, 15:45
Re: [Release] Swarth
He was under another account before? What was it?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Site Admin
- Posts: 408
- Joined: 2012-05-17, 19:06
Re: [Release] Swarth
Did you know that moral outrage triggers the pleasure centers of the brain? It's unlikely you can actually get addicted to outrage, but there is plausible evidence that you can become strongly predisposed to it.
Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"

Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"
