5,960
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
function countVisit(x) { | function countVisit(x) { | ||
var conf = mw.config.get([ 'wgUserGroups' ]); | var conf = mw.config.get([ 'wgUserGroups' ]); | ||
var n = conf.wgUserGroups.includes( | var n = conf.wgUserGroups.includes('sysop'); | ||
if ( n === true ) { | if ( n === true ) { | ||
var a = 1; | |||
} else { | |||
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php"; | var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php"; | ||
var xhttp = new XMLHttpRequest(); | var xhttp = new XMLHttpRequest(); |