User:Slaporte/FeedbackTab.js

In today's world, User:Slaporte/FeedbackTab.js is a topic that has captured the attention of millions of people. Whether due to its historical relevance, its impact on society or its influence on popular culture, User:Slaporte/FeedbackTab.js has become a point of interest and discussion in various areas. From its origin to its evolution over time, User:Slaporte/FeedbackTab.js has given rise to countless opinions and arguments that have enriched the panorama of knowledge around this topic. In this article, we will explore different aspects related to User:Slaporte/FeedbackTab.js, delving into its importance, its implications and its projection in the future.
/**
 * Add Feedback v5 Tab
 * @source: http://en.wikipedia.orghttps://wikifreehand.com/en/User:Slaporte/FeedbackTab.js
 * @author: Stephen LaPorte
 */

$.getJSON(
	mw.util.wikiScript( 'api' ), {
		'format': 'json',
		'action': 'query',
		'list': 'articlefeedbackv5-view-ratings',
		'afpageid': mw.config.get('wgArticleId')
	}, function ( data ) {
		if(data > 0) {
			function createTab() {
				mw.util.addPortletLink( 'p-views', 'http://en.wikipedia.orghttps://wikifreehand.com/en/Special:ArticleFeedbackv5/' + mw.config.get('wgTitle'), 'Feedback');
		}
		addOnloadHook( createTab );
	}
});