User:JJPMaster/Scripts/GreenAndGold.js: Difference between revisions

Content deleted Content added
No edit summary
last resort
Line 4:
let titles = [];
let finalTitle;
$.ajax({
(new mw.Api()).get( {
actiondataType: 'queryjsonp',
propurl: '`/w/api.php?action=query&prop=categories'&titles=${finalTitle}`,
}).done(success: function(data) { console.log(data); });
titles: finalTitle
});
}).done(function(data) { console.log(data)});
 
$(links).each(function() {