Destroy Spammer v0.6, another update to the moderator tools broke the script
This commit is contained in:
parent
6700c374e4
commit
4c72e74d78
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
// @namespace https://github.com/Glorfindel83/
|
// @namespace https://github.com/Glorfindel83/
|
||||||
// @description Adds a 'Destroy spammer' link for moderator on user profiles with only deleted posts.
|
// @description Adds a 'Destroy spammer' link for moderator on user profiles with only deleted posts.
|
||||||
// @author Glorfindel
|
// @author Glorfindel
|
||||||
// @version 0.5
|
// @version 0.6
|
||||||
// @match *://*.stackexchange.com/users/*
|
// @match *://*.stackexchange.com/users/*
|
||||||
// @match *://*.stackoverflow.com/users/*
|
// @match *://*.stackoverflow.com/users/*
|
||||||
// @match *://stackoverflow.com/users/*
|
// @match *://stackoverflow.com/users/*
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
var userNameIsSuspicious = typeof userName !== 'undefined' && userName.toLowerCase().contains("insur");
|
var userNameIsSuspicious = typeof userName !== 'undefined' && userName.toLowerCase().contains("insur");
|
||||||
|
|
||||||
// Find 'Mod' dialog link
|
// 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
|
if (moderatorLinkElement.length == 0) // Current user is not a moderator, or wrong tab - no action possible
|
||||||
return;
|
return;
|
||||||
var destroySpammerLinkAdded = false;
|
var destroySpammerLinkAdded = false;
|
||||||
|
|
Loading…
Reference in a new issue