Add firefox extension

This commit is contained in:
Dave Gallant
2023-04-06 23:04:49 -04:00
parent 1a9fbb061f
commit 5a58a92460
5 changed files with 84 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
function updateRedirects() {
var URL =
"https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/redirects.json";
fetch(URL)
.then((res) => res.json())
.then((res) => {
browser.storage.local.set({
"rfd-redirects": res,
});
});
}
chrome.runtime.onInstalled.addListener(() => {
updateRedirects();
});
setInterval(updateRedirects, 1 * 60 * 60 * 1000);