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 = '
document.styleSheets[0].insertRule('.donate1second { color:red; }');
Line 55:
block(username).then(function (data) {
if (data.error) {
mw.notify("
} else {
mw.notify("+1s succeeded.");
}
}).fail(function () {
mw.notify("Cannot donate " + username + "'s 1 second.");
}).always(function () {
that.classList.remove('donating1second');
|