// ==UserScript==
// @name Carleton_ieee_redirect
// @namespace http://codehealthy.com/
// @version 0.1
// @description This redirects ieee page to carleton university proxy page
// @match http://ieeexplore.ieee.org/document/*
// @copyright 2017, Ranjit Singh Saini
// @run-at document-start
// ==/UserScript==
reToPage("http://ieeexplore.ieee.org/document/");
function reToPage(currentpage){
if(window.location.href.indexOf(currentpage) != -1){
window.location.href = window.location.href.slice(0, -1).replace("http://ieeexplore.ieee.org/document/", "http://ieeexplore.ieee.org.proxy.library.carleton.ca/stamp/stamp.jsp?arnumber=");
}
}