您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Automatically redirect to publisher website for full text when you click on the title in the Web of Science search result list
当前为
// ==UserScript== // @name Web of Science GoTo Publisher // @version 0.2 // @author sincostandx // @license MIT // @description Automatically redirect to publisher website for full text when you click on the title in the Web of Science search result list // @namespace http://greasyfork.icu/users/171198 // @include https://www.webofscience.com/wos/woscc/full-record/* // ==/UserScript== (() => { let trials = 0; function getDOI(resolve, reject) { const doiEl = document.getElementById("FullRTa-DOI"); if (doiEl) { resolve(doiEl.innerHTML); } else { if (++trials < 30) { setTimeout(() => getDOI(resolve, reject), 500); } else { reject("DOI not found"); } } } new Promise(getDOI).then(doi => { window.location.replace('https://doi.org/' + doi); }) .catch(err => console.warn(err)); })();