From d778c4d407a48e553ef84c010300638430bb470d Mon Sep 17 00:00:00 2001 From: fastnlight0 Date: Wed, 5 Jun 2024 10:20:31 -0500 Subject: [PATCH] Allow comments on non-SO sites --- src/popover.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/popover.ts b/src/popover.ts index 8f4dc43..5e19f87 100644 --- a/src/popover.ts +++ b/src/popover.ts @@ -91,9 +91,9 @@ export class Popover { // id === 4 => Duplicate Answer && (id === 4 ? repost : !repost); - // show the red flags and general items on every site, + // show the red flags, general, and answer-related items on every site, // restrict the others to Stack Overflow - const showOnSo = ['Red flags', 'General'].includes(belongsTo) || Page.isStackOverflow; + const showOnSo = ['Red flags', 'General', 'Answer-related'].includes(belongsTo) || Page.isStackOverflow; return enabled && (isGuttenbergItem ? showGutReport : showOnSo); }) @@ -158,8 +158,8 @@ export class Popover { return config // hide delete checkbox when user can't delete vote .filter(([ text ]) => { - if (text === 'Leave comment') return Page.isStackOverflow; - else if (text === 'Delete') return this.post.canDelete; + // if (text === 'Leave comment') return Page.isStackOverflow; + if (text === 'Delete') return this.post.canDelete; return true; })