User:MHurd (WMF)/common.js

$(document).ready ( function {	if ( wgNamespaceNumber != 0 ) return ;	var q = mw.config.get('wgWikibaseItemId') ;	if ( typeof q == 'undefined' || q == '' ) return ;	$.getJSON ( 'https://tools.wmflabs.org/autodesc/?callback=?', { q:q, lang:mw.config.get('wgUserLanguage'), mode:'short', links:'wikipedia', format:'json' }, function ( d ) { $('#siteSub').show.append ( ': '+d.result+' ['+q+'] ') }) }) ;