Skip to content

Instantly share code, notes, and snippets.

@anvaka
Created August 25, 2018 19:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anvaka/f489f72fd99e50bfc0c89f4fc2209ac3 to your computer and use it in GitHub Desktop.
Save anvaka/f489f72fd99e50bfc0c89f4fc2209ac3 to your computer and use it in GitHub Desktop.
Pan and zoom

Pan and zoom some websites.

In the browser address bar type javascript: and then paste this line

s=document.createElement("script");s.src="https://cdn.rawgit.com/anvaka/panzoom/v6.1.3/dist/panzoom.js";s.setAttribute('query','body');document.head.appendChild(s)

Note: This doesn't work on some websites with strict content security policy (like Twitter or Facebook)

The library source code is here: https://github.com/anvaka/panzoom

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