User:NalexandruN/global.js

window.rwaOptions = { limit : 5000, themeName : "main", showBotEdits : true, refresh : true };

window.dev = $.extend(true, window.dev, {   i18n: {        overrides: {            Rollback: {                'summary': 'Reverted edits by $1 (talk) to last revision by $2 (script)',                'summaryShort': 'Reverted edits by $1 (talk) to last revision by $2 (script)'            }        }    } });

window.dev = window.dev || {}; window.dev.editSummaries = { select: 'MediaWiki:Custom-StandardEditSummary' };

window.TokenRefreshInterval = 360000; window.YouTubePlayerSettings = { defaultTheme: 'dark', }; window.fdButtons = []; window.fdButtons.push(   {        summary: 'Housekeeping',        label: 'HK'    },    {        summary: 'Vandalism',        label: 'VA'    },    {        summary: 'Spam',        label: 'SP'    } );

window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:WikiActivity","Special:Contributions"]; window.lastEdited = { timezone: 'EET', }; window.pageCreatorConfig = { useUTC: false, }; window.BackToTopModern = true; window.batchDeleteDelay = 1000; TBL_WIKIS = [ "gta" ]; TBL_PATROL = true; window.UserAndIPTools = { enable: { MultiLookup: true, LookupContribs: true, LookupUser: true, },	openInNewPage: true, disableDebug: true, }; window.autoPurgePages = ["User:NalexandruN/global.js", "User:NalexandruN/global.css"];

importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/usercode.js"    ] });

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AnalyticsShortcut.js',        'u:community:User:Ursuul/AnalyticsToolbar.js',        'u:dev:MediaWiki:MassRenameRevert/code.js',        'u:dev:MediaWiki:AjaxRC.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:MoreDropdown/code.js',        'u:dev:MediaWiki:DPLforumBoardCustomization.js',        'u:dev:MediaWiki:NewPagesUser.js',        'u:dev:MediaWiki:ContribsButtons.js',        'u:dev:MediaWiki:View_Source/code.js',        'u:dev:MediaWiki:CopyCodeButton.js',        'u:dev:MediaWiki:TopicBlockLog/code.js',        'u:dev:MediaWiki:AbuseLogRC.js',        'u:dev:MediaWiki:DeleteTalkpage.js',        'u:dev:MediaWiki:AjaxRename/code.js',        'u:dev:MediaWiki:AjaxRedirect/code.js',        'u:dev:MediaWiki:AjaxAbuseLog.js',        'u:dev:MediaWiki:Nuke/code.js',        'u:dev:MediaWiki:LanguageSearch.js', 'u:dev:MediaWiki:TokenRefresh.js', 'u:dev:MediaWiki:ArchiveTool/code.js', 'u:dev:MediaWiki:AllPagesHideRedirect/code.js', 'u:dev:Countdown/code.js', 'u:dev:MediaWiki:TopEditors/code.js', 'u:dev:MediaWiki:TopArticles/code.js', 'u:korniux:SpeedRaw/code.js', 'u:dev:MediaWiki:UnhideUserMasthead/code.js', 'u:dev:MediaWiki:ImprovedFooter/code.js', 'u:dev:QuickThreads/code.js', 'u:dev:MediaWiki:PortableListUsers.js', 'u:dev:MediaWiki:QuickAccessToCSSAndJS/code.js', 'u:dev:MediaWiki:BlogLink/code.js', 'u:dev:MediaWiki:QuickDelete/code.js', 'u:dev:MediaWiki:DedicatedTalkButton.js', 'u:dev:MediaWiki:EntityConvert/code.js', 'u:kocka:MediaWiki:Emoticons/code.js', 'u:dev:MediaWiki:UTCClock/code.js', 'u:dev:MediaWiki:WhatLinksHere/code.js', 'u:dev:MediaWiki:BalancedTabber.js', 'u:dev:MediaWiki:ReferencePopups/code.js', 'u:dev:MediaWiki:MastheadGender/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:MorePageActions/code.js', 'u:dev:ViewRemoved/code.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:UserInfo.js', 'u:dev:MediaWiki:UserUnusedFiles/code.js', 'u:vstf:User:Joeyaa/wham.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:AjaxEditPreview.js', 'u:dev:MediaWiki:AjaxDelete/code.js', 'u:dev:MediaWiki:AjaxBlock/code.js', 'u:dev:MediaWiki:AjaxBatchDelete.js', 'u:dev:MediaWiki:AjaxBatchUndelete.js', 'u:dev:MediaWiki:SearchEnhancements.js', 'u:dev:MediaWiki:QuickIW/code.js', 'u:dev:MediaWiki:BulkVideoUpload.js', 'u:dev:MediaWiki:DraggableYouTubePlayer/code.js', 'u:dev:MediaWiki:CatFilter/code.js', 'u:dev:MediaWiki:AjaxTemplate/code.js', 'u:dev:MediaWiki:AjaxUserRights.js', 'u:dev:MediaWiki:NavCodeLinks/code.js', 'u:dev:MediaWiki:ToggleSideBar/code.js', 'u:thegoldenpatrik1:Rollback.js', 'u:dev:MediaWiki:MarkForDeletion/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:GlobalNavButtons.js', 'u:dev:MediaWiki:CustomHeaderDropdown.js', 'u:dev:MediaWiki:FastCreate.js', 'u:dev:MediaWiki:BotManagement.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:DeleteUserpage.js', 'u:dev:MediaWiki:MinimalTestModeAlert.js', 'u:dev:MassCategorization/code.js', 'u:dev:MediaWiki:MassRename/code.js', 'u:dev:MediaWiki:DisableCode/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:WikiActivity.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:BackToTopButton/code.js', 'u:dev:MediaWiki:ListFiles/code.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:EditIntroButton/code.js', 'u:dev:MediaWiki:UserActivityTab/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:UserActivityLink.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:EditcountTab.js', 'u:dev:MediaWiki:Standard Edit Summary/code.js', 'u:dev:MediaWiki:LakeLinks.js', 'u:dev:MediaWiki:ImageMapEdit.js', 'u:dev:MediaWiki:ImageMapHighlight.js', 'u:dev:MediaWiki:ImageCategory/code.js', 'u:dev:MediaWiki:ImageCompare.js', 'u:dev:MediaWiki:AddSectionButton/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:ChromeToolbarColor.js', 'u:dev:MediaWiki:FixPhalanxBlockLinks.js', 'u:dev:MediaWiki:Translator/Translator.js', 'u:dev:MediaWiki:ShareMenu/code.js', 'u:dev:MediaWiki:FileLogs.js', 'u:dev:MediaWiki:UsernameAvailability/code.js', 'u:dev:MediaWiki:EditcountTag/code.js', 'u:dev:MediaWiki:CodeLinksDropdown.js', 'u:dev:MediaWiki:ViewNotificationsUsers.js', 'u:dev:MediaWiki:Bang.js', 'u:dev:MediaWiki:SmoothGlobalNav/code.js', 'u:dev:MediaWiki:UserAndIPTools.js', 'u:dev:MediaWiki:AdminDashboard_JS-Button/code.js', 'u:dev:MediaWiki:FloatingToc/code.js', 'u:dev:MediaWiki:ShowUserGroups.js', 'u:dev:MediaWiki:EditsShare.js', 'u:dev:MediaWiki:CodeQuickLinks/code.js', 'u:dev:MediaWiki:View_Raw/code.js', 'u:dev:MediaWiki:DisplayTimer/code.js', 'u:dev:MediaWiki:MultipleActivity.js', 'u:dev:MediaWiki:MessageBlock/code.js', 'u:dev:MediaWiki:Tooltips.js', 'u:dev:MediaWiki:SOAPReport.js', 'u:dev:MediaWiki:AntiUnicruft/code.js', 'u:dev:MediaWiki:AutoPurge/code.js', 'u:dev:MediaWiki:Discussions Delete All/code.js', 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:DisableInfoboxBuilder.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:Discussions Restore All.js', 'u:dev:MediaWiki:HideClearCache.js', 'u:dev:MediaWiki:SandboxTab/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:ProtectionIcons.js', "w:c:a:User:Jr Mime/MarkForTemplate.js", "w:c:answers:MediaWiki:Gadget-HotCat.js", "w:c:mlp:User:Jr Mime/MarkForTemplate/General.js", "w:c:answers:User:The Mol Man/Annihilate.js", 'u:dev:MediaWiki:FollowDropdown/code.js', 'u:dev:MediaWiki:MarkBlocked.js', 'u:dev:MediaWiki:AdminDashboard_block/code.js', "w:c:rs:User:Quarenon/autowelcome.js", "w:c:ru.siegenax:User:White_torch/naviscript.css", "w:c:rs:User:Suppa_chuppa/undoplus.js", 'u:dev:MediaWiki:ContribsLink/code.js', 'u:dev:MediaWiki:LinkPreview/code.js',/** (SUCKS, TEST) * 'u:dev:MediaWiki:PowerPageMaker/code.js', (BROKEN) * 'w:User:Monchoman45/ChatHacks.js', (BLOCKED) * 'u:dev:MediaWiki:CopyCodeButton.js', (BROKEN) * 'u:dev:MediaWiki:AjaxThreadUnfollow/code.js', (BROKEN) * 'u:dev:MediaWiki:AjaxEdit.js', (BROKEN) * 'u:dev:MediaWiki:PageRenameAuto-update/code.js', (BROKEN) * 'u:dev:MediaWiki:FileUsageAuto-update/code.js', (BROKEN) * 'u:dev:MediaWiki:GlobalEditcount/code.js', (BLOCKED) * 'u:dev:MediaWiki:SkinSwitch.js', (BROKEN) * 'u:dev:MediaWiki:EditConflictAlert/code.js', (BROKEN) * 'u:dev:MediaWiki:AjaxDiff/code.js', (BROKEN) * 'u:dev:MediaWiki:ImportJSPage/code.js', (BROKEN) * 'u:dev:MediaWiki:ViewDeleted/code.js', (BROKEN, MODERATOR) * 'u:dev:MediaWiki:QuickTools/code.js', (BROKEN) * 'u:dev:MediaWiki:VanguardTools.js', (BLOCKED) * 'u:dev:MediaWiki:QuickToolsv2/code.js', (BROKEN) * 'u:c:User:Cap123/ChatHacks2.js', (BLOCKED) * 'u:dev:MediaWiki:DiscussionsViewer.js', (BROKEN) * 'u:dev:MediaWiki:MultipleFileDelete/code.js', (BROKEN) * 'u:c:User:Monchoman45/ChatHacks.js', (BLOCKED) * 'u:c:User:Joeytje50/ChatPMs.js', (BLOCKED) * 'u:cod:User:Madnessfan34537/multikick.js', (BLOCKED) * 'u:dev:MediaWiki:DiscussionsRailModule/code.js', (BLOCKED) * 'u:dev:MediaWiki:UserCheck/code.js', (BROKEN) * 'u:dev:MediaWiki:PageMakerPro/code.js', (BROKEN) * importScriptPage('MediaWiki:PowerPageMaker/code.js', 'dev'); (BROKEN) * 'u:dev:MediaWiki:FastOldImageDelete/code.js', (BROKEN) * 'u:dev:MediaWiki:CategoryRenameAuto-update/code.js', (BROKEN) * 'u:dev:MediaWiki:TabKeyInserter/code.js', (BROKEN) * * import chat options * var options=document.createElement('script'); * options.setAttribute('src','https://raw.github.com/sactage/wikia-js-snippets/master/ChatOptions.js'); * options.type='text/javascript'; (BLOCKED) * * 'u:dev:MediaWiki:AutoCreateUserPages.js', (4 NOW, CONFIG) * 'u:dev:MediaWiki:RedirectMaker/code.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:DupImageList/code.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:UnifiedControlPanel.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:PatrolRC/code.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:LangSwitch.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:SearchSuggest/code.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:DiscussionsActivity.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:AdvancedOasisUI/code.js', (AWAITING-CHECK, PERSONAL) * 'u:dev:MediaWiki:CategoryQuickRemove.js', (AWAITING-CHECK) * 'u:dev:MediaWiki:ListSubpages.js', (AWAITING-CHECK, COMMON) * 'u:dev:MediaWiki:QuickLogs/code.js', (SUCKS) * 'u:dev:MediaWiki:ArticlePreview/code.js', (SUCKS) * 'u:dev:MediaWiki:QuickDiff/code.js', (SUCKS) * 'u:dev:MediaWiki:CheckImgSize.js', (SUCKS) * 'u:dev:MediaWiki:NavButtonsDropdown.js', (POINTLESS, NEEDS UPDATE) * 'u:dev:MediaWiki:PageEditInfo/code.js', (TEST) **/ 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:PageCreator/code2.js' ] })

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:RansomTime/links.js&action=raw&ctype=text/javascript'); importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Grunny/rollbacktool.js&action=raw&ctype=text/javascript'); importScriptURI('http://vstf.wikia.com/index.php?title=User:Sactage/EasyCURangeCalc.js&action=raw&ctype=text/javascript'); importScriptURI('http://community.wikia.com/index.php?title=User:Ozuzanna/chatconnect.js&action=raw&ctype=text/javascript'); importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Kopcap94/FastActions.js&action=raw&ctype=text/javascript'); importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Kopcap94/FileTools.js&action=raw&ctype=text/javascript'); importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Kopcap94/rt.js&action=raw&ctype=text/javascript'); importScriptURI('https://internal.wikia-inc.com/index.php?title=MediaWiki:ForcePreview.js&action=raw&ctype=text/javascript'); importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js&action=raw&ctype=text/javascript'); importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Pyrrha Omega/scripts.js&action=raw&ctype=text/javascript'); importScriptURI('http://community.wikia.com/index.php?title=User:Callofduty4/OldFilePages.js&action=raw&ctype=text/javascript') importScriptPage('Interwiki.js', 'community') importScriptPage('User:Wedkarski/SpongeKiller.js', 'wed'); importScriptPage( 'User:Grunny/powerdelete.js', 'internal.vstf' ); importScriptPage('User:Kopcap94/check.js','ru.siegenax'); importScriptPage('MediaWiki:Benutzerseiten.js', 'de.rain'); importScriptPage("MediaWiki:Gadget-HotCat.js", "de.disney"); importScriptPage('ChatCount/code', 'korniux'); importScriptPage("MediaWiki:OldWindowTitles.js", "de.trollocool"); importScriptPage('User:Wedkarski/blogfix.js', 'wed'); importScriptPage('User:Wedkarski/chatpack.js', 'wed'); importScriptPage('User:Wedkarski/chatpack.js', 'wedkarski'); importScriptPage('User:White_torch/naviscript.js','ru.siegenax'); importScriptPage('User:White_torch/naviscript.js/vstfext.js','ru.siegenax'); importScriptPage('User:Kopcap94/FastWarning.js','ru.siegenax'); importScriptPage('MediaWiki:ChatTags/code.js', 'shining-armor');

