Skip to content

Commit 6a33bb5

Browse files
authored
chore: update dist
1 parent e18145b commit 6a33bb5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

dist/fire_extra.user.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,14 @@
546546
},
547547
// the tooltip text of !!/watch, !!/blacklist buttons
548548
getButtonsText: (action, term, done, domain, regex) => {
549-
const command = action === "watch" ? "!!/watch-" : "!!/blacklist-website-";
549+
let command = "";
550+
if (action === "watch") {
551+
command = "!!/watch-";
552+
} else if (!domain) {
553+
command = "!!/blacklist-website-";
554+
} else if (domain) {
555+
command = "!!/blacklist-keyword-";
556+
}
550557
const alreadyDone = "action already taken";
551558
const watchValue = domain ? helpers.getRegexForPathShortener(term, domain) : term.replace(/blogspot\.\w+(\.\w+)?$/, "blogspot").replace(/\./g, "\\.");
552559
const replacement = regex?.source.slice(2, -2).replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ export const helpers = {
155155

156156
if (action === 'watch') {
157157
command = '!!/watch-';
158-
} else if (action === 'blacklist' && !domain) {
158+
} else if (!domain) {
159159
command = '!!/blacklist-website-';
160-
} else if (action === 'blacklist' && domain) {
160+
} else if (domain) {
161161
// https://chat.stackexchange.com/transcript/11540?m=67365890#67365890
162162
command = '!!/blacklist-keyword-';
163163
}

0 commit comments

Comments
 (0)