User:BrandonXLF/FindSources.js

/*** Find Sources ***/

// Add below the title of articles you view // Documentation at en:w:User:BrandonXLF/FindSources // By en:w:User:BrandonXLF

$.when(mw.loader.using('mediawiki.api'), $.ready).then(function {	if (mw.config.get('wgIsMainPage') || mw.config.get('wgNamespaceNumber') !== 0) return;

(new mw.Api).parse('', {title: mw.config.get('wgPageName')}).done(function(e) {		$('#siteSub').after(' ' + $(e).find('p').first.html.replace(/(.*?)<\/i>/g, ' $1 ') + ' ');	}); });