Destroy Spammer v0.6, another update to the moderator tools broke the script

This commit is contained in:
Glorfindel 2019-09-23 20:19:04 +02:00
parent 6700c374e4
commit 4c72e74d78

View file

@ -3,7 +3,7 @@
// @namespace https://github.com/Glorfindel83/
// @description Adds a 'Destroy spammer' link for moderator on user profiles with only deleted posts.
// @author Glorfindel
// @version 0.5
// @version 0.6
// @match *://*.stackexchange.com/users/*
// @match *://*.stackoverflow.com/users/*
// @match *://stackoverflow.com/users/*
@ -24,7 +24,7 @@
var userNameIsSuspicious = typeof userName !== 'undefined' && userName.toLowerCase().contains("insur");
// Find 'Mod' dialog link
var moderatorLinkElement = $('a.js-user-moderator-link[data-user-id=' + userID + ']');
var moderatorLinkElement = $('a[data-se-mod-button-id=' + userID + ']');
if (moderatorLinkElement.length == 0) // Current user is not a moderator, or wrong tab - no action possible
return;
var destroySpammerLinkAdded = false;