Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Shared on Facebook

Shop at Amazon

Ad

OSXDaily on Facebook

Search iOS

Change the Font Size of Web Pages in Safari for iOS with Bookmarklets

May 11, 2012 - 13 Comments

Change font size on Safari for iPad with bookmarklets

Everyone has run into a webpage where the font size is unbearably small on an iOS device, typically a reverse pinch gesture will make the text legible but on some pages that have a fixed width you then have to scroll sideways in addition to up and down. You can sort of get around that font size limitation by using the Reader feature on an iPhone or iPad, but that’s not ideal for every website either. This is precisely what two handy bookmarklets aim to resolve, by creating two fontsize increase and decrease buttons that can be accessed directly in Safari.

This addition is so useful that the concept should probably be included in future versions of Safari for iOS but only time will tell if that happens. In the meantime here’s what you need to do to get this working.

Repeat this process separately for both the increase and decrease functions:

  1. Open Safari on iPad or iPhone and create a bookmark for any page
  2. Tap the Bookmarks button at the top of the screen and choose “Edit”
  3. Edit the newly created bookmark, naming it either a minus (-) or plus (+) symbol and replace the URL by pasting in the appropriate javascript code shown below, depending on the desired function
  4. Save the bookmark change and load a new web page, tap on the + or – buttons to test font size changes live. Refreshing the page restores the font size to it’s default.

Decrease Font Size (-)

1
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"}

Increase Font Size (+)

1
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"}

These bookmarklet tweaks work by editing a bookmark URL and replacing it with a javascript that changes on page behavior, similar custom bookmarklets have allowed us to View Page Source in iOS Safari and even use Firebug on iOS.

This very handy solution comes from Marcos.Kirsch.com.mx, who recommends placing them in the Safari bookmarks bar for easy access.

Redsn0w 0.9.11b1 Allows for Downgrading iOS 5.1 to 5.0.1

May 11, 2012 - 3 Comments

Redsn0w 0.9.11b1 allows for downgrading iOS

Unhappy with iOS 5.1 and tethered booting a jailbroken device? A new version of the redsn0w jailbreak utility allows users to downgrade their iOS hardware from iOS 5.1 to iOS 5.0.1, allowing for a return to an untethered jailbreak with the previous iOS version. Perhaps most significantly, the redsnow assisted downgrade works on all A5-equipped hardware, including the iPad 3, iPad 2, and iPhone 4S. There is a caveat though, downgrading is only possible for iOS devices which have SHSH blobs saved with Cydia or TinyUmbrella, an activity that must have been performed on a jailbroken device at the time it was running 5.0.1.

To use the new downgrade functionality in redsn0w, download the latest version, launch the app, and click on “Extras” followed by “Even More” and then “Restore”. You will need the iOS 5.0.1 IPSW file to complete the task.

Download Redsn0w 0.9.11b1

For those without SHSH blobs saved, there remains a tethered jailbreak available for iOS 5.1.1 and an untethered variation for all devices is currently in the works with a release expected sometime over the next few weeks.

You can find more information about this specific release on the Dev Team blog.

How to Stop an App Downloading in iOS

May 10, 2012 - 4 Comments

Stop an App Download in iOS

If you’ve ever started to accidentally download something on an iPhone, iPad, or iPod, or you just decide you want to stop an app download for some other reason, all you need to do is tap on the app icon and hold until the icons begin to jiggle, then tap the (X) button to stop the download and remove the app from the home screen. Similarly, if you just want to pause the download instead, just tap on the icon while the download progress bar is active, then re-tap it to begin the download again.

This does not remove the app from your purchase history though, meaning you can redownload it again at any point for free either on the same iOS device or a different one attached to the same Apple ID without purchasing again, the same way you would with an accidentally deleted app.

This is a great tip for downloading temporarily free non-universal apps for the iPhone on an iPad or vice versa, that way the app is stored within the App Store’s Purchase History but it’s not taking up any space on a device it wasn’t intended for.

Download iOS Updates Once for Installing on Multiple Devices

May 9, 2012 - 4 Comments

Download a Single IPSW File for Upgrading Multiple Devices

If you have several iPhones, iPads, or iPods that need updating to the latest version of iOS, you can use a nice trick to save some bandwidth and download a single iOS update file to apply to multiple devices from either Mac OS X or Windows. This is a perfect solution for a family that has multiple iPhones or iPads that need updating, particularly when you don’t want to download the same firmware multiple times.

To be clear, the iOS devices must be of the same type and model, meaning three different iPhone 4s can use the same firmware, but an iPhone 4 can’t use the same update file as an iPad 2 would, and an iPod touch can’t use an iPhone 4S update file, and so on. Same models use the same IPSW, different models need different IPSW.

