Skip to content

Instantly share code, notes, and snippets.

View victorquinn's full-sized avatar
🏗️
Building awesome teams, software, and systems architecture

Victor Quinn victorquinn

🏗️
Building awesome teams, software, and systems architecture
View GitHub Profile
@victorquinn
victorquinn / ipad-view-source-bookmarklet
Created January 30, 2012 22:35 — forked from robflaherty/ipad-view-source-bookmarklet
iPad View Source Bookmarklet
javascript:(function(){
/* Bookmarklet for viewing source in iPad Safari */
var pageHTML = document.documentElement.innerHTML;
var otherlib = false;
var jQueryLoaded = false;
document.documentElement.innerHTML = '<!DOCTYPE html><html><head><title>Source of ' + location.href + '</title><meta name="viewport" content="width=device-width" /></head><body><div id="editor" style="height:' + window.innerHeight + 'px;width:' + window.innerWidth + 'px;"></div></body></html>';
/* Load jQuery */
if(typeof jQuery != 'undefined') {
console.log('This page already using jQuery v' + jQuery.fn.jquery);