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};

// 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: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:Sine/code.js',    'u:dev:PortableCSSPad/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: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/de/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:ChatHacks.js', 'u:dev:QQX/code.js', 'u:community:User:AmonFatalis/monobook.js' ] });

qtUserPageTemplate = '';

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 links to globalnav and globaltoolbar $('Recentchangestext' +  'SpecialPages' +   'DoubleRedirects' +   'WikiFeatures</a></li>' +   '<a href="/wiki/Special:CSS">CSS</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>') .insertAfter('.WikiaBarWrapper .tools-menu li:first');

$('<a href="/wiki/Special:Watchlist/raw">Watchlist</a></li>' +  '<a href="http://c.wikia.com/wiki/Special:MyPage/global.css">Global.css</a></li>' +   '<a href="http://c.wikia.com/wiki/Special:MyPage/global.js">Global.js</a></li>' +   '<a href="http://c.wikia.com/wiki/Special:MyPage/monobook.js">Zusätzliches JS</a></li>') .insertAfter('.AccountNavigation .subnav li:first'); // Adds link to discussion to wiki navigation (by Original Authority) // http://dev.wikia.com/wiki/MediaWiki:DiscussionsLink/code.js?oldid=45124

$( document ).ready(function { if (mw.config.get('skin') === 'oasis') {    $('<a class="subnav-2a" href="/d/f?sort=latest">Discussions</a></li>').appendTo('ul.subnav-2.accent.firstChild'); } }); console.log('global.js : 1');