Add chrome extension source

This commit is contained in:
Dave Gallant
2023-04-06 21:48:53 -04:00
parent 19bd601757
commit 1a9fbb061f
5 changed files with 87 additions and 2 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) => {
chrome.storage.local.set({
"rfd-redirects": res,
});
});
}
chrome.runtime.onInstalled.addListener(() => {
updateRedirects();
});
setInterval(updateRedirects, 1 * 60 * 60 * 1000);