Chibimagic's Weblog

Posts Tagged ‘iOS

  1. View a webpage on your iPad
  2. Wonder what the URL is for an image on the page
  3. Wonder if you can view the source for the entire page
  4. Google (Yahoo) “view source iOS”
  5. Read JS snippet of first result, decide you don’t want to send the source of all your pages to a random site on the internet and decide to write your own
  6. Bookmark the current page as a starting point for your bookmarklet
  7. Copy their JS as a starting point for your bookmarklet
  8. Switch over to FioWriter on your iPad, which automatically sees your clipboard text and offers to create a new document with it
  9. Create a new document in Dropbox
  10. Tweak JS to your liking
  11. Copy and paste into Safari bookmarklet
  12. Test
  13. Repeat last 3 steps ad nauseam
  14. Get tired of not being able to view the DOM
  15. Switch over to your laptop to repeat the tweak/copy/paste/test cycle in Safari and TextWrangler
  16. Switch over to Chrome after some errant JS tries to append a node into itself, insta-crashing Safari
  17. Get the code working, then tweak some more to your satisfaction
  18. Paste final code into TextWrangler and save to Dropbox
  19. Switch back to your iPad and copy/paste into Safari one last time
  20. Test out code
  21. Rejoice
  22. Forget why you wanted to view source in the first place


javascript:(function(){var a=document.documentElement.innerHTML,b=window.open('about:blank'),c=b.document,d=c.createTextNode(a);c.write('');c.getElementsByTagName('body')[0].appendChild(d)})()

Tags: