mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-08-07 17:12:28 +00:00
Add popup that allows modifying the config url
This commit is contained in:
@@ -1,18 +1,8 @@
|
||||
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,
|
||||
});
|
||||
});
|
||||
}
|
||||
importScripts('utils.js');
|
||||
|
||||
chrome.runtime.onInstalled.addListener(() => {
|
||||
updateRedirects();
|
||||
setDefaultConfig();
|
||||
});
|
||||
|
||||
setInterval(updateRedirects, 1 * 60 * 60 * 1000);
|
||||
|
Reference in New Issue
Block a user