Zoom text only in web pages with Opera
Saturday, 12. May 2007, 15:17:08
You can of course go into Tools -> Preferences -> Advanced -> Fonts and set the Minimum font size to something appropriate so that text never gets smaller than a certain size. Mine is at 11 pixels now. But sometimes you want to zoom text on pages for small periods, or only on certain pages. The solution is a simple User Javascript.
Download the zoom-text.js script and put it any folder you prefer, I use ~/.opera/userjs/ on my Linux laptop. I have already also told Opera to run User Javascript that are located in that drawer, by going to Tools -> Preferences -> Advanced -> Content -> Javascript Options and putting ~/.opera/userjs/ in the User Javascript files field.

Now just go to any page, and you should see a little icon at the bottom right of the page. Click on this icon and you will get a box containing a "zoom in", "zoom out" and a "reset" button to play with. The script will automatically adjust the size the next time you visit the same domain to match the size you altered it to the previous visit.
Thank you very much!
By Maulkin, # 9. May 2007, 06:48:14
Thank you, Nicolas!
By medium, # 13. May 2007, 17:32:23
zoomIcon.style.fontSize = "12px";
zoomControls.style.fontSize = "12px";
You can try forcing another pixel value like "20px" or play with "1em", "1.5em" or "2.5em".
If you just change the zoomIcon one, you might need to add some more space for the controls using:
zoomControls.style.margin = "0.5em";
Glad you liked it.
By nicomen, # 14. May 2007, 05:44:25
It is interesting: some sites automatically are unwinding the window editable for zoom without click.
By medium, # 16. May 2007, 23:33:47
By nicomen, # 17. May 2007, 10:20:56
And I'm sorry for my English... :/
By medium, # 19. May 2007, 18:21:08
Like this?
By nicomen, # 21. May 2007, 05:19:32
By medium, # 21. May 2007, 07:32:46
Ah ok, you are saying the xoom "window" pops up without you clicking it? It doesn't happen to me, hm, that's weird...
By nicomen, # 21. May 2007, 11:30:49
For the accuracy: it is necessary to use the search engine and only in results of searching one can see the automatically big icon from script.
And curiosity, try to add this search engine to your set...
By medium, # 22. May 2007, 12:00:25
By nicomen, # 24. May 2007, 10:59:51
wargamez claims there is a bug in the anonymous posting, so I apologize for abusing the comments for testing... :-)
By anonymous user, # 5. June 2007, 10:59:26
http://www.dn.no/
Your script sticks to the flash stuff also, and on the very top flash it does not work.
By anonymous user, # 5. June 2007, 11:03:14
Do you mean the scroll text part? Because the flash ads on the top are not own paes it seems.
If it's the scroll text part, I'm not sure I know how I should go forth to make it work in so small areas...
By nicomen, # 5. June 2007, 12:49:22
Yes, thats what I meant
By anonymous user, # 5. June 2007, 13:40:57
Does this work for web pages that do not use .html? It does not seem to work on pages using .php or .shtml.
By anonymous user, # 25. April 2008, 18:13:32
By nicomen, # 28. April 2008, 01:00:57