Skip to content

Instantly share code, notes, and snippets.

@ykzts
Created February 2, 2012 00:29
Show Gist options
  • Save ykzts/1720384 to your computer and use it in GitHub Desktop.
Save ykzts/1720384 to your computer and use it in GitHub Desktop.
iOSのSafariで表示しているページのHTMLソースを表示させるbookmarklet
javascript:+function(d,g)%7Bvar%20r=d.documentElement,c=d.createElement,p=c.call(d,'pre'),s=c.call(d,'script'),l=c.call(d,'link');p.className='prettyprint';p.style.cssText='margin:0;overflow:scroll';p.textContent=r.outerHTML;s.src=g+'3E0h4ruw';l.rel='stylesheet';l.href=g+'BRONQJzU';while(c=r.firstChild)r.removeChild(c);%5Bp,s,l%5D.map(r.appendChild,r);__defineSetter__('prettyPrint',function(f)%7Bf()%7D)%7D(document,'//t.co/')
@ykzts
Copy link
Author

ykzts commented Feb 2, 2012

現在インターネットに接続できるクライアント端末がiPhoneだけなので書いてみたのですが、iPhoneでJavaScriptとか書くものではありませんね。まくぶくぷろほしい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment