Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save myfonj/75ef205bad70231ad4d1c6a02d0b0c93 to your computer and use it in GitHub Desktop.
Save myfonj/75ef205bad70231ad4d1c6a02d0b0c93 to your computer and use it in GitHub Desktop.
/*
* Bookmarklet for viewing source in iPad Safari
*/
javascript:(function(d,t){
d.write(t);
d.close();
d.body.appendChild(d.createTextNode(document.documentElement.outerHTML));
})(window.open('about:blank').document,'<!DOCTYPE html><title>Source of ' + location.href + '</title><meta name="viewport" content="width=device-width" /><body style="font-family: monospace, monospace; white-space: pre-wrap;">');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment