Thread:Grunny/@comment-3562424-20120412003729/@comment-3562424-20120820051518

This is the latest reply ever, but a while back (julyish) I found out how to do this properly, without any bug fixes-

/* Auto refreshing quotes for main page */ function qloadPageData { var cC = $( '#WikiaArticle' ).length ? '#WikiaArticle' : '#bodyContent'; $.getJSON(wgScriptPath+'/api.php?action=purge&titles='+ wgPageName +'&format=json', function {		$(cC).load( location.href + " " + cC + " > *", function  { $('#refreshquotelink').click(function(e) {				e.preventDefault;				$('#refreshquote').html('');				qloadPageData;			}); });	});	} addOnloadHook(qloadPageData);


 * D