User:Interstellar Shipping & Trading Co./XOTW/Comic/src

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>   

var items = [];

for (year = 2005; year < 2014 + 1; year++) { var weeks = (new Date(year, 1, 29).getMonth == 1) ? 53 : 52;   for (week = 1; week < weeks + 1; week++) { items.push ("WikiFur:Comic of the Week/Week " + week + ", " + year); } }

$.each (items, function (key, val) {   $.ajax({ dataType: "json", url: "http://en.wikifur.com/w/api.php?action=query&prop=revisions&redirects&titles=" + val + "&rvprop=content", data: {format: "json"}, async: false, success: function (data) { var tkey; data = data["query"]["pages"]; tkey = Object.keys(data)[0]; data = data[tkey]["revisions"]; if (typeof data === "object") { tkey = Object.keys(data)[0]; data = data[tkey]; tkey = Object.keys(data)[0]; data = data[tkey]; data = data.split ("'"); if (data[1] === undefined) { $ ("pre").append ("* " + JSON.stringify(data) + "\n"); } else { data = data[1].replace ("", "").replace ("", ""); $ ("pre").append ("* " + data + "\n"); }           } else { $ ("pre").append ("* " + val + "\n"); }       }    }); });