Bookmarklet for going to the current URL using Umich’s webproxy

Many universities have webproxies that let students and faculty members access restricted pages remotely. For me this mostly falls under ACM’s webportal. For the longest time I have manually typed in “.proxy.lib.umich.edu” for each URL that I have this problem with. But TODAY I solved this problem for good with JavaScript. Unfortunately I cannot add the bookmarklet directly to wordpress because they filter javascript. But. If you too want to copy this trick, create a bookmark with the following URL:

javascript:function a(){var parts = document.location.toString().split(“\/“); var url=parts[0] + “\/\/“ + parts[2] + “.proxy.lib.umich.edu“ + “\/“;parts.shift();parts.shift();parts.shift(); url += parts.join(“/“); document.location=url; }a()

Name the bookmark “Access with webproxy”, and drop it into your “Navigation toolbar”, now when you are on a webpage that you would normally need to use the proxy for just click the newly created bookmark.

One Response

  1. You’ll need to make sure to change the fancy quote marks, i.e. “” to single ‘ or ” (uhh.. wordpress might make my examples fancy, but you get the picture)

Leave a Reply

You must be logged in to post a comment.