From ca62db9ee37cbc286621897bbfadd54464ac9292 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 7 Jun 2019 21:09:47 +0200 Subject: [PATCH] pleroma_cw_toggle: Try 10 times instead of 9. --- fediverse/pleroma_cw_toggle.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediverse/pleroma_cw_toggle.user.js b/fediverse/pleroma_cw_toggle.user.js index 4fa1169..05c462b 100644 --- a/fediverse/pleroma_cw_toggle.user.js +++ b/fediverse/pleroma_cw_toggle.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Pleroma CW toggle // @description Adds a button to toggle the visibility of all statuses with content warnings on status-pages and profile-pages. -// @version 2019.06.07.3 +// @version 2019.06.07.4 // @author tastytea // @copyright 2019, tastytea (https://tastytea.de/) // @license GPL-3.0-only @@ -39,7 +39,7 @@ function add_button() { ++counter; // If this is not Pleroma or we tried 10 times, disable interval. - if (counter >= 10 || document.getElementById("app") === null) + if (counter > 10 || document.getElementById("app") === null) { clearInterval(interval); return;