מדיה ויקי:Gadget-IsBlock.js: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
שורה 1: שורה 1:
mw.loader.using( [ 'mediawiki.api' ] ).then( function() {
function isAnon(m, x){
function isAnon(m, x){
new mw.Api().get({
new mw.Api().get({
שורה 7: שורה 8:
}).done(function(ans) {
}).done(function(ans) {
logs = ans;
logs = ans;
console.log(logs);
if (logs.query.blocks.length > 0) {$('.blockRequestUserName')[x].append(" (" + m + " נחסמ/ה על ידי " + logs.query.blocks["0"].by + ")")}
if (logs.query.blocks.length > 0) {$('.blockRequestUserName')[x].append(" (" + m + " נחסמ/ה על ידי " + logs.query.blocks["0"].by + ")")}
});
});
שורה 39: שורה 39:
anon ? isAnon(list.undefined[x][0].children["0"].innerText, x) : isUser(list.undefined[x][0].children["0"].innerText, x);
anon ? isAnon(list.undefined[x][0].children["0"].innerText, x) : isUser(list.undefined[x][0].children["0"].innerText, x);
}
}
});