User:Ravensfire/SiteWatchScript.js

window.alert("Starting");

var jsonData; var title = "/User:Ravensfire/QuestionableSiteList.json"; $.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title='+title, function(data){	jsonData = data; }); //window.alert(jsonData);

$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title='+title, function( data ) { var items = [];  $.each( data, function( key, val ) { window.alert("Key:" + key ); items.push( "" + val + "" ); }); $( "", { "class": "my-new-list", html: items.join( "" ) }).appendTo( "body" ); });

/* $.getJSON( "https://en.wikipedia.org/wiki/User:Ravensfire/QuestionableSiteList.json", function( data ) {  var items = [];  $.each( data, function( key, val ) { window.alert("Key:" + key ); items.push( "" + val + "" ); }); $( "", { "class": "my-new-list", html: items.join( "" ) }).appendTo( "body" ); });