User:Synoman Barris/common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 5:
myUserName = mw.config.get('wgUserName'),
userName = mw.config.get('wgRelevantUserName'),
templateName = "uw-vandalismscript",
blockReason,
api;
Line 50:
templateName = 'User:'+myUserName+'/uw-spamublock';
} else {
templateName += "|sig=yes";
}
templateName = "{{subst:"+templateName+"}}";
Line 66:
blockReason = '{{User:'+myUserName+'/spamublock-message}}';
} else {
blockReason = 'BlockedTesting blocking script';
}
blockUser();
Line 92:
api.postWithToken("block", {
action: 'block',
allowusertalk: truefalse,
autoblock: true,
nocreate: true,
Line 118:
section: 'new',
sectiontitle: monthNames[d.getMonth()] + ' ' + d.getFullYear(),
summary: "You have been indefinitely blocked forbecause noam reasontesting a script",
text: "\n"+templateName,
title: "User talk:"+userName
148

edits