Ever run into a website on your iPhone or iPad where the text just wasn’t the right size? Blogger Marcos Kirsch has put together a simple Javascript bookmarklet to quickly change the font size on any page.
The process is pretty simple and in the end you can quickly change the font size on any page:
- Open up Safari and create and save a new bookmark to the bookmarks bar.
- Tap the bookmarks button again and choose edit.
- Name the new bookmark + and paste the URL with this Javascript:
javascript:var p=document.getElementsByTagName('*');for(i=0;i<p.length;i++){if(p[i].style.fontSize){var s=parseInt(p[i].style.fontSize.replace("px",""));}else{var s=12;}s+=2;p[i].style.fontSize=s+"px"}
- Repeat steps 1 through 3, but replace the + with a – and insert this Javascript:
javascript:var p=document.getElementsByTagName('*');for(i=0;i<p.length;i++){if(p[i].style.fontSize){var s=parseInt(p[i].style.fontSize.replace("px",""));}else{var s=12;}s-=2;p[i].style.fontSize=s+"px"}
Now you’ll have bookmarklets to quickly change the font size of any text.
Font size bookmarklets [The Marcos Kirsch Experience via OS X Daily]
Leave a Reply
You must be logged in to post a comment.