Merge pull request #1 from doppeldeveloper/patch-1

update to allow for phone number variations
This commit is contained in:
Glorfindel83 2017-12-03 00:01:20 +01:00 committed by GitHub
commit a45f0e05bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

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.4.2
// @version 0.4.3
// @match *://*.stackexchange.com/users/*
// @match *://*.stackoverflow.com/users/*
// @match *://*.superuser.com/users/*
@ -58,14 +58,14 @@
// Add to document
moderatorLinkElement.after(destroyLink);
};
};
// Check for keywords in spammers' profiles
$.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);
}
});
});
// Check for (deleted) questions and answers
var questionsPanel = $('#user-panel-questions');
@ -84,5 +84,5 @@
return;
// Create Destroy link immediately
createDestroyLink(userID);
createDestroyLink(userID);
}) ();