Wikipedia:WikiProject User scripts/Guide/Ajax: Difference between revisions

Content deleted Content added
m Basic examples: Typo fixing, replaced: funtions → functions using AWB (8853)
Using module mediawiki.api: Simplification: var api = new mw.Api();\napi.get(...) ---> (new mw.Api()).get(...)
Line 42:
console.log( 'err' );
}
var api = (new mw.Api();).get( {
api.get( {
prop: 'revisions',
rvprop: 'content',