User:GerritH/global.js

// Buttons if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", "speedTip": "Weiterleitung", "tagOpen": "#REDIRECT ", "tagClose": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png", "speedTip": "Anführungszeichen", "tagOpen": "„", "tagClose": "“" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", "speedTip": "Adoption", "tagOpen": "" }; } window.AjaxCommentDeleteConfig = {vocab:{linkText:"AjaxDelete"},fastDelete:"Clean-up"};

window.AdvancedOasisUI = {RCHeader:false,lightbox:false,activity2RC:false};

window.fdButtons = []; window.fdButtons.push({summary:'Clean-up',label:'C'},{summary:'Veralteten Default-Import gelöscht',label:'D'});

anchoredRollbackBot = true;

window.lastEdited = {avatar: false,size: false};

PRAoptions = {editSummary: 'Automatic page link update'}

window.UserTagsJS = { modules: {}, tags: { 'staff': {order: 0}, 'helper': {order: 1}, 'util': {order: 2}, 'vstf': {order: 3}, 'voldev': {order: 4}, 'vanguard': {order: 5}, 'council': {order: 6}, 'bureaucrat': {order: 7}, 'sysop': {order: 8}, 'bot': {order: 9}, 'content-moderator': {order: 10}, 'threadmoderator': {order: 11}, 'chatmoderator': {order: 12}, 'rollback': {order: 13} } };

UserTagsJS.modules.mwGroups = ['bannedfromchat', 'blocked', 'bot', 'bureaucrat', 'chatmoderator', 'content-moderator', 'council', 'helper', 'rollback', 'staff', 'sysop', 'threadmoderator', 'util', 'vanguard', 'voldev', 'vstf'];

// check http://dev.wikia.com/wiki/Special:RecentChanges for changes importArticles({   type: 'script',    articles: [    'u:kocka:AjaxCommentDelete/code.js',    'u:dev:AdvancedOasisUI/code.js',    'u:dev:FastDelete/code.js',    'u:dev:AnchoredRollback/code.js',    'u:dev:LastEdited/code.js',    'u:dev:PageRenameAuto-update/code.js',    'u:dev:AutoEditDropdown/code.js',    'u:dev:AjaxDiff/code.js',    'u:dev:ViewRemovedAlways/code.js',    'u:dev:View_Source/code.js',    'u:dev:RevealAnonIP/code.js',    'u:dev:PortableCSSPad/code.js',    'u:dev:ExpandGlobalNavDropdownsOnHover/code.js',    'u:dev:AjaxPatrol/code.js',    'u:dev:QuickToolsv2/code.js',    'u:dev:RecentChangesMultiple/code.2.js',    'u:dev:AjaxBatchDelete/code.2.js',    'u:dev:RedirectManagement/code.js',    'u:dev:AntiSoundcloud/code.js',    'u:dev:AllPagesHideRedirect/code.js',    'u:dev:Thread_Inspection/code.js',    'u:dev:CacheCheck/code.js',    'u:dev:QuickDiff/code.js',    'u:dev:QuickDelete/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:SearchSuggest/code.js', 'u:dev:FindAndReplace/code.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:PurgeButton/code.js', 'u:dev:BackToTopButton/code.js', 'u:dev:GiveChatModPrompt/code.js', 'u:dev:ListFiles/code.js', 'u:dev:FileUsageAuto-update/code.js', 'u:dev:CategoryRenameAuto-update/code.js', 'u:dev:ColoredColors/code.js', 'u:dev:GlobalChatJS.js', 'u:dev:QQX/code.js', 'u:dev:UserTags/code.js', 'u:community:Interwiki.js', 'u:community:User:AmonFatalis/monobook.js' ] });

qtUserPageTemplate = '';

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Jr_Mime/fastdeleteFix.js&action=raw&ctype=text/javascript'); importScriptURI( 'http://internal.vstf.wikia.com/index.php?title=MediaWiki:CU.js&action=raw&ctype=text/javascript' ); if (wgCanonicalSpecialPageName === 'Contributions') { importStylesheetURI('http://internal.vstf.wikia.com/index.php?title=MediaWiki:NiceButtons.css&action=raw&ctype=text/css'); var usernamej2 = $('input[name="target"]').val, usernamej = usernamej2.replace(/_/g,'+'); if(usernamej.match(/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/)) { $('#contentSub >a:first').before("" + usernamej + ""); } } // Add RC link in global nav $('RecentChanges').appendTo('#globalNavigation');

//Add links to toolbar $('Global.css' +  'Global.js' +   'Zusätzliches JS' +   '<a href="/Special:Mypage/wikia.css">Mypage/wikia.css</a></li>' +   '<a href="/Special:Mypage/chat.js">Mypage/chat.js</a></li>' +   '<a href="/wiki/MediaWiki:Recentchangestext?action=history">MediaWiki:Recentchangestext?</a></li>' +   '<a href="/wiki/Special:Watchlist/raw">Watchlist/raw</a></li>' +   '<a href="/wiki/Special:SpecialPages">SpecialPages</a></li>' +   '<a href="/wiki/Special:DoubleRedirects">DoubleRedirects</a></li>' +   '<a href="/wiki/Special:WikiFeatures">WikiFeatures</a></li>' +   '<a href="/wiki/MediaWiki:ImportJS">MediaWiki:ImportJS</a></li>' +   '<a href="/wiki/Special:JSPages">JSPages</a></li>' + '<a href="/wiki/Special:CheckUserLog">CheckUserLog</a></li>' + '<a href="/wiki/Special:Log/chatconnect">Log/chatconnect</a></li>' + '<a href="/wiki/Special:AllPages">AllPages</a></li>' + '<a href="/wiki/Special:PrefixIndex">PrefixIndex</a></li>' + '<a href="/wiki/Special:UnusedFiles">UnusedFiles</a></li>' + '<a href="/wiki/Special:ListGroupRights">ListGroupRights</a></li>' + '<a href="/wiki/Special:ListUsers">ListUsers</a></li>' + '<li><a href="/wiki/Special:ListAdmins">ListAdmins</a></li>')   .insertBefore('.WikiaBarWrapper .tools-menu li:first'); $(function { if( skin == 'oasis' ) { $('<li style="position: absolute; right: -85px; top: 3px; border:none;"><a style="background-color: #00647a; color: #fff; font-weight: bold; font-size: 13px; padding: 1px 4px; border-radius: 4px" href="/wiki/Special:CSS">CSS</a></li>').appendTo('#WikiaBarWrapper .toolbar > .tools'); } });