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

// 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: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 RC link in global nav */ $('Letzte Änderungen').appendTo('#globalNavigation'); //$('.wds-global-navigation__start-a-wiki.wds-user-is-logged-in').attr('href','/wiki/Special:RecentChanges').attr('title','Special:RecentChanges').text('Letzte Änderungen');

//Add links to globaltoolbar $('MediaWiki:Recentchangestext' +  'Watchlist' +   'Global.css' +   '<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>' +  '<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/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');

//$.insertAfter('.AccountNavigation .subnav li:first'); console.log('global.js : 1');