Fix google scholar Nature URL redirect error

Fix google scholar Nature URL redirect error!

  1. // ==UserScript==
  2. // @name Fix google scholar Nature URL redirect error
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Fix google scholar Nature URL redirect error!
  6. // @author massyao
  7. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  8. // @grant none
  9. // @run-at document-end
  10. // @match https://scholar.google.com/*
  11. // @match https://scholar.google.com.au/*
  12. // @grant none
  13. // @license MIT
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. console.log('google scholar url error detecting !')
  19. const list = [...document.querySelectorAll('.gs_rt a')];
  20. list.forEach(a => {
  21. const link = a.href;
  22. if(link.match(/.+(redirect_uri=[^&]+[a-zA-Z]+\.\d+\..)+/)) {
  23. a.href = link.replace('.&', '&');
  24. console.log('nature url fixed!')
  25. }
  26. })
  27. })();

QingJ © 2025

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