User:Yukisealive/rc.js

(function { mwapi = {}; mwapi.apibase = "http://en.wikipedia.org/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;