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

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