User:DannyS712/Edit notice.js

In today's world, User:DannyS712/Edit notice.js is a topic that has captured the attention of people from all walks of life. With a significant impact on society, daily life and culture, User:DannyS712/Edit notice.js has emerged as a crucial topic of conversation today. From its influence on the way we communicate to its impact on the global economy, User:DannyS712/Edit notice.js has generated passionate debate and a range of divergent opinions. In this article, we will explore in depth the impact of User:DannyS712/Edit notice.js on our lives, examining its implications on a personal, social and global level.
// Install with:
// <code><nowiki>		{{subst:Iusc|User:DannyS712/Edit notice.js}}																		</nowiki></code>
// or with
// <code><nowiki>		importScript( 'User:DannyS712/Edit notice.js' ); // Backlink: ] 					</nowiki></code> 
//
// If forking this script, please note my contributions / give me credit
mw.loader.using( 'mediawiki.util' ).done( function() {
	if (mw.config.get('wgNamespaceNumber') != -1) {
		var page = 'Template:Editnotices/Page/' + mw.config.get('wgPageName');
		mw.util.addPortletLink ( 'p-views', 'https://en.wikipedia.org/w/index.php?title=' + page + '&redirect=no', 'Edit notice', 'ca-pageEditNotice', 'View edit notice');
		var get_EN = {
			action: 'query',
			prop: 'revisions',
			rvprop: 'ids',
			titles: page,
			format: 'json'
		};
		$.get( mw.config.get( 'wgScriptPath' ) + '/api.php', get_EN, function( data ) {
			// console.log( data );
			if (data && data.query && data.query.pages && data.query.pages){
				$('#ca-pageEditNotice').addClass('new');
			}
		} );
	}
});