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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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.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));
})();