How to Use a Single IPSW File with Multiple iOS Devices

To do this, you will need to download the iOS firmware files directly from Apple. Here are firmware links for iPad, iPod touch, iPhone if needed, once you have the file you place them into the folder where IPSW files are stored locally. Here’s the process for Mac OS X and Windows, and yes you can use an IPSW file downloaded on a Mac or PC to update an iOS device connected to a different PC or Mac, the files are platform agnostic.

For Mac OS X:

  1. Quit iTunes
  2. Hit Command+Shift+G to bring up “Go To Folder” and enter the following path, depending on your iOS device:
  3. ~/Library/iTunes/iPhone Software Updates
    ~/Library/iTunes/iPad Software Updates
    ~/Library/iTunes/iPod Software Updates

  4. Drag and drop the downloaded IPSW file into the appropriate location
  5. Launch iTunes and connect the iOS devices to the computer to initiate the upgrade

For Windows:

  1. Quit iTunes
  2. Use Windows Explorer to navigate to the following directory, depending on the iOS device and version of Windows:
  3. Windows XP:
    \Documents and Settings\username\Application Data\Apple Computer\iTunes\iPhone Software Updates
    Windows Vista & Windows 7:
    \Users\username\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates

  4. Move the IPSW file into the appropriate Software Updates directory
  5. Relaunch iTunes and connect the iOS device to the PC

That’s all there is to it, and here’s how it works; anyone can download the updates without iTunes by using direct firmware links from Apple’s servers. Once you have the firmware file you can either use the standard method of using .ipsw files with ALT/Option clicking Restore, or use the approach outlined above which fools the computer into thinking it downloaded the iOS update itself, which will then immediately unpack and start the iOS upgrade process upon the launch of iTunes.

Don’t forget about OTA updates either, which allow iOS to download and update only the changes between releases. The resulting OTA update can often be 1/12 the size of a full firmware file, and although they can’t be shared between multiple devices the small size of the on-device update can make it a valid choice for the bandwidth conscious.

Thanks to AJ & NeverEnuf for giving the idea for this great tip in our comments.

Jailbreak iOS 5.1.1 with Redsn0w

May 7, 2012 - 30 Comments

Jailbreak iOS 5.1.1 with Redsn0w

iOS 5.1.1 was just released by Apple and believe it or not has already been jailbroken for some A4 devices. The jailbreak remains tethered, for the uninitiated that means each time the iOS device is rebooted it will need to connect to a computer and boot with the assistance of redsn0w.

Compatibility for this jailbreak includes iOS 5.1.1 on iPhone 3GS, iPhone 4, iPad 1, and iPod touch 3rd and 4th gen. The iPad 2, iPhone 4S, or iPad 3 are not yet supported.

How to Jailbreak iOS 5.1.1 with Redsn0w

As with any jailbreak, be sure to backup before proceeding.

  1. Download Redsn0w 0.9.10b8b (Mac OS X, Windows)
  2. Upgrade to iOS 5.1.1 either by OTA update, iTunes, or by manually installing through IPSW
  3. Download iOS 5.1 IPSW for the device you are using and save it somewhere easy to find, yes download the older version of iOS despite upgrading to iOS 5.1.1
  4. Launch Redsn0w and click on “Extras”
  5. Click on “Select IPSW” and locate the iOS 5.1 IPSW you just downloaded
  6. Click “Back” and then click on “Jailbreak”
  7. Follow on-screen instructions to enter into DFU mode
  8. Let Redsn0w run and install the jailbreak, the iOS device will eventually reboot and look for the Cydia icon to confirm the jailbreak has worked

The need to select older IPSW will likely be eliminated in an upcoming release of redsn0w, but for the time being it remains necessary.

Remember to boot tethered every time you the device turns on and off, that is done by launching Redsn0w, selecting “Extras” and choosing “Just Boot” from the options.

iOS 5.1.1 Released [Direct Download Links]

May 7, 2012 - 13 Comments

iOS 5.1.1 Download available through OTA

iOS 5.1.1 has been released for iPad, iPhone, and iPod touch, the software update comes as build 9B206 and includes a variety of bug fixes including an HDR photo issue, improved AirPlay, iPad network switching, an iTunes store fix, and improvements to Safari reading list syncing. The official changelog is listed below, and the software update is recommended to install for all iOS users.

Updating to iOS 5.1.1

The two simplest methods to update to iOS 5.1.1 are either through iTunes update or on the iOS device itself through OTA updates. Connect the iOS device to iTunes and install the update when prompted, or on the iOS device tap on “Settings” then “General” and then “Software Update”. For the bandwidth conscious, the OTA update on device is the leanest, with the update weighing in around 45MB.

