Skip to content

Instantly share code, notes, and snippets.

@tomkeays
Created June 1, 2020 17:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomkeays/22a3f2c9dba289f3fd4e218c83dc17ce to your computer and use it in GitHub Desktop.
Save tomkeays/22a3f2c9dba289f3fd4e218c83dc17ce to your computer and use it in GitHub Desktop.
Proxy This & Unproxy This (bookmarklets)
javascript:pc=location.protocol;hn=location.hostname;hn=((pc==='http:')?hn:hn.replace(/\./g,'-'));pt=location.port;pt=(pt?':'+pt:pt);pn=location.pathname;sn=location.search;hs=location.hash;void(location.href=pc+'//0-'+hn+'.library.lemoyne.edu'+pt+pn+sn+hs);
javascript:pc=location.protocol;hn=location.hostname;hn=hn.replace(/0-/i,'');hn=hn.replace(/\.library\.lemoyne\.edu/i,'');hn=hn.replace(/-/g,'.');pt=location.port;pt=(pt?':'+pt:pt);pn=location.pathname;sn=location.search;hs=location.hash;void(location.href=pc+'//'+hn+pt+pn+sn+hs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment