From c98448e7c881e5e1bc0502b0441d6f07561a859c Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 19 Feb 2022 04:33:33 +0100 Subject: [PATCH] pleroma toggle: Don't disable timer --- fediverse/pleroma_cw_toggle.user.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fediverse/pleroma_cw_toggle.user.js b/fediverse/pleroma_cw_toggle.user.js index fdf0c99..afee97d 100644 --- a/fediverse/pleroma_cw_toggle.user.js +++ b/fediverse/pleroma_cw_toggle.user.js @@ -105,7 +105,7 @@ function check() { parent = root[0].parentElement; } - // if root element and a status was found, disable interval and add button. + // if root element and a status was found, add button. if (root.length !== 0) { if (!parent.getElementsByClassName("StatusContent").length > 0 @@ -114,11 +114,6 @@ function check() return; } - if (is_static) - { - clearInterval(interval); - } - for (let element of root) { // Only add button if one or more statuses have a CW.