Greasy Fork镜像 is available in English.

Web of Science GoTo Publisher

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   https://greasyfork.dpdns.org/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));
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联