Download iOS 5.1.1 IPSW Directly

These are direct download links to firmware files hosted by Apple, right-click and “Save As” for best results. The file extension should be .ipsw and nothing else, using IPSW files is easy but for most users it’s recommended to download through iTunes or the iOS device.

Separately, iOS 5.0.1 for Apple TV has been released:

Note the ISPW files are significantly larger than the delta updates available through OTA software update, and are generally best used by advanced users.

iOS 5.1.1 Changelog

Courtesy of Apple:

  • Improves reliability of using HDR option for photos taken using the Lock Screen shortcut
  • Addresses bugs that could prevent the new iPad from switching between 2G and 3G networks
  • Fixes bugs that affected AirPlay video playback in some circumstances
  • Improved reliability for syncing Safari bookmarks and Reading List
  • Fixes an issue where ‘Unable to purchase’ alert could be displayed after successful purchase

Enable the Safari Debug Console on iPhone & iPad

May 7, 2012 - Leave a Comment

Safari Debug Console in iOS, as shown on iPhone

Safari for iOS includes an optional debug console to help web developers track down and resolve issues with webpages while on the go. While not as in inclusive as the desktop Safari debug and developer tools, it’s still useful and is easy to enable or disable on the iPhone and iPad:

  1. Launch “Settings” and tap on “Safari”
  2. Tap on “Advanced”
  3. Slide “Debug Console” to ON
  4. Enable the Safari Debug Console in iOS

Once enabled, tap on the Debug Console at the top of any Safari screen to see web page errors. The default list shows all errors, but you can drill down to more specific HTML, JavaScript, and CSS errors by tapping them individually.

Another useful tool for mobile web developers is Firebug Lite for iOS, which utilizes a javascript bookmarklet to load a simpler version of the popular Firebug development tool.

Delete iPhone & iPad Backups Easily Within iTunes

May 4, 2012 - 5 Comments

Delete iPhone, iPad, and iPod backups with iTunes

Without using iCloud, the iPhone, iPad, and iPod backups can take up a lot of local disk space on a computer. If you’ve moved the iPhone/iPad to sync with a new computer, sold an iOS device, or just want to potentially free up some disk space, you can easily delete these backups directly from iTunes.

  1. Launch iTunes and open iTunes Preferences
  2. Click the “Devices” tab to find the backup list
  3. Select the backup(s) you wish to delete and click “Delete Backup”

This only removes the backups that are stored locally on the computer and it will not impact iCloud backups, which won’t even show up in the list. It’s generally a good idea to leave the most recent backup intact, in the event you need to restore and don’t have fast internet access.

Only do this if you have a recent backup available somewhere. You can make a quick manual iCloud backup directly on the iOS device itself or sync it with iTunes.

Turn Off Dictation on iPad or iPhone 4S

May 4, 2012 - 7 Comments

iPad Dictation

Dictation on the iPad and iPhone 4S converts your words into text, it can make typing in iOS easier but it’s also easy to accidentally activate with an inadvertent touch. If you don’t use Dictation it’s simple to disable and hide the little microphone button from appearing on the keyboard.

  • Open Settings and tap on “General”
  • Tap on “Keyboard” and look for “Dictation”, swipe that from ON to OFF
  • Tap “Turn Off” to confirm

When you attempt to disable Dictation, you will receive a message that warns “The information Dictation uses to respond to your requests will be removed from Apple servers. If you want to use Dictation later, it will take time to re-send this information.” That’s fairly self explanatory, but basically if you reenable the service it has to reupload voice data before it works again.

View Two Web Pages Side-By-Side on iPad with Dual Browsers (Free Today Only)

May 1, 2012 - 6 Comments

Dual Browser windows on iPad

If you’ve ever tried to do web research with concurrent browser windows from the iPad, you’ve probably found yourself either opening tons of Safari tabs, emailing yourself lots of links, dumping things into Pocket or a similar app, or just giving up and getting on a Mac laptop. A better solution is an iOS app called Dual Browser, which as you may have guessed splits the browser window so you can view two web pages at the same time, side by side. It’s a fairly simple app and for a limited time (today 5/1/2012 only) it’s free to download from the App Store.

Some of the advanced features don’t seem to work on iPad 3 but if you are just looking for the basic side-by-side browser view then it gets the job done. The app could also use a retina graphics update, but hey it’s free for now so there isn’t much need to complain.

This is a worthwhile productivity app for the iPad for much the same reason that dual screens are so useful on a desktop computer, seeing more information can lead to more productivity, so grab it free while you can.

Thanks for sending this in Arol