4 ms·
On firefox you can just switch to reader mode and reload the page.
by Rexxar 7y ago
On firefox you can just switch to reader mode and reload the page.
- _Microft 7y agoIf Firefox does not offer reader mode by itself, prepend about:reader?url= to the url to force loading the page in reader mode by the way.
- exhilaration 7y agoThanks for the tip. I'm curious, do you know how some sites prevent the reader mode button from appearing?
- _Microft 7y agoFrom what I would guess, it might be rather that these pages do not conform to what Firefox expects from a page to be suitable to be shown in reader mode. Large pieces of text with a few pictures in them or something like that. If you check back in a few hours, I might have posted more information on this.
- _Microft 7y agoThis might be the right place to look into: https://hg.mozilla.org/mozilla-central/file/default/toolkit/components/reader https://hg.mozilla.org/mozilla-central/file/default/toolkit/... Especially: https://hg.mozilla.org/mozilla-central/file/a6a5a4f31ea26906e584e162b8d9485e6cacca32/toolkit/components/reader/Readability-readerable.js#l51 https://hg.mozilla.org/mozilla-central/file/a6a5a4f31ea26906... Edit: this is a potshot.
- CalRobert 7y agoThank you thank you!!!!! This is hugely helpful.
- joosters 7y agoIs there any way to turn this into a bookmarklet, so that clicking on it would prefix the current URL with that?
- kohtatsu 7y agojavascript:window.location="about:reader?url="+window.location (sorry I'm on my phone just guessing; this kind of stuff might not be available because security or something nowadays)
- joosters 7y agoIt's got to be something like that, unfortunately I just don't know the exact syntax. I've got some other javascript bookmarklets in firefox, but looking now at their links, they are a mess of %-encoding, and I'm not sure if that's important or not (perhaps they got mangled through an old import) FWIW, here's a bookmark to get rid of static bars (the kind of thing annoying websites have stuck at the top of the page and won't go away when you scroll): javascript:(function()%7B(function%20()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3Bfor%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7Bif%20(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed')%20%7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)() I don't remember it being quite so ugly when I first added it, surely bookmarks don't need to %-encode spaces and curly brackets?