Initial commit

This commit is contained in:
2021-07-13 23:11:58 +02:00
commit 96063abc3a
9 changed files with 228 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
(function () {
if (window.hasRun) {
return;
}
window.hasRun = true;
browser.runtime.onMessage.addListener((message) => {
if (message.command === "switch_base_url") {
window.location =
message.baseUrl +
window.location.pathname +
window.location.search +
window.location.hash;
}
});
})();