Skip to content

Commit 63b1e52

Browse files
committed
FDSC v1.20.2
1 parent b62e5c7 commit 63b1e52

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

fdsc/fdsc.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @contributor J F
99
// @contributor Glorfindel
1010
// @attribution Brock Adams (https://github.com/BrockA)
11-
// @version 1.20.1
11+
// @version 1.20.2
1212
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.meta.js
1313
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.user.js
1414
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues

fdsc/fdsc.user.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @contributor J F
99
// @contributor Glorfindel
1010
// @attribution Brock Adams (https://github.com/BrockA)
11-
// @version 1.20.1
11+
// @version 1.20.2
1212
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.meta.js
1313
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fdsc/fdsc.user.js
1414
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
@@ -233,7 +233,7 @@
233233
*/
234234
fdsc.reportPost = function (postUrl) {
235235
if (StackExchange.options.user.isModerator) {
236-
return;
236+
return; // the post will be deleted and Smokey can't fetch it via the API
237237
}
238238
debug("entering reportPost");
239239
debug("write token:", fdsc.msWriteToken);
@@ -389,21 +389,21 @@
389389
var writeTokenButton = false;
390390

391391
if (!fdsc.msWriteToken || fdsc.msWriteToken === "null") {
392-
status += " - <a href='#' id='get-write-token'>get write token</a></div>";
392+
status += " - <a href='#' id='get-write-token'>get write token</a>";
393393
writeTokenButton = true;
394394
}
395395

396396
if (isFlagged || isAutoflagged) {
397-
status += " - <a href='#' id='autoflag-tp' " + tpButtonStyle + ">tpu-</a></div>";
397+
status += " - <a href='#' id='autoflag-tp' " + tpButtonStyle + ">tpu-</a>";
398398
}
399399

400400
if (tps === 0) {
401-
status += " - <a href='#' id='feedback-fp' " + fpButtonStyle + ">false positive?</a></div>";
402-
} else {
403-
// If someone else has already marked as tp, you should mark it as fp in chat where you can discuss with others.
404-
// Hence, do not display the false positive button
405-
status += "</div>";
401+
status += " - <a href='#' id='feedback-fp' " + fpButtonStyle + ">false positive?</a>";
406402
}
403+
// If someone else has already marked as tp, you should mark it as fp in chat where you can discuss with others.
404+
// Hence, do not display the false positive button
405+
406+
status += "</div>";
407407
$(".popup-actions").prepend(status);
408408
// On click of the false positive button
409409
registerFeedbackButton("#feedback-fp", "fp-", "Reporting as false positive");
@@ -457,10 +457,10 @@
457457
} else if (feedbackType === "tpu-" && fdsc.postFound === false) {
458458
if (!fdsc.msWriteToken || fdsc.msWriteToken === "null") {
459459
fdsc.getWriteToken(true, function () {
460-
fdsc.reportPost(fdsc.constructUrl(fdsc.container)); // container variable defined on line 299
460+
fdsc.reportPost(fdsc.constructUrl(container));
461461
});
462462
} else {
463-
fdsc.reportPost(fdsc.constructUrl(fdsc.container));
463+
fdsc.reportPost(fdsc.constructUrl(container));
464464
}
465465
}
466466
});

0 commit comments

Comments
 (0)