Using chrome bookmarks to proxy the current url

Chrome bookmarks can execute JavaScript if you use the javascript: directive.

javascript: //javascript code

If you organization or school has a proxy server (for instance for accessing papers from library sites), you may be able to access this through a url query. For instance: https://dianus.libr.tue.nl/login?url=URL_HERE. The following script will prefix the current url with this proxy.

javascript:(()=>window.location.href = "https://dianus.libr.tue.nl/login?url=" + window.location.href)()

To use this, create a new bookmark, paste this in the URL field of the bookmark and edit the proxy string if needed. Then, with just a click, your current page will be requested through a proxy.

Communicating ChangeGraphQL and Cloudflare workers powered Riot API