User:Josephyr/global.js

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:JosephHawk/scripts.js&action=raw&ctype=text/javascript');

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importArticles({   type:'script',        articles:[            'u:answers:MediaWiki:Gadget-HotCat.js',            'u:coreychambers:MediaWiki:VectorSkin.js',            'u:dev:AjaxPatrol/code.js',            'u:dev:AjaxRC/code.js',            'u:dev:AjaxRename/code.js',            'u:dev:AjaxUndo/code.js',            'u:dev:AnchoredRollback/code.js',            'u:dev:ArchiveTool/code.js',            'u:dev:AutoEditDropdown/code.js',            'u:dev:BackToTopButton/code.js',            'u:dev:CacheCheck/code.js',            'u:dev:CategoryRenameAuto-update/code.js',            'u:dev:DiffAnchored/code.js',            'u:dev:DisplayClock/code.js',            'u:dev:EditcountTag/code.js',            'u:dev:HeaderLinks/code.js',            'u:dev:HideRail/code.js',            'u:dev:LastEdited/code.js',            'u:dev:ListFiles/code.js',            'u:dev:MarkForDeletion/code.js',            'u:dev:Message/code.js', 'u:dev:MiniComplete/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PageMakerPro/code.js', 'u:dev:PurgeButton/code.js', 'u:dev:QQX/code.js', 'u:dev:QuickComments/code.js', 'u:dev:QuickCreateMessageWalLGreeting/code.js', 'u:dev:QuickTools/advanced.js', 'u:dev:Quick_Management/code.js', 'u:dev:RevealAnonIP/code.js', 'u:dev:SearchGoButton/code.js', 'u:dev:SearchSuggest/code.js', 'u:dev:ShowHide/code.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:Tools/Quick_User_Switch/code.js', 'u:dev:UserRightsRecord/code.js', 'u:dev:ViewRemoved/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:WallGreetingButton/code.js', 'u:wikimarks:Client.js', ] }); var qtEnableMessageWallGreetingOverwrite = true; var qtMessageWallGreetingTemplate = ''; $(function { $('Sandbawx').insertBefore('.AccountNavigation .subnav li:first'); $('Sysops').insertBefore('.AccountNavigation .subnav li:first'); $('Leaderboard').insertBefore('.AccountNavigation .subnav li:first'); $('Contribs').insertBefore('.AccountNavigation .subnav li:first'); $('<a href="http://community.wikia.com/wiki/User:JosephHawk/global.js">Global.js</a></li>').insertBefore('.AccountNavigation .subnav li:first'); $('<a href="http://community.wikia.com/wiki/Template:User:JosephHawk">Userpage</a></li>').insertBefore('.AccountNavigation .subnav li:first'); $('ul.tools li:first-child').before('<a href="http://c.wikia.com/wiki/Special:RandomWiki">Random Wiki</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:Log/block">Block Log</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:Log">Logs</a></li>'); $('ul.tools li:first-child').before('<a href="/wiki/Special:RecentChanges?hideenhanced=1&hidelogs=1">Recent changes</a></li>'); $('ul.tools li:first-child').before('<a href="http://community.wikia.com/wiki/Adoption:Requests">Adoption Requests</a></li>'); $('#wpSave').val('Save changes'); $('a[data-id="move"]').html('Move'); }); if (wgAction == "edit" || wgAction == "submit") {  /***** Custom edit buttons *****/   if (mwCustomEditButtons) {            mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png",                "speedTip": "Redirect",                "tagOpen": "#redirect",                "tagClose": "",                "sampleText": "PAGE"};            mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg",                "speedTip": "Signature",                "tagOpen": "",                "tagClose": "",                "sampleText": ""};            mwCustomEditButtons[mwCustomEditButtons.length] = {                "imageFile": "http://images2.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",               "tagClose": "]]", "sampleText": "Category name"}; } } /* if ("Special:Log/chatconnect".indexOf(mw.config.get('wgPageName')) !== -1) { $('li.mw-logline-chatconnect').each(function {     var IP = $(this).text.match(/((?:\d{1,3}\.){3}\d{1,3})/)[0], //IP      text = IP + ' ' + decodeURIComponent($(this).children('a.mw-userlink,a.new mw-userlink').attr('href').split(':')[1])+'\n', //Username      IPLookup = '(<a href="http://myip.ms/info/whois/'+IP+'">lookup</a>', IPContribs = ' | <a href="/wiki/Special:Contributions/'+IP+'">contribs</a>', IPBlock = ' | <a href="/wiki/Special:Block/'+IP+'">block</a>)';     $(this).append(IPLookup).append(IPContribs).append(IPBlock);      $('#output-box').append(text);   }); $('#button-filter').click(function {      var uniqueDetails = [],      nameList = $('#output-box').val;      $.each(nameList.split(/\n/), function(i, details) { if ($.inArray(details, uniqueDetails) === -1) uniqueDetails.push(details); });         $('#output-box').val(uniqueDetails.sort.join('\n').trim);           }); }
 * Advanced chatconnect log interface
 * Filter button for all unique IPs to users in chat in a text box + IP lookup, contribs and block links
 * @author Ozuzanna