feat(content): add support for optanon dialogs and fix quantcast performance
This commit is contained in:
parent
da6b23a01e
commit
77a5b33a6f
@ -12,13 +12,23 @@ if (typeof chrome.app.isInstalled !== 'undefined') {
|
|||||||
|
|
||||||
// Remover
|
// Remover
|
||||||
const doMagic = () => {
|
const doMagic = () => {
|
||||||
// Quantcast
|
const notRemovableElements = Array.from([
|
||||||
const notRemovableElements = Array.from(document.getElementsByClassName("qc-cmp-ui-showing"));
|
// Quantcast
|
||||||
|
...document.getElementsByClassName("qc-cmp-ui-showing"),
|
||||||
|
]);
|
||||||
|
|
||||||
|
const removableElements = Array.from([
|
||||||
|
// Quantcast
|
||||||
|
...document.getElementsByClassName("qc-cmp-ui-container"),
|
||||||
|
// Optanon
|
||||||
|
...document.getElementsByClassName("optanon-alert-box-wrapper"),
|
||||||
|
]);
|
||||||
|
|
||||||
notRemovableElements.forEach(element => {
|
notRemovableElements.forEach(element => {
|
||||||
|
// Quantcast
|
||||||
element.classList.remove("qc-cmp-ui-showing");
|
element.classList.remove("qc-cmp-ui-showing");
|
||||||
});
|
});
|
||||||
|
|
||||||
const removableElements = Array.from(document.getElementsByClassName("qc-cmp-ui-container"));
|
|
||||||
removableElements.forEach(element => {
|
removableElements.forEach(element => {
|
||||||
element.remove();
|
element.remove();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user