User:BiggerGraphic/vector.js

function BGChangeInterface { var api = new mw.Api; api.get( {	action: 'query',	generator: 'images',	prop: 'imageinfo',	iiprop: 'url',	iiurlwidth: '800',	titles: mw.config.get( 'wgTitle' )   } ) .done( function ( data ) {	   console.log( 'API result:', data );	    $("#firstHeading").after(JSON.stringify(data));	} ) .fail( function ( error ) {	   console.log( 'API failed :(', error ); } ); } $( document ).ready( BGChangeInterface );