Skip to content

Instantly share code, notes, and snippets.

@CSymes
Last active January 14, 2019 13:05
Show Gist options
  • Save CSymes/7e3b0062e98de6c010763de8b5408b02 to your computer and use it in GitHub Desktop.
Save CSymes/7e3b0062e98de6c010763de8b5408b02 to your computer and use it in GitHub Desktop.
Automatically redirects several 'scholarly' websites to use RMIT's proxy, allowing full access without having to manually use the proxy pages.
// ==UserScript==
// @name RMIT Proxifier
// @namespace com.plasticsquid.rmit-proxy
// @version 1.2
// @description Redirect IEEE Xplore pages to use RMIT proxy
// @author Cary Symes
// @match *ieeexplore.ieee.org/*
// @match *www.sciencedirect.com/*
// @match *scholar.google.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
// Hosted at https://gist.github.com/CSymes/7e3b0062e98de6c010763de8b5408b02
(function() {
'use strict';
document.location.replace(window.location.href.replace('ieeexplore.ieee.org', 'ieeexplore-ieee-org.ezproxy.lib.rmit.edu.au'));
document.location.replace(window.location.href.replace('www.sciencedirect.com', 'www-sciencedirect-com.ezproxy.lib.rmit.edu.au'));
document.location.replace(window.location.href.replace('scholar.google.com', 'scholar-google-com-au.ezproxy.lib.rmit.edu.au'));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment