// ==UserScript== // @name sciencedirect+ieeexplore+tandfonline+springer跳转HFUT_无按钮 // @namespace hanzhang // @version 1.2.5 // @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/* // @match https://www.emerald.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" //html_title[6]="www.emerald.com" //let link = location.href; let link = window.location.host //debugger; if(link==html_title[0]) { link = location.href; var pattern = /S\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w/; var str = pattern.exec(link); const link_replace = 'https://webvpn.hfut.edu.cn/https/77726476706e69737468656265737421e7e056d234336155700b8ca891472636a6d29e640e/science/article/pii/XXXX'; var link_rep=link_replace.replace('XXXX',str); link = link_rep; } else if(link==html_title[1]) { link = location.href; link = link.replace('ieeexplore.ieee.org','webvpn.hfut.edu.cn/https/77726476706e69737468656265737421f9f244993f20645f6c0dc7a59d50267b1ab4a9'); } else if(link==html_title[2]) { link = location.href; link = link.replace('www.tandfonline.com','webvpn.hfut.edu.cn/https/77726476706e69737468656265737421e7e056d233316654780787a0915b267b559aba'); } else if(link==html_title[3]) { link = location.href; link = link.replace('www.springer.com','webvpn.hfut.edu.cn/https/77726476706e69737468656265737421fcfe4f976923784277068ea98a1b203a54'); } else if(link==html_title[4]) { link = location.href; link = link.replace('link.springer.com','webvpn.hfut.edu.cn/https/77726476706e69737468656265737421fcfe4f976923784277068ea98a1b203a54'); } // else if(link==html_title[5]) // { // link = location.href; // if(link.search("onlinelibrary.wiley.com/doi/abs/") != -1) // { // link = link.replace('onlinelibrary.wiley.com/doi/abs/','onlinelibrary-wiley-com-443.webvpn.hfut.edu.cn/doi/'); // } // if(link.search("onlinelibrary.wiley.com/doi/pdf/") != -1) // { // link = link.replace('onlinelibrary.wiley.com/doi/pdf/','onlinelibrary-wiley-com-443.webvpn.hfut.edu.cn/doi/'); // } // } // else if(link==html_title[6]) // { // link = location.href; // link = link.replace('www.emerald.com','www-emerald-com-s.webvpn.hfut.edu.cn'); // } GM_openInTab(link, { active: true }); })();