Greasy Fork镜像 支持简体中文。

Google Scholar Auto Redirect

Automatically redirect to publisher website when there is only one result in a Google Scholar search

  1. // ==UserScript==
  2. // @name Google Scholar Auto Redirect
  3. // @version 0.1.2
  4. // @author sincostandx
  5. // @description Automatically redirect to publisher website when there is only one result in a Google Scholar search
  6. // @namespace https://gf.qytechs.cn/users/171198
  7. // @grant none
  8. // @match https://scholar.google.*/scholar*
  9. // ==/UserScript==
  10.  
  11. const links = document.querySelectorAll('.gs_rt > a');
  12. if (links.length !== 1)
  13. return;
  14. if (sessionStorage.getItem(location.href) === null) {
  15. // Prevent redirection when back button is pressed
  16. sessionStorage.setItem(location.href,'1');
  17. links[0].click();
  18. }

QingJ © 2025

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