New Version 1.3.3.9

You can now manually specify in the settings which request types you would like to have all examined by ClearURLs.

#84
This commit is contained in:
Kevin Röbert
2018-07-31 19:15:48 +02:00
parent aba3393ca5
commit 49a08881ed
6 changed files with 29 additions and 3 deletions

View File

@@ -635,7 +635,7 @@ function start(items)
*/
browser.webRequest.onBeforeRequest.addListener(
promise,
{urls: ["<all_urls>"]},
{urls: ["<all_urls>"], types: getData("types")},
["blocking"]
);
});
@@ -724,6 +724,9 @@ function saveOnExit()
case "log":
json[key] = JSON.stringify(value);
break;
case "types":
json[key] = value.toString();
break;
default:
json[key] = value;
}
@@ -776,6 +779,9 @@ function setData(key, value)
case "ruleURL":
storage[key] = replaceOldGithubURLs(value);
break;
case "types":
storage[key] = value.split(',');
break;
default:
storage[key] = value;
}
@@ -833,6 +839,7 @@ function initSettings()
storage.badged_color = "ffa500";
storage.hashURL = "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/rules.hash";
storage.ruleURL = "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/data.json";
storage.types = ["main_frame", "sub_frame", "xmlhttprequest"];
}
/**