Skip to content

Instantly share code, notes, and snippets.

Created April 16, 2010 16:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/368619 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name ACMSchoolProxy
// @namespace acm
// @description rewrites ACM urls to go through a school proxy to allow access to the material
// @include http://portal.acm.org/*
// ==/UserScript==
// Change this to whatever proxy your school uses
SCHOOL_URL = 'ezproxy.lib.ryerson.ca';
location.href = location.href.replace(location.hostname, location.hostname + '.' + SCHOOL_URL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment