update to allow for phone number variations
some spam profiles vary on their formatting of the spam number, so let's do a regex test instead. also, removed some superfluous space characters.
This commit is contained in:
parent
a79900c9dc
commit
f851e22e8b
1 changed files with 5 additions and 5 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.4.2
|
// @version 0.4.3
|
||||||
// @match *://*.stackexchange.com/users/*
|
// @match *://*.stackexchange.com/users/*
|
||||||
// @match *://*.stackoverflow.com/users/*
|
// @match *://*.stackoverflow.com/users/*
|
||||||
// @match *://*.superuser.com/users/*
|
// @match *://*.superuser.com/users/*
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
// Check for keywords in spammers' profiles
|
// Check for keywords in spammers' profiles
|
||||||
$.get(document.location.href.split('?')[0] + "?tab=profile", function (data) {
|
$.get(document.location.href.split('?')[0] + "?tab=profile", function (data) {
|
||||||
if (data.contains("1-844-909-0831")) {
|
if (data.search(/1\D844\D909\D0831/g)) {
|
||||||
createDestroyLink(userID);
|
createDestroyLink(userID);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue