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

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