User:逆襲的天邪鬼/+1s.js: Difference between revisions

m
via Wikiplus
(via Wikiplus)
m (via Wikiplus)
 
(One intermediate revision by the same user not shown)
Line 4:
}
 
var SUMMARY = 'Test +1s by [[User:逆襲的天邪鬼/+1s.js|+1s.js]] (Test)';
 
document.styleSheets[0].insertRule('.donate1second { color:red; }');
Line 55:
block(username).then(function (data) {
if (data.error) {
mw.notify("Failed toCannot donate " + username + "'s 1 second.");
} else {
mw.notify("+1s succeeded.");
}
}).fail(function () {
mw.notify("Cannot donate " + username + "'s 1 second.");
}).always(function () {
that.classList.remove('donating1second');