// ==UserScript== // @name sciencedirect+ieeexplore+tandfonline+springer跳转HFUT_无按钮 // @namespace hanzhang // @version 1.2 // @description sciencedirect+ieeexplore+tandfonline跳转 HFUT // @author hanzhang // @match https://www.sciencedirect.com/* // @match https://ieeexplore.ieee.org/* // @match https://www.tandfonline.com/* // @match https://link.springer.com/* // @match https://www.springer.com/* // @match https://onlinelibrary.wiley.com/* // @grant GM_openInTab // @downloadURL none // ==/UserScript== (function() { 'use strict'; var html_title=new Array() html_title[0]= "www.sciencedirect.com" html_title[1]= "ieeexplore.ieee.org" html_title[2]= "www.tandfonline.com" html_title[3]= "www.springer.com" html_title[4]= "link.springer.com" html_title[5]="onlinelibrary.wiley.com" //let link = location.href; let link = window.location.host //debugger; if(link==html_title[0]) { link = location.href; link = link.replace('www.sciencedirect.com','www-sciencedirect-com-443.webvpn.hfut.edu.cn'); } else if(link==html_title[1]) { link = location.href; link = link.replace('ieeexplore.ieee.org','ieeexplore-ieee-org-443.webvpn.hfut.edu.cn'); } else if(link==html_title[2]) { link = location.href; link = link.replace('www.tandfonline.com','www-tandfonline-com-443.webvpn.hfut.edu.cn'); } else if(link==html_title[3]) { link = location.href; link = link.replace('www.springer.com','link-springer-com-443.webvpn.hfut.edu.cn'); } else if(link==html_title[4]) { link = location.href; link = link.replace('link.springer.com','link-springer-com-443.webvpn.hfut.edu.cn'); } else if(link==html_title[5]) { link = location.href; link = link.replace('onlinelibrary.wiley.com/doi/pdf/','onlinelibrary-wiley-com-443.webvpn.hfut.edu.cn/doi/'); } GM_openInTab(link, { active: true }); })();