Webpages with lots of text in a really tiny font

Apr 01, 2006 23:10

Those are annoying. Of course, assuming you use a decent browser, it is easy to increase the zoom a bit untill the text is readable from a casually reclined position. However, said webpages, whether they're newspapers or erotic fan-fiction archives are certain to have lots of things bordering around the text. And if you increase the magnification of the webpage to 200% then suddenly the 200px border becomes 400px and occupies nearly half the screen. Intolerable!

There is a solution, though. Furthermore, there is a solution much nicer than copying the text over to a word processor. Opera User JavaScript allows you to add javascripts to any page that you view. So, messing around a bit, I hacked up a javascript that will open up single divisions or table cells into a new window. Yay!

Issues:
As most tables you'll encounter don't have borders it may be difficult to know where to doubleclick. I recommend that you play a bit around with the website. It should be pretty consistent throughout each of them. Some newspapers tend to write every single line in its own division/cell, so you'll need to click somewhere within the article but not where there is any text. But yeah.. work it out.
As far as I could tell, there is no way to set Opera's magnification level through a script, and it does not support the zoom style that MS has thrown into IE. I sat it to increase the font-size, but this will typically not work if they do stuff with nested tables. Having child divisions with specified sized will do a bit stupid things as well.. maybe I should check into it.
The script binding the ondblclick events isn't run until the page is done loading, which is a bit late for my taste in certain cases. Not sure if there's a way to solve this, though.
Fetching the innerHTML of tags doesn't seem to work in opera. It's a bit non-standard though, so there's nobody to complain to about it. However, external css files are loaded, and most pages seem to mostly rely on those.
Oh, and it screws up anything else you would want to use doubleclicks for as well, of course. Like highlighting a word or a paragraph or something. You'll have to do that the old-fashioned way.

The script is here. Just download it whereever, ignoring the fact that it looks like it was written by a six-year-old, and tell Opera where whereever is by going to Tools -> Preferences -> Advanced -> Content -> JavaScript Options... -> My JavaScript files. Couldn't be easier! Then just doubleclick on whatever.

Enjoy!

Looking at the preview, it seems that the issues part took up a pretty large portion of this post. They're really not that bad, okay. I think... I'm probably just being very critical.

I got my itinerary for Las Vegas. Heading out noonish on the 2nd of May, and get back early early morning on the 8th. I have the entire Saturday to walk around and visit white felines and try to avoid the shiny casinoes and escorts.

Oh, and I nearly forgot. While I'm talking about webstuff. Read the URL. Then check out the first two style-entry names
http://connect.microsoft.com/Styles/GeneralStyles.css

html, text, vegas, javascript

Previous post Next post
Up