From 096aaeadb041e3e86dcc55234de3c4092061a648 Mon Sep 17 00:00:00 2001 From: marcustyphoon Date: Thu, 9 Mar 2023 14:01:11 -0800 Subject: [PATCH] Mass Unliker: Only show sidebar button on likes page (#994) --- src/scripts/mass_unliker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/mass_unliker.js b/src/scripts/mass_unliker.js index b952d6fb2..812467741 100644 --- a/src/scripts/mass_unliker.js +++ b/src/scripts/mass_unliker.js @@ -101,7 +101,8 @@ const sidebarOptions = { onclick: () => showModal(modalPromptOptions), carrot: true } - ] + ], + visibility: () => /^\/likes/.test(location.pathname) }; export const main = async function () {