Skip to content

Instantly share code, notes, and snippets.

@fransallen
Last active December 4, 2019 15:47
Show Gist options
  • Save fransallen/3d7c561824c35c38db5249c8d25c1af9 to your computer and use it in GitHub Desktop.
Save fransallen/3d7c561824c35c38db5249c8d25c1af9 to your computer and use it in GitHub Desktop.
Capture web pages with bookmarklets!
SS_ENDPOINT = "https://cdn.statically.io/s/";
DOMAIN = window.location.hostname;
PATH = window.location.pathname;
window.open(SS_ENDPOINT + DOMAIN + PATH);
javascript:(function()%7BSS_ENDPOINT%20%3D%20%22https%3A%2F%2Fcdn.statically.io%2Fs%2F%22%3BDOMAIN%20%3D%20window.location.hostname%3BPATH%20%3D%20window.location.pathname%3Bwindow.open(SS_ENDPOINT%20%2B%20DOMAIN%20%2B%20PATH)%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment