
Sane fonts userstyle for Stylem, and a query
Moderators: Lootyhoof, FranklinDM
-
- Knows the dark side
- Posts: 5589
- Joined: 2015-12-09, 15:45
Sane fonts userstyle for Stylem, and a query
I hate the gigantic fonts and acres of whitespace on most modern websites, and so have made a catch-all userstyle for use with Stylem. However I'm unable to get it to work with Takimag.com (sample link). Also, is there a way to fix sites where the content shows up as a column in the center (obviously designed for mobile phones in portrait mode only
) so that it stretches horizontally?

"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
Jabber: moonbat@hot-chili.net

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net
-
- Lunatic
- Posts: 425
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Sane fonts userstyle for Stylem, and a query
Add !important seems to work.
Code: Select all
html, body, div, p, #content {
font-size: 14px !important;
-
- Knows the dark side
- Posts: 5589
- Joined: 2015-12-09, 15:45
Re: Sane fonts userstyle for Stylem, and a query
Doesn't work for Takimag 

"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
Jabber: moonbat@hot-chili.net

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net
-
- Lunatic
- Posts: 425
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Sane fonts userstyle for Stylem, and a query
Attached is the "before" image (without your styles), then the "after" image (with your styles + !important; Basilisk, Stylish 2.0.7).
You do not have the required permissions to view the files attached to this post.
-
- Astronaut
- Posts: 713
- Joined: 2023-06-28, 22:43
- Location: Australia
Re: Sane fonts userstyle for Stylem, and a query
is the problem also related to all this empty space?


Laptop 1: Windows 11 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.
-
- Knows the dark side
- Posts: 5589
- Joined: 2015-12-09, 15:45
Re: Sane fonts userstyle for Stylem, and a query
Did you add !important; to all the styles in the sheet? I tried it for the classes I found on the page that are applied to paragraph text:
Code: Select all
div[id="post"] {
font-size: 14px; !important;
line-height: 11pt;
}
section[class ="main-sec article"] {
font-size:1.0rem; !important;
}
That too, I hate sites that waste horizontal space because they were only designed for portrait mode mobile screens, but I don't know enough CSS to fix 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
Jabber: moonbat@hot-chili.net

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net
-
- Lunatic
- Posts: 425
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Sane fonts userstyle for Stylem, and a query
No, just the first one.
As for the horizontal space for this particular site:
Code: Select all
.col-md-8 {
flex-basis: 80%;
max-width: 80%;
}
You do not have the required permissions to view the files attached to this post.
-
- Apollo supporter
- Posts: 47
- Joined: 2014-10-14, 22:07
- Location: Planet Claire
Re: Sane fonts userstyle for Stylem, and a query
You might try HackTheWeb (HtW) for quick clean-up in these situations and many others. It is an abandoned update of the more ancient extension "Aardvark", and they have been indispensable for sane web-surfing here (along with blockers, and NoSquint) for many, many years. Just a few clicks cleans up much of this type of annoyance. Combine it with NoSquint! Some pages can take a few tries to figure out what works, but it's quick to get the hang of it. It won't work on some sites/pages, and blocking may interfere with its operation occasionally too. Perhaps this is due to page construction/CSS/scripting, which is beyond me. In the past it could also export/save the cleanup to Stylish, which was great!moonbat wrote: ... That too, I hate sites that waste horizontal space because they were only designed for portrait mode mobile screens ...
I believe that the latest version is 1.3.21 and is available via the Classic Add-Ons Archive, or I can upload it.
Just a thought, as it has enhanced surfing sanity multiple times a day for all these years, and "I wouldn't leave home without out it"...

You do not have the required permissions to view the files attached to this post.
-
- Knows the dark side
- Posts: 5589
- Joined: 2015-12-09, 15:45
Re: Sane fonts userstyle for Stylem, and a query
Ah, I forgot about HtW. These tools tend to be hit and miss now on the modern framework bloated web that uses Javascript to generate everything. For that matter I have a work in progress fork of the old Platypus toolbar extension that could generate Greasemonkey scripts from whatever page editing one did!
"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
Jabber: moonbat@hot-chili.net

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net
-
- Astronaut
- Posts: 713
- Joined: 2023-06-28, 22:43
- Location: Australia
Re: Sane fonts userstyle for Stylem, and a query
Another way to approach this sort of problem, which works for a lot of sites (and is helpful for https://www.takimag.com/article/oh-the-indignity/) is to simply throwaway all the styles by using the Reader View add-on.
https://addons.palemoon.org/addon/readerview/
It either works well, or doesn't(!) and since I am not currently interested in spending time with more sophisticated ways of changing the styling of pages, is always worth a try when I am not happy with the readability of a site.
https://addons.palemoon.org/addon/readerview/
It either works well, or doesn't(!) and since I am not currently interested in spending time with more sophisticated ways of changing the styling of pages, is always worth a try when I am not happy with the readability of a site.
Laptop 1: Windows 11 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.
-
- Knows the dark side
- Posts: 5589
- Joined: 2015-12-09, 15:45
Re: Sane fonts userstyle for Stylem, and a query
I already have reader view, but it's hit and miss on most sites. I'd prefer seeing a site with smaller fonts.
"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
Jabber: moonbat@hot-chili.net

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net
-
- Apollo supporter
- Posts: 47
- Joined: 2014-10-14, 22:07
- Location: Planet Claire
Re: Sane fonts userstyle for Stylem, and a query
Yes, it is hit-or-miss, but at least here, in my surfing universe, it works far more than it fails, so far.
Any chance anyone would be up for getting HtW to once again be able to export user re-configured pages to Stylish, so that the site-specific clean-up would be retained and automatically applicable in future visits? That, along with NoSquint, would be great.
Your work-in-progress sounds very interesting, though Greasemonkey may unfortunately be beyond my abilities, unless of course it is automagically performed.
Remember RIP (Remove It Permanently)?'
Great suggestion to have on hand! Text-to-speech in PM even though it says not. So this is communicating when, what, and with whom?suzyne wrote:https://addons.palemoon.org/addon/readerview/
-
- Astronaut
- Posts: 713
- Joined: 2023-06-28, 22:43
- Location: Australia
Re: Sane fonts userstyle for Stylem, and a query
I have tried the Narrate icon on a few different sites, and it never works for me?

Laptop 1: Windows 11 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.
-
- Knows the dark side
- Posts: 5589
- Joined: 2015-12-09, 15:45
Re: Sane fonts userstyle for Stylem, and a query
Yes, that's how the original extension worked. Make whatever edits you want to a page using the toolbar (change fonts/css, remove elements, expand/shrink elements etc) and save the result as a GM script.
"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
Jabber: moonbat@hot-chili.net

KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net