feat(scripts): update content script

This commit is contained in:
Juan José Vílchez 2020-12-30 21:50:55 +01:00
parent 8c391ef8f4
commit 7406b21c1b

View File

@ -22,10 +22,7 @@ if (!!window.chrome) {
const text = await fetch(filtersUrl).then((res) => res.text());
const filters = text.split("\n");
filters.forEach((item) => {
const [url, match] = item.split("##");
if (url === "" || currentUrl.includes(url)) {
filters.forEach((match) => {
const element = document.querySelector(match);
if (
@ -35,7 +32,6 @@ if (!!window.chrome) {
) {
element.remove();
}
}
});
};