From 1712e8c2f9fb4bff9445bdf7aa4ab9d11c4cdad4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 12 Jun 2019 22:20:04 +0200 Subject: [PATCH] pleroma_cw_toggle: Fixed regex, everything was detected as timeline. --- 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 51b65bb..ba1f68f 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, profile-pages and timelines. -// @version 2019.06.12.2 +// @version 2019.06.12.3 // @author tastytea // @copyright 2019, tastytea (https://tastytea.de/) // @license GPL-3.0-only @@ -69,7 +69,7 @@ function add_button(parent) function check() { const re = new RegExp( - '(/main/(friends|public|all)|/users/[^/]+(/(mentions|dms)))?#?$'); + '(/main/(friends|public|all)|/users/[^/]+(/(mentions|dms))?)#?$'); const is_timeline = re.test(window.location.href); if (!is_timeline) // If we are on a timeline, don't stop checking.