Auto add BnL Proxy into URL

Reserved for the user of Bibliothèque nationale du Luxembourg (BnL). Add ".proxy.bnl.lu" at the end of publication website URL

当前为 2022-10-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Auto add BnL Proxy into URL
  3. // @description Reserved for the user of Bibliothèque nationale du Luxembourg (BnL). Add ".proxy.bnl.lu" at the end of publication website URL
  4. // @author Bowen
  5. // @version 0.2
  6. // @namespace https://greasyfork.org/users/964008
  7. // @license MIT
  8.  
  9. // @match *://interscience.wiley.com/*
  10. // @match *://onlinelibrary.wiley.com/*
  11. // @match *://www3.interscience.wiley.com/*
  12. // @match *://emeraldinsight.com/*
  13. // @match *://ieee.org/*
  14. // @match *://www.ieee.org/*
  15. // @match *://ieeexplore.ieee.org/*
  16. // @match *://springerlink.com/*
  17. // @match *://springerlink.metapress.com/*
  18. // @match *://springerprotocols.com/*
  19. // @match *://link.springer.com/*
  20. // @match *://journals.sagepub.com/*
  21. // @match *://www.scopus.com/*
  22. // @match *://scopus.com/*
  23. // @match *://sciencedirect.com/*
  24. // @match *://www.sciencedirect.com/*
  25.  
  26. // @match http(s)?://dl.acm.org/*
  27.  
  28. // @run-at document-start
  29. // @grant none
  30. // ==/UserScript==
  31.  
  32. var newURL = window.location.protocol + "//"
  33. + window.location.host.replaceAll(".", "-")
  34. + ".proxy.bnl.lu"
  35. + window.location.pathname;
  36.  
  37. window.location.replace (newURL);