Site specific zooming.

This script basically allows you to set specific zoom sizes for specific sites.

It uses a combination of relatively new standards built into Opera 10.5 , CSS 2D transforms and Javascript localStorage object, to be able to zoom the page, and save it.

It requires a javascript bookmark to be able to save your zoom level.The code for this is below. As it wouldn't be possible to have a consistent UI with it. But it mostly works for the main part.

javascript:(function(){var x=prompt('Enter zoom value,'+(localStorage.zoom?localStorage.zoom:'100')+'% is default',(localStorage.zoom?localStorage.zoom:'100'));if(x!='100' || x!='0'){localStorage.zoom=x;document.documentElement.style.OTransform='scale('+parseInt(localStorage.zoom)/100+')';document.documentElement.style.OTransformOrigin='0% 0%';}else{delete localStorage.zoom}})()

Possible problems with this: fixed elements get unfixed, probably due to the scale method implementation.

Enjoy :)

Syndicate content

application/x-javascript iconzoom.js (375)
Tested with Opera version(s): 
10.50
Your rating: None Average: 3 (3 votes)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

(No subject)

Not working with last snapshot

Is there any chance to compatable with last Opera 11 snapshot or to make an extension?

Works incorrectly with Opear 11.60

It changes the Zoom Level and remembers it alright but the page looks very blurry and yucky making it unusable.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.