Destroy spammer: alert on error
This commit is contained in:
parent
e40e585c24
commit
70ff0d552a
1 changed files with 2 additions and 1 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.3
|
// @version 0.3.1
|
||||||
// @match *://*.stackexchange.com/users/*
|
// @match *://*.stackexchange.com/users/*
|
||||||
// @match *://*.stackoverflow.com/users/*
|
// @match *://*.stackoverflow.com/users/*
|
||||||
// @match *://*.superuser.com/users/*
|
// @match *://*.superuser.com/users/*
|
||||||
|
@ -52,6 +52,7 @@
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
|
window.alert('An error occurred, please try again later.');
|
||||||
console.log('Error: ' + textStatus + ' ' + errorThrown);
|
console.log('Error: ' + textStatus + ' ' + errorThrown);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue