Style Toggle
Moderators: FranklinDM, Lootyhoof
-
joe04
Style Toggle
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
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
-
adesh
- Board Warrior

- Posts: 1277
- Joined: Tue Jun 06, 2017 7:38 am
Re: Style Toggle
Off-topic:
I never knew about "View"->"Page Style" functionality. Today, I learned something new!
I never knew about "View"->"Page Style" functionality. Today, I learned something new!
-
joe04
Re: Style Toggle
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.)
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
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
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

- Posts: 112
- Joined: Fri Mar 28, 2014 3:22 am
- Location: US
Re: Style Toggle
Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
-
Lootyhoof
- Themeist

- Posts: 1533
- Joined: Thu Feb 09, 2012 11:35 pm
- Location: United Kingdom
Re: Style Toggle
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 wrote:Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
-
kla87
- Fanatic

- Posts: 112
- Joined: Fri Mar 28, 2014 3:22 am
- Location: US
Re: Style Toggle
Thanks, but that addon is a bit too technical for me. The other was perfect, so maybe someone has it archived somewhere?Lootyhoof wrote: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 wrote:Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
-
joe04
Re: Style Toggle
Yep, I relegated Style Toggle to the digital void.kla87 wrote:Does anybody know where this addon can be installed from? The PM & github pages are both no longer. Thanks
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
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.)
(It only works in single process mode, as I found out when testing it on Waterfox a while back.)
-
kla87
- Fanatic

- Posts: 112
- Joined: Fri Mar 28, 2014 3:22 am
- Location: US
Re: Style Toggle
Such a practical and useful extension. Thanks.joe04 wrote:Yep, I relegated Style Toggle to the digital void.
But since you appreciate it....
