Skip to content

Commit

Permalink
Mass Unliker: Only show sidebar button on likes page (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Mar 9, 2023
1 parent 610b379 commit 096aaea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/mass_unliker.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ const sidebarOptions = {
onclick: () => showModal(modalPromptOptions),
carrot: true
}
]
],
visibility: () => /^\/likes/.test(location.pathname)
};

export const main = async function () {
Expand Down

0 comments on commit 096aaea

Please sign in to comment.