User:Mainframe98/global.js

// User page creation, see https://dev.wikia.com/wiki/QuickCreateUserPage // Borrowed from Yatalu // How it works: if the wiki language is listed in the array below, it will create a page with the template including the language prefix at the end. If the language isn't listed, it uses English as default templateLanguages = [ 'en', 'fy', 'nl' ]; qtUserPageTemplate = ''; qtEnableUserPageOverwrite = true; //Message Wall Creation, see dev.wikia.com/wiki/QuickCreateMessageWallGreeting qtMessageWallGreetingTemplate = ''; qtEnableMessageWallGreetingOverwrite = true; //Adding button to global navigation user dropdown menu - Source: Thread:1121340, originally from User:SuperSajuuk, here: User_blog:DaNASCAT/Technical_Update:_September_26,_2016#comm-1119391 if (mw.config.get('skin') === 'monobook') { mw.util.addPortletLink('creates', '#', 'Sandbox', 'creates'); } else { // Prevent adding duplicate links (Credits to Cblair91) if(!window.CustomButtonsLoaded) { addOnloadHook(addCustomLinks); }   var CustomButtonsLoaded = true; } function addCustomLinks { $('Sandbox').insertBefore('.wds-global-navigation__user-menu .wds-dropdown__content li:last'); } // Customizations // MarkForDeletion customization, see https://dev.wikia.com/wiki/MarkForDeletion window.MarkForDeletion = { promptedDeleteReason: "Duplicate" }; // Nuke customization, see https://dev.wikia.com/wiki/Nuke nukeDeleteReason = "Removing spam"; // LastEdited customization, see https://dev.wikia.com/wiki/LastEdited window.lastEdited = { namespaces: { include: [12, 13, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 502] } }; // PurgeButton customization, see https://dev.wikia.com/wiki/PurgeButton PurgeButtonText = 'Verversen'; // AjaxRC customization, see https://dev.wikia.com/wiki/AjaxRC window.ajaxPages = [ "Special:RecentChanges", "Special:WikiActivity" ]; // Extend usage to Special:WikiActivity window.ajaxRefresh = 300000; // Refresh every 5 minutes window.AjaxRCRefreshText = 'Automatisch verversen'; window.AjaxRCRefreshHoverText = 'Ververs deze pagina automatisch'; // AbuseLogRC Customization, see https://dev.wikia.com/wiki/AbuseLogRC abuseLogRC_interval = 300; // Sync with the refresh above abuseLogRC_entries = 5; // PageCreator customization, see https://dev.wikia.com/wiki/PageCreator var PCOptions = { namespaces: [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 502, 828, 829, 1202 ] }; // Scripts importArticles({   type: 'script',    articles: [        'u:dev:CacheCheck/code.js',        'u:dev:LastEdited/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:MarkForDeletion/code.js',        'u:dev:RevealAnonIP/usercode.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:View Source/code.js',        'u:dev:QuickToolsv2/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:Rollback/code.js',        'u:dev:Nuke/code.js',        'u:dev:QuickCreateUserPage/code.js',        'u:dev:QuickCreateMessageWallGreeting/code.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:ViewRemovedAlways/code.js',        'u:dev:QuickTitle/code.js',        'u:dev:AllPagesHideRedirect/code.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:AbuseLogRC.js',        'u:dev:DiscussionsFeed.js',        'u:dev:ContribsLink/code.js',        'u:dev:PageCreator/code2.js', 'u:dev:EditBio/code.js' ] }); //Importing from AutoLink from Wikipedia //mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lenore/autolink.js&action=raw&ctype=text/javascript'); //Debug notice //console.log("End of personal javascript reached");

$( function  {	if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Specialpages' ) {		$( '.mw-specialpages-notes ul' )			.append( ' Pagina\'s waarvan de inhoud periodiek wordt ververst. ' );	} } );