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

Fra og med 27.09.2022. Se den nyeste version.

// ==UserScript==
// @name         Auto add BnL Proxy into URL
// @description  Reserved for the user of Bibliothèque nationale du Luxembourg (BnL). Add ".proxy.bnl.lu" at the end of publication website URL
// @author       Bowen
// @version      0.1
// @license MIT

// @match        *://interscience.wiley.com/*
// @match        *://onlinelibrary.wiley.com/*
// @match        *://www3.interscience.wiley.com/*
// @match        *://emeraldinsight.com/*
// @match        *://ieee.org/*
// @match        *://ieeexplore.ieee.org/*
// @match        *://springerlink.com/*
// @match        *://springerlink.metapress.com/*
// @match        *://springerprotocols.com/*
// @match        *://journals.sagepub.com/*
// @match        *://www.scopus.com/*
// @match        *://scopus.com/*
// @match        *://sciencedirect.com/*
// @match        *://dl.acm.org/*

// @run-at      document-start
// @grant       none
// @namespace https://greatest.deepsurf.us/users/964008
// ==/UserScript==

var newURL = window.location.protocol + "//"
           + window.location.host.replaceAll(".", "-")
           + ".proxy.bnl.lu"
           + window.location.pathname;

window.location.replace (newURL);