User:Pcj/monaco.js

$(function { if ($("#mw-dupimages").length) { output = ""; $.getJSON("/api.php?action=query&generator=allimages&prop=duplicatefiles&gailimit=500&format=json",function (data) { if (data.query) { pages = data.query.pages; for (pageID in pages) { if (pages[pageID].title.indexOf("File::") == -1 && pages[pageID].duplicatefiles) { output += " "+pages[pageID].title+" \n"; for (x=0;xFile:"+pages[pageID].duplicatefiles[x].name+""; output += "" } } $("#mw-dupimages").html(output); } }); } });