Style Toggle

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

joe04

Style Toggle

Unread post by joe04 » Sun Oct 08, 2017 4:07 am

Style Toggle is a simple extension that adds an alt+z hotkey for toggling all page styles on/off. This is the equivalent of the View->Page Style menu behavior.

The purpose of disabling styles is readability, because it causes the browser to render the page with my default fonts and colors. Thus it's a reliable, consistent improvement for any styled HTML page. This includes offline content, such as using it with EPUBreader to get my default fonts for e-books.

More info and install here:
https://github.com/joey04/Pale-Moon-ext ... yle-Toggle

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: Tue Jun 06, 2017 7:38 am

Re: Style Toggle

Unread post by adesh » Sun Oct 08, 2017 7:40 am

Off-topic:
I never knew about "View"->"Page Style" functionality. Today, I learned something new!

joe04

Re: Style Toggle

Unread post by joe04 » Sun Oct 08, 2017 2:50 pm

Important Update:

If you want this functionality, use the Read Easily extension instead of mine.

While my rev 1.0 works as advertised, it doesn't keep track of tab state the way Read Easily does. Thus if you have multiple tabs open and are disabling styles in more than one, my oversimplistic 1.0 won't know which is which. So you sometimes end up having to double press the hotkey to get the desired result. (When I briefly tested a multiple tab scenario yesterday before publishing I didn't come across a double press condition, but I did today.)

I will fix this, if only for the learning exercise. (This is not a competition to replace Read Easily, which is an extension I have much appreciation for, given the many years I used it. Plus if you want the GUI buttons or other features it has, I won't be adding those. Style Toggle is hotkey only.)

joe04

Re: Style Toggle

Unread post by joe04 » Mon Oct 09, 2017 3:40 am

FIXED IT

the new Style Toggle rev 1.1 works properly:
https://github.com/joey04/Pale-Moon-ext ... yle-Toggle

I learned 2 important lessons today:
1) Thoroughly learn the code you fork
2) gBrowser knows best :)

kla87
Fanatic
Fanatic
Posts: 112
Joined: Fri Mar 28, 2014 3:22 am
Location: US

Re: Style Toggle

Unread post by kla87 » Mon Jun 04, 2018 12:00 am

Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1533
Joined: Thu Feb 09, 2012 11:35 pm
Location: United Kingdom

Re: Style Toggle

Unread post by Lootyhoof » Mon Jun 04, 2018 12:36 am

kla87 wrote:Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
You could use the Block Content add-on to achieve the same effect. The original add-on mentioned in this thread was removed by its author and is no longer available.

kla87
Fanatic
Fanatic
Posts: 112
Joined: Fri Mar 28, 2014 3:22 am
Location: US

Re: Style Toggle

Unread post by kla87 » Mon Jun 04, 2018 1:50 am

Lootyhoof wrote:
kla87 wrote:Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
You could use the Block Content add-on to achieve the same effect. The original add-on mentioned in this thread was removed by its author and is no longer available.
Thanks, but that addon is a bit too technical for me. The other was perfect, so maybe someone has it archived somewhere?

joe04

Re: Style Toggle

Unread post by joe04 » Fri Jun 08, 2018 3:34 am

kla87 wrote:Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
Yep, I relegated Style Toggle to the digital void.

But since you appreciate it, here's an xpi. All you have to do is download it then drag it into the Pale Moon window and the install dialog will appear.

Note that I changed the hotkey to F9.

(I've transitioned to Firefox 60, but still have Pale Moon 27 installed for Epubs and .maff files, both of which I use Style Toggle for. I changed the hotkey to be the same F9 as Reader View.)
You do not have the required permissions to view the files attached to this post.

joe04

Re: Style Toggle

Unread post by joe04 » Fri Jun 08, 2018 3:36 am

And if any extension dev wants to fork this and publish it as your own, go for it. You have my blessing.

(It only works in single process mode, as I found out when testing it on Waterfox a while back.)

kla87
Fanatic
Fanatic
Posts: 112
Joined: Fri Mar 28, 2014 3:22 am
Location: US

Re: Style Toggle

Unread post by kla87 » Sat Jun 09, 2018 8:22 am

joe04 wrote:Yep, I relegated Style Toggle to the digital void.

But since you appreciate it....
Such a practical and useful extension. Thanks.