User:Slaporte (WMF)/common.js

importScript( 'User:MarkTraceur/editPageUploadTool.js' );

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');

/** * Add Feedback v5 Tab * @source: http://en.wikipedia.org/wiki/User:Slaporte/FeedbackTab.js * @author: Stephen LaPorte */ $.getJSON(	mw.util.wikiScript( 'api' ), {		'format': 'json',		'action': 'query',		'list': 'articlefeedbackv5-view-ratings',		'afpageid': wgArticleId	}, function ( data ) {		if(data['query']['articlefeedbackv5-view-ratings']['rollup']['found']['count'] > 0) {			function createTab {				mw.util.addPortletLink( 'p-views', 'http://en.wikipedia.org/wiki/Special:ArticleFeedbackv5/' + wgTitle, 'Feedback');		}		addOnloadHook( createTab );	} });