refactor(scripts): remove content attempts temporarily
This commit is contained in:
parent
182884e47e
commit
a6e9e0aad0
@ -1,4 +1,3 @@
|
|||||||
let attempts = 1;
|
|
||||||
let elements = [];
|
let elements = [];
|
||||||
|
|
||||||
const fix = () => {
|
const fix = () => {
|
||||||
@ -46,13 +45,10 @@ const remove = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const observer = new MutationObserver((_, instance) => {
|
const observer = new MutationObserver((_, instance) => {
|
||||||
if (attempts <= 5) {
|
|
||||||
attempts += 1;
|
|
||||||
instance.disconnect();
|
instance.disconnect();
|
||||||
fix();
|
fix();
|
||||||
remove();
|
remove();
|
||||||
observe();
|
observe();
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user