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

Content deleted Content added
No edit summary
No edit summary
Line 8:
finalTitle = titles.join("|");
});
$.get('/w/api.php?' +
$.ajax({
$.param({
dataType: 'jsonp',
format: 'json',
url: `/w/api.php?action=query&prop=categories&titles=${finalTitle}`,
action: 'query',
success: function(data) { console.log(data); }
prop: 'categories',
});
titles: finalTitle,
origin: ___location.protocol + '//' + ___location.host
success: })).done(function(data) { console.log(data); });