Content deleted Content added
No edit summary |
m JJPMaster moved page User:JJPMaster/GreenAndGold.js to User:JJPMaster/Scripts/GreenAndGold.js: cleaning up my userspace |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5:
let finalTitle;
$(links).each(function() {
titles.push(decodeURI($(this).attr("href").replace(wikiSlash, '')));
});
Line 13:
action: 'query',
format: 'json',
cmtitle: "Featured articles"
},
api = new mw.Api();
api.get( params ).done( function ( data ) {
// var pages = data.query.pages,
// p;
// for ( p in pages ) {
// pages[ p ].categories.forEach( function ( cat ) {
// console.log( cat.title );
// } );
// }
console.log(data);
});
// $.get('/w/api.php?' +
|