Change The Font Size On iPhone And iPad Websites With Bookmarklets


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:

  1. Open up Safari and create and save a new bookmark to the bookmarks bar.
  2. Tap the bookmarks button again and choose edit.
  3. 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"}
  4. 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]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


One response to “Change The Font Size On iPhone And iPad Websites With Bookmarklets”

Leave a Reply