mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-08-09 18:12:28 +00:00
Add popup that allows modifying the config url
This commit is contained in:
@@ -20,11 +20,10 @@ function stripRedirect(URL, redirectRegex) {
|
||||
function stripRedirects() {
|
||||
var Links = document.querySelectorAll("a.postlink, a.autolinker_link");
|
||||
|
||||
browser.storage.local.get("rfd-redirects", function (redirectRegex) {
|
||||
browser.storage.local.get("redirects", function (result) {
|
||||
Links.forEach(function (Link) {
|
||||
var ReferralURL = Link.href;
|
||||
|
||||
Link.href = stripRedirect(ReferralURL, redirectRegex["rfd-redirects"]);
|
||||
Link.href = stripRedirect(ReferralURL, result["redirects"]);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user