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

  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.1
  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 *://ieeexplore.ieee.org/*
  15. // @match *://springerlink.com/*
  16. // @match *://springerlink.metapress.com/*
  17. // @match *://springerprotocols.com/*
  18. // @match *://journals.sagepub.com/*
  19. // @match *://www.scopus.com/*
  20. // @match *://scopus.com/*
  21. // @match *://sciencedirect.com/*
  22. // @match *://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);