From a6e9e0aad0ebc3791a1d5befc5bb4a666c4e68d5 Mon Sep 17 00:00:00 2001 From: wanhose Date: Mon, 5 Apr 2021 18:09:47 +0200 Subject: [PATCH] refactor(scripts): remove content attempts temporarily --- src/scripts/content.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/scripts/content.js b/src/scripts/content.js index f9934f9..00be72f 100644 --- a/src/scripts/content.js +++ b/src/scripts/content.js @@ -1,4 +1,3 @@ -let attempts = 1; let elements = []; const fix = () => { @@ -46,13 +45,10 @@ const remove = () => { }; const observer = new MutationObserver((_, instance) => { - if (attempts <= 5) { - attempts += 1; - instance.disconnect(); - fix(); - remove(); - observe(); - } + instance.disconnect(); + fix(); + remove(); + observe(); }); (async () => {