Jump to content

User:Yukisealive/rc.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
(function (){
mwapi = {};
mwapi.apibase = "http://wiki.riteme.site/w/api.php";
/*
format=jsonfm
?action=query&list=recentchanges&rcprop=title|ids|sizes|flags&rcend=2010-01-13T12:22:40Z

mwapi.query = function(){
arguments[0]
this.parametersToUrl()
   for(var i=0; i<arguments.length; i++)
      sum = sum + arguments[i]
   var average = sum/arguments.length
   return average
}

mwapi.parametersToUrl = function(){
   var sum = 0
   for(var i=0; i<arguments.length; i++)
      sum = sum + arguments[i]
   var average = sum/arguments.length
   return average
}
*/
mwapi.init = function(){
alert('a');
}
mwapi.init();
})();
mwapi.init();