Fork me on GitHub

Snoopy v0.2

Snoopy is a bookmarklet for snooping on web pages. It's intended for use on mobile browsers (such as Mobile Safari on the iPad) where you can't view-source to poke around under the hood of sites to see how they're built. You might find it useful for your desktop browser, too.

Using the bookmarklet will give you an overlay featuring information that Snoopy can 'sniff' out of the page, such as the doctype, what JS libraries are used in the page, what analytics, what font embedding technique is used, etc. It also gives you the ability to view the raw and/or generated source of the page.

The Snoopy bookmarklet (click to try!): Snoopy

A note on scrolling in the 'view-source' view (in Mobile Safari)…

Mobile Safari helpfully decides to hide all internal scrollbars in pages, so if open the view-source tab in Snoopy and want to scroll within the code display window, you'll need to use two fingered drags within the source code area to navigate about.

Installation - Mobile Safari

The easiest way is to open up desktop Safari, drag the bookmarklet above to the bookmarks bar, and then either use MobileMe or standard USB bookmark syncing to your iDevice.

Alternatively, if you don't like syncing, you can do it the hard way…

  1. Visit this page in Mobile Safari.
  2. Copy all of the code in the following textarea to the clipboard:
  3. Click the '+' button on the menu bar and click the 'Add Bookmark' button.
  4. Change the top field (the Title field) to 'Snoopy' or whatever you want.
  5. (I'd recommend adding this to the Bookmarks Bar at this point, too)
  6. Click the 'Save' button.
  7. Take a deep breath. You're halfway there.
  8. Now click on the little book icon in the menu bar to bring up your bookmarks. Navigate to the folder that you saved the Snoopy bookmark in.
  9. Click the 'Edit' button and then tap on the bookmark you just created to edit it.
  10. Now select the second field from the top (the Address field), clear it out and paste the link you copied at the start into the field.
  11. Hit the 'Done' button to save, and you're all set!

Installation - Chrome

The installation process for Chrome on iOS is essentially the same as for Mobile Safari:

  1. Save the bookmarklet to the 'Bookmarks Bar' using Chrome on the desktop.
  2. Sync bookmarks between iOS and desktop using your Google account.


  1. Visit this page in Chrome for iOS.
  2. Manually copy/paste the JavaScript into a new bookmark.

To then launch Snoopy on Chrome for iOS

  1. Visit the web page on which you want to launch Snoopy
  2. Type the name of your bookmarklet (eg. Snoopy) into the Omnibar.
  3. Find the Snoopy bookmark at the end of the list Chrome displays.

Read more about bookmarklets and Chrome on iOS, including a short video.

Installation - Android...

Unfortunately the stock Android browser doesn't currently support the use of the 'javascript:' pseudo-protocol bookmarklets, so Snoopy can't be installed. If anyone has any ideas on how to work around this issue, then please get in touch.

It appears that newer versions (>2.1?) of Android can install bookmarklets - although there is a limited character set that can be used which may cause it to fail. Currently investigating.

Installation - Desktop Browsers

Simply drag the bookmarklet above to your bookmarks bar and you're done.

Coming soon...

Snoopy was created by Mark Perkins. You can fork the source code on GitHub, or follow me on Twitter for updates.