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

  1. // ==UserScript==
  2. // @name Web of Science GoTo Publisher
  3. // @version 0.2
  4. // @author sincostandx
  5. // @license MIT
  6. // @description Automatically redirect to publisher website for full text when you click on the title in the Web of Science search result list
  7. // @namespace https://gf.qytechs.cn/users/171198
  8. // @include https://www.webofscience.com/wos/woscc/full-record/*
  9. // ==/UserScript==
  10.  
  11.  
  12. (() => {
  13. let trials = 0;
  14.  
  15. function getDOI(resolve, reject) {
  16. const doiEl = document.getElementById("FullRTa-DOI");
  17. if (doiEl) {
  18. resolve(doiEl.innerHTML);
  19. } else {
  20. if (++trials < 30) {
  21. setTimeout(() => getDOI(resolve, reject), 500);
  22. } else {
  23. reject("DOI not found");
  24. }
  25. }
  26. }
  27.  
  28. new Promise(getDOI).then(doi => {
  29. window.location.replace('https://doi.org/' + doi);
  30. })
  31. .catch(err => console.warn(err));
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址