User:Navajcmer/common.js

// MediaWiki:Gadget-popups.js var popupHideDelay = 0.1;

// MediaWiki:Gadget-markblocked.js var mbTempStyle = 'opacity: 0.9; text-decoration: wavy underline'; var mbIndefStyle = 'opacity: 0.9; font-style: italic; text-decoration: wavy underline';

$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function {

var spath = mw.config.get( 'wgServer' ) + mw.config.get( 'wgScript' );

if ( mw.config.get( 'wgUserGroups' ).indexOf( 'checkuser' ) !== -1 ) { $('.mw-contributions-link-check-user-initiator').parent.hide; }	if ( mw.config.get( 'wgUserGroups' ).indexOf( 'sysop' ) !== -1 ) {

// User:Zzuuzz/blockreasons.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Zzuuzz/blockreasons.js' );

// User:Zzuuzz/deletionreasons.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Zzuuzz/deletionreasons.js' );

// User:Zzuuzz/protectionreasons.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Zzuuzz/protectionreasons.js' );

// User:Zzuuzz/spamblacklistblock.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Zzuuzz/spamblacklistblock.js' );

// User:Writ Keeper/Scripts/massRevdel.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Writ Keeper/Scripts/massRevdel.js' );

}	// User:Galobtter/scripts/adminhighlighter.js //mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Galobtter/scripts/adminhighlighter.js' );

// User:Zzuuzz/badimagelist.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Zzuuzz/badimagelist.js' );

// User:Timotheus Canens/spihelper.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Timotheus Canens/spihelper.js' );

// User:Writ Keeper/Scripts/sectionLinkShortener.js mw.loader.load( spath + '?action=raw&ctype=text/javascript&title=User:Writ Keeper/Scripts/sectionLinkShortener.js' );

// personal tools document.getElementById( 'pt-userpage' ).firstChild.innerHTML ='User' ; document.getElementById( 'pt-preferences' ).firstChild.innerHTML ='Prefs'; document.getElementById( 'pt-watchlist' ).firstChild.innerHTML ='Watch'; document.getElementById( 'pt-mycontris' ).firstChild.innerHTML ='Contribs'; document.getElementById( 'pt-logout' ).firstChild.innerHTML ='Logout'; mw.util.addPortletLink( 'p-personal', '/wiki/Special:Log/' + mw.util.wikiUrlencode( mw.config.get( 'wgUserName' ) ), 'Logs', 'pt-mylogs', 'My user logs', '', '#pt-logout' );

// navigation mw.util.addPortletLink( 'p-navigation', '/wiki/Wikipedia:Administrator intervention against vandalism#Reports', 'AIV', 'n-linkaiv', 'Administrator intervention against vandalism' ); mw.util.addPortletLink( 'p-navigation', '/wiki/Wikipedia:Requests for page protection#toc', 'RFPP', 'n-linkrfpp', 'Protection requests' ); mw.util.addPortletLink( 'p-navigation', '/wiki/Wikipedia:Usernames for administrator attention#Bot-reported', 'Usernames', 'n-linkuaa', 'Usernames for administrator attention' ); mw.util.addPortletLink( 'p-navigation', '/wiki/Category:Candidates for speedy deletion#Subcategories', 'Speedy', 'n-linkcsd', 'Candidates for speedy deletion' ); mw.util.addPortletLink( 'p-navigation', '/wiki/Category:SPI cases awaiting a CheckUser', 'CU SPI', 'n-linkcuspi', 'SPI cases awaiting a CheckUser' ); mw.util.addPortletLink( 'p-navigation', '/wiki/Category:Requests for checkuser', 'RFCU', 'n-linkrfcu', 'Requests for checkuser' ); mw.util.addPortletLink( 'p-navigation', '/wiki/Special:PendingChanges', 'Pending', 'n-linkpc', 'Pending changes' );

// special pages if ( mw.config.get( 'wgNamespaceNumber' ) === -1 ) {

// portals vary by skin var myTopTab = null; switch ( mw.config.get( 'skin' ) ) { case 'vector': myTopTab = 'p-namespaces'; break; default: myTopTab = 'p-cactions'; }

// Special page talk pages mw.util.addPortletLink( myTopTab, mw.config.get( 'wgScript' ) + '?title=Wikipedia talk:' + mw.config.get( 'wgPageName' ).split('/')[0], 'Special Talk', 'ca-specialtalk', 'Discussion about this special page (' + mw.config.get( 'wgPageName' ).split( '/' )[0] + ').' ); mw.util.addPortletLink( myTopTab, mw.config.get( 'wgScript' ) + '?title=Wikipedia talk:' + mw.config.get( 'wgPageName' ).split('/')[0] + '&action=edit&section=new', '+', 'ca-addsection', 'Start a new section on the discussion page for ' + mw.config.get( 'wgPageName' ).split( '/' )[0] + '.' );

// watchlist items if ( 'Watchlist' === mw.config.get( 'wgCanonicalSpecialPageName' ) ) { mw.util.addPortletLink( myTopTab, '/wiki/Special:Log/newusers', 'New users', 'ca-newusers', 'New user log' ); mw.util.addPortletLink( myTopTab, '/wiki/Special:AbuseFilter/history', 'Filter', 'ca-filterlog', 'Abuse filter' ); mw.util.addPortletLink( myTopTab, '/wiki/Special:Log/spamblacklist', 'SBL Log', 'ca-sbllog', 'Spam Blacklist log' ); if ( mw.config.get( 'wgUserGroups' ).indexOf( 'checkuser' ) !== -1 ) { mw.util.addPortletLink( myTopTab, '/wiki/Special:CheckUserLog', 'CU Log', 'ca-culog', 'CheckUser log' ); mw.util.addPortletLink( myTopTab, 'https://checkuser.wikimedia.org/wiki/Special:RecentChanges', 'CUWiki', 'ca-cuwiki', 'Wikimedia Checkuser Wiki' ); }			mw.util.addPortletLink( myTopTab, '/wiki/m:Special:Watchlist', 'Meta', 'ca-meta', 'Wikimedia Meta-Wiki' ); mw.util.addPortletLink( myTopTab, '/wiki/c:Special:Watchlist', 'Commons', 'ca-commons', 'Wikimedia Commons' ); }	}

} );

importScript('User:BrandonXLF/ReferenceExpander.js'); // User:BrandonXLF/ReferenceExpander.js importScript('User:Ingenuity/AntiVandal.js'); // Backlink: User:Ingenuity/AntiVandal.js importScript('User:RedWarn/.js'); // Backlink: User:RedWarn/.js importScript('User:Lourdes/Backlinks.js'); // Backlink: User:Lourdes/Backlinks.js importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: User:Qwertyytrewqqwerty/DisamAssist.js importScript('User:AzaToth/twinkle.js');