MediaWiki:Gadget-articlefeedback.js: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
// <nowiki>
// <nowiki>if (mw.config.get('wgNamespaceNumber') === 0 && mw.config.get('wgAction') === 'view' && mw.config.get('wgArticleId') > 0) { mw.loader.load( 'ext.gadget.articlefeedback-core' );}if (mw.config.get('wgUserGroups').includes('autoconfirmed') && $('.gloop-feedback-wrapper').length > 0) { mw.loader.load( 'ext.gadget.articlefeedback-tools' );}// </nowiki>
if (mw.config.get('wgNamespaceNumber') === 0 && mw.config.get('wgAction') === 'view' && mw.config.get('wgArticleId') > 0) {
mw.loader.load( 'ext.gadget.articlefeedback-core' );
}

if (mw.config.get('wgUserGroups').includes('autoconfirmed') && $('.gloop-feedback-wrapper').length > 0) {
mw.loader.load( 'ext.gadget.articlefeedback-tools' );
}
// </nowiki>

Latest revision as of 17:14, 17 October 2024

// <nowiki>
if (mw.config.get('wgNamespaceNumber') === 0 && mw.config.get('wgAction') === 'view' && mw.config.get('wgArticleId') > 0) {
	mw.loader.load( 'ext.gadget.articlefeedback-core' );
}

if (mw.config.get('wgUserGroups').includes('autoconfirmed') && $('.gloop-feedback-wrapper').length > 0) {
	mw.loader.load( 'ext.gadget.articlefeedback-tools' );
}
// </nowiki>