$.getScript('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.js'); $.getScript('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/WantedPagesBatchRedlinks.js'); $.getScript('https://raw.github.com/sactage/wikia-js-snippets/master/ChatOptions.js');

if ( !Table || !Button ) { return false; }

var Rows = Table.rows; var i;	var $row0 = $(Rows[0]);

if ( Button.firstChild.data === collapseCaption ) { for ( i = 1; i < Rows.length; i++ ) { Rows[i].style.display = 'none'; }		Button.firstChild.data = expandCaption; } else { for ( i = 1; i < Rows.length; i++ ) { Rows[i].style.display = $row0.css( 'display' ); }		Button.firstChild.data = collapseCaption; } }

function createClickHandler( tableIndex ) { return function ( e ) { e.preventDefault; collapseTable( tableIndex ); }; }

function createCollapseButtons( $content ) { var NavigationBoxes = {}; var $Tables = $content.find( 'table' ); var i;

$Tables.each( function( i, table ) {		if ( $(table).hasClass( 'collapsible' ) ) {

/* only add button and increment count if there is a header row to work with */ var HeaderRow = table.getElementsByTagName( 'tr' )[0]; if ( !HeaderRow ) { return; }			var Header = table.getElementsByTagName( 'th' )[0]; if ( !Header ) { return; }

NavigationBoxes[ tableIndex ] = table; table.setAttribute( 'id', 'collapsibleTable' + tableIndex );

var Button    = document.createElement( 'span' ); var ButtonLink = document.createElement( 'a' ); var ButtonText = document.createTextNode( collapseCaption ); // Styles are declared in MediaWiki:Common.css Button.className = 'collapseButton';

ButtonLink.style.color = Header.style.color; ButtonLink.setAttribute( 'id', 'collapseButton' + tableIndex ); ButtonLink.setAttribute( 'href', '#' ); $( ButtonLink ).on( 'click', createClickHandler( tableIndex ) ); ButtonLink.appendChild( ButtonText );

Button.appendChild( document.createTextNode( '[' ) ); Button.appendChild( ButtonLink ); Button.appendChild( document.createTextNode( ']' ) );

Header.insertBefore( Button, Header.firstChild ); tableIndex++; }	} );

for ( i = 0; i < tableIndex; i++ ) { if ( $( NavigationBoxes[i] ).hasClass( 'collapsed' ) ||			( tableIndex >= autoCollapse && $( NavigationBoxes[i] ).hasClass( 'autocollapse' ) )		) { collapseTable( i ); }	} }

mw.hook( 'wikipage.content' ).add( createCollapseButtons );