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-24 提交的版本,查看 最新版本

  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.21
  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 *://ieeexplore.ieee.org/*
  14. // @match *://springerlink.com/*
  15. // @match *://springerlink.metapress.com/*
  16. // @match *://springerprotocols.com/*
  17. // @match *://link.springer.com/*
  18. // @match *://journals.sagepub.com/*
  19. // @match *://www.scopus.com/*
  20. // @match *://scopus.com/*
  21. // @match *://sciencedirect.com/*
  22. // @match *://www.sciencedirect.com/*
  23. // @match *://dl.acm.org/*
  24. // @match *://www.tandfonline.com/*
  25.  
  26. // @run-at document-start
  27. // @grant none
  28. // ==/UserScript==
  29.  
  30. var newURL = window.location.protocol + "//"
  31. + window.location.host.replaceAll(".", "-")
  32. + ".proxy.bnl.lu"
  33. + window.location.pathname;
  34.  
  35. window.location.replace (newURL);