User:Josephyr/monobook.js

importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript'); importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript'); var changeLogoLink = function { $('#p-logo a').attr('href', '/wiki/Special:RecentChanges'); }; importArticles({   type: 'script',    articles: [        'u:answers:MediaWiki:Gadget-HotCat.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:AjaxRename/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:CategoryRenameAuto-update/code.js',        'u:dev:HeaderLinks/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MiniComplete/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:PageMakerPro/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:QQX/code.js',        'u:dev:QuickToolsv2/code.js',        'u:dev:RevealAnonIP/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:WallGreetingButton/code.js',        'u:c:User:Ozuzanna/chatconnect.js',    ] }); addOnloadHook(changeLogoLink); addPortletLink('p-navigation', 'http://community.wikia.com/wiki/Special:Log/phalanx', 'Wiki Phalanx Stats'); addPortletLink('p-navigation', '/wiki/Special:MultiDelete/', 'MultiDelete'); addPortletLink('p-navigation', '/wiki/Special:NewFiles', 'Uploads'); addPortletLink('p-navigation', '/wiki/Special:WikiActivity', 'WikiActivity'); addPortletLink('p-navigation', '/wiki/Special:Log', 'Logs'); addPortletLink('p-navigation', 'http://josephhawk.wikia.com/wiki/User:JosephHawk/pings', 'Pings'); addPortletLink('p-navigation', 'http://community.wikia.com/wiki/Category:Candidates_for_speedy_deletion', 'Deletes'); if (typeof wgWikiaChatWindowFeatures !== "undefined") { addPortletLink('p-navigation', '/wiki/Special:Chat?useskin', 'Chat'); } if ({'User': 1, 'Message_Wall': 1}[mw.config.get('wgCanonicalNamespace')]) { $('#p-cactions .pBody li:nth-child(2)').after('Contributions'); } /* Monobook changes. */ function UserLinks { document.getElementById('pt-mytalk').getElementsByTagName('a')[0].innerHTML = 'Talk'; document.getElementById('pt-preferences').getElementsByTagName('a')[0].innerHTML = 'Preferences'; document.getElementById('pt-mycontris').getElementsByTagName('a')[0].innerHTML = 'Contribs'; $('#pt-mytalk').after($('#pt-mycontris').detach); $('#pt-watchlist').remove; $('#pt-preferences').after('global.jsglobal.cssadoption<a href="http://vstf.wikia.com/wiki/" style="text-transform:lowercase;">vstf wiki</a></li><a href="http://josephhawk.wikia.com/wiki/" style="text-transform:lowercase;">test wiki</a></li>'); if (document.getElementById('ca-move')) { document.getElementById('ca-move').getElementsByTagName('a')[0].innerHTML = 'Move'; }   if (document.getElementById('wpSave')) { document.getElementById('wpSave').value = 'Save page'; } } if (skin != 'oasis') { addOnloadHook(UserLinks); } /* Skin switch buttons and JS tab. */ function ExtraTabs { $('#p-cactions .pBody ul li:nth-last-child(1)').after('<a href="/wiki/' + wgPageName + '?useskin=wikia" title="Change to Oasis">Oasis</a></li>'); } if (skin != 'oasis') { addOnloadHook(ExtraTabs); } /* Sub-menus. */ function MonobookSubmenus { var ports = $('.generated-sidebar'); $('#p-search').before(' Wiki navigation <ul></ul> '); var ul = document.getElementById('p-generated').getElementsByTagName('ul')[0]; for (var i = 0; i < ports.length; i++) { var links = ''; for (var j = 0; j < ports[i].getElementsByTagName('li').length; j++) { links += ports[i].getElementsByTagName('li')[j].outerHTML; }       ul.innerHTML += ' ' + ports[i].getElementsByTagName('h5')[0].innerHTML + ' &raquo;  <ul class="sidebar-subnav" style="position:absolute; left:138px; margin-top:-22px; z-index:99999; background-color:#fff; border:1px solid #000; padding:3px 7px 3px 17px; display:none;">' + links + '</ul></li>'; }   ports.remove; document.getElementById('p-generated').className = 'generated-sidebar portlet'; //set here to avoid class list loop } if (skin != 'oasis') { addOnloadHook(MonobookSubmenus); } function ShowMBMenu { clearTimeout(window.sidebartime); var uls = $('.sidebar-subnav'); for (var i = 0; i < uls.length; i++) { uls[i].style.display = 'none'; uls[i].parentNode.onmouseover = function(event) { window.sidebarpar = this; ShowMBMenu; }   }    window.sidebarpar.getElementsByTagName('ul')[0].style.display = 'block'; window.sidebarpar.onmouseover = function(event) { window.sidebarpar = undefined; clearTimeout(window.sidebartime); }   window.sidebarpar.onmouseout = function(event) { window.sidebarpar = this; window.sidebartime = setTimeout('HideMBMenu', 400); } } function HideMBMenu { window.sidebarpar.getElementsByTagName('ul')[0].style.display = 'none'; window.sidebarpar.onmouseover = function(event) { window.sidebarpar = this; window.sidebartime = setTimeout('ShowMBMenu', 300); }   window.sidebarpar.onmouseout = function(event) { window.sibebarpar = undefined; clearTimeout(window.sidebartime); } } function ExtraPortlets { $('#p-search').before(' Tools <ul> <a href="/wiki/Special:RecentChanges">Recent changes</a> &raquo; <ul class="sidebar-subnav" style="position:absolute; left:138px; margin-top:-22px; z-index:99999; background-color:#fff; border:1px solid #000; padding:3px 7px 3px 17px; display:none;"><a href="/wiki/Special:Log">Log</a></li><a href="/wiki/Special:NewPages">New pages</a></li><a href="/wiki/Special:NewFiles">New files</a></li></ul></li> <a href="/wiki/Special:CreatePage">Create page</a> &raquo;  <ul class="sidebar-subnav" style="position:absolute; left:138px; margin-top:-22px; z-index:99999; background-color:#fff; border:1px solid #000; padding:3px 7px 3px 17px; display:none;"><a href="/wiki/Special:Upload">Upload</a></li><a href="/wiki/Special:MultipleUpload">Multiple upload</a></li><a href="/wiki/Special:CreateBlogPage">Blog</a></li></ul></li> <a href="/wiki/Special:ListUsers">List</a> &raquo;  <ul class="sidebar-subnav" style="position:absolute; left:138px; margin-top:-22px; z-index:99999; background-color:#fff; border:1px solid #000; padding:3px 7px 3px 17px; display:none;"><a href="/wiki/Special:ListUsers/sysop">Admins</a></li><a href="/wiki/Special:ListUsers/bureaucrat">Bureaucrats</a></li><a href="/wiki/Special:ListUsers/chatmoderator">Chat mods</a></li></ul></li><li><a href="/wiki/Special:SpecialPages">Special pages</a></li><li><a href="javascript:OpenChatWindow;">Chat</a></li></ul>  '); $('#p-logo').after($('#p-search').detach); } if (skin != 'oasis') { addOnloadHook(ExtraPortlets) }

// ******************* // Custom adoption response buttons // *******************

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://img3.wikia.nocookie.net/__cb20120729015330/callofduty/images/0/02/Blocked_button.png", "speedTip": "AdoptionResponse: Block ", "tagOpen": " Hiya. It appears that you are currently blocked on another wiki, which may make you ineligible to adopt this one. You can explain the block here, [as a local block does not automatically disqualify someone from adopting, as Staff will review it. ",       "tagClose": "",        "sampleText": ""    }; }

if (wgAction == "edit" || wgAction == "submit") {

/***** Custom edit buttons *****/ if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/central/images/6/6a/Button_sup_letter.png/revision/latest?cb=20070329065456", "speedTip": "AdoptionResponse: Another Adoption", "tagOpen": " Hello! It appears that you have adopted another wiki within the previous 30 days. Unfortunately, this makes you ineligible to adopt this wiki 30 days from your last adoption has elapsed. So, just wait until 30 days passed from your last request, then you are free to make another request. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/6/65/Bottom.png/revision/latest?cb=20110102061427", "speedTip": "AdoptionResponse: Blank", "tagOpen": " ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/central/images/4/49/Button_talk.png/revision/latest?cb=20080209054415", "speedTip": "AdoptionResponse: Active Community", "tagOpen": " Hi - as of this moment, there appears to be several other contributors at this wiki. If they continue to edit, according to the adoption guidelines, it is required that the adopting user make a blog/forum post/announcement of some sort explaining their intentions to adopt on an active wiki, so other users on the wiki can give their input, and comment. It's best to make a blog or forum about your adoption rather than individual messages so there can be consensus in one place (which makes it easier for Staff). Be sure to link it when you are done, and let it run for 1 week. If there is a consensus amongst the users for you to receive the rights, then you'll be eligible to adopt. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/f/fc/Button_user_talk.png/revision/latest?cb=20090511022917", "speedTip": "AdoptionResponse: Active Community (2)", "tagOpen": " Hey. Right now, there appears a few other contributors at this wiki. If they continue to contribute, according to the adoption guidelines, it is required that the adopting user make a blog/forum post/announcement of some sort explaining their intentions to adopt on an active wiki, so other users on the wiki can give their input, and comment on the leadership change. If you have already made one, please link it, and if not, you should create one, then link it. If there is a consensus amongst the users for you to receive the rights, then you'll be eligible to adopt. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/central/images/f/fd/Button_blockquote.png/revision/latest?cb=20070407041237", "speedTip": "AdoptionResponse: Everything", "tagOpen": " Hello - as of now, there appears to be several other contributors at this wiki. If they continue to contributote, according to the adoption guidelines, it is required that the adopting user make a blog/forum post/announcement of some sort explaining their intentions to adopt on an active wiki, so other users on the wiki can give their input, and comment. Be sure to link it when you are done, and let it run for 1 week. If there is a consensus amongst the users for you to receive the rights, then you'll be eligible to adopt. Also, in order to adopt the wiki, you will need to edit there regularly, every day or two for at least a week. Try to edit from now on, and by the time this request is viewed by Staff, you should meet the requirement. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/central/images/c/c7/B.WARNING_1.png/revision/latest?cb=20110102062219", "speedTip": "AdoptionResponse: 1 Week", "tagOpen": " Ahoy! One of the critical requirements for adopting a wiki is 1 solid week of active editing (i.e. making new pages, fixing up articles, adding content, building the wiki). If you edit at least every day or two while you wait for this request to be processed, (which ranges from 7-10 days), you should meet that requirement. It doesn't have to be a lot of edits each day, it is just the *frequency* of the edits that Staff needs to see, to show your investment and commitment to the wiki. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/5/54/B.WARNING_2.png/revision/latest?cb=20110102062220", "speedTip": "AdoptionResponse: 1 Week (2)", "tagOpen": " Howdy - in order to adopt the wiki, you will need to edit there regularly, every day or two for 1 solid week straight and create 1 mainspace page. Try to edit from now on, and by the time this request is viewed by Staff, you should meet the requirement. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/a/ab/A.WARNING_end.png/revision/latest?cb=20110102062220", "speedTip": "AdoptionResponse: 1 Week (3)", "tagOpen": " One of the most important requirements to adopt is active editing for 1 week, and Staff needs to see you do this, otherwise the request won't be passed. The good news is that these requests take 1-2 weeks, so you have plenty of time to edit, and meet the requirement if you daily edit. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/central/images/1/13/Button_enter.png/revision/latest?cb=20070324060224", "speedTip": "AdoptionResponse: 1 Week (4)", "tagOpen": " Aloha - your contributions look good, but it seems you've just returned to editing again. Since adoptions require 1 solid week of active editing, try to consistently contribute while you wait for this request to be processed, and you should be good to go. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/central/images/1/11/Btn_toolbar_liste.png/revision/latest?cb=20070329064826", "speedTip": "AdoptionResponse: Reminder to Edit", "tagOpen": " Ahoy! You've done a splendid job with your edits thus far - kudos! Just remember to keep editing while this request is processed (which takes from 1-14 days) and you should have a successful request. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/central/images/2/29/Button_user.png/revision/latest?cb=20080208025052", "speedTip": "AdoptionResponse: Admin", "tagOpen": " Hi there. The most basic and prime rule about adopting a wiki is for none of the admins to be inactive for 60 days. But it appears that a bureaucrat has edited within that timeframe. This makes the wiki ineligible to adopt. However, you can request for a promotion from the active bureaucrat. If you choose to directly request the rights from them, you should check out this blog written by Sannse, which provides stellar advice on receiving rights. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/central/images/b/bb/Seealso.png/revision/latest?cb=20081020112924", "speedTip": "AdoptionResponse: Admin 2", "tagOpen": " Hey - the wiki isn't eligable for adoption, due to a bureaucrat editing within the past 60 days. If you want to receive rights on the wiki, you'll need to contact them. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/central/images/2/23/Button_wait.png/revision/latest?cb=20080111190106", "speedTip": "AdoptionResponse: How Long", "tagOpen": " Adoption requests are evaluated in the order received, which takes 7 to 14 days or so. Just be patient, and continue to actively edit. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100502153421/callofduty/images/8/8b/Button_Vvandal.jpg", "speedTip": "AdoptionResponse: VSTF", "tagOpen": " Hello there. If you have issues with an active spammer/vandal/user adding false information, contact the VSTF at their wiki, and they can help you deal with the troublemaker while you wait to receive the rights. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/central/images/4/4a/Button_table.png/revision/latest?cb=20070329065459", "speedTip": "AdoptionResponse: Logged Admin", "tagOpen": " Hey there. A bureaucrat, while not active on the wiki, last *logged on* just the other day. If *I* may make a suggestion, you should message them asking for the rights. You never know, you just might get them sooner. If you choose to directly request the rights from them, you should check out this blog written by Sannse, which provides stellar advice on receiving rights. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/central/images/f/f7/Button_comment1.png/revision/latest?cb=20080111185919", "speedTip": "AdoptionResponse: Returning Admin", "tagOpen": " Hullo - you'll need to leave the admin a message about you adopting, as they have returned. If they don't respond to your request, Staff will most likely give you admin rights, and will hand out bureaucratic rights after 60 days have passed since the founder's last edit. (see this adoption for a similar situation). ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/5/58/Button_small.png/revision/latest?cb=20081020113836", "speedTip": "AdoptionResponse: Admin, Not 'Crat", "tagOpen": " Hiya - the most basic and prime rule about adopting a wiki is for none of the admins to be inactive for 60 days. But there appears to be an active admin, this makes the wiki techncially ineligible to adopt. Since they do not posses the bureaucratic rights to promote other users, they can either endorse your adoption so that you'll receive the rights, or they can create their own to receive bureaucratic rights, and promote others. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/c/cb/Mexico.svg/revision/latest/scale-to-width/300?cb=20081022191619", "speedTip": "AdoptionResponse: Spanish Adoptions", "tagOpen": " Hi - Spanish adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/flags/images/a/a0/Germany.svg/revision/latest/scale-to-width/300?cb=20080610122129", "speedTip": "AdoptionResponse: German Adoptions", "tagOpen": " Hi - German adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/flags/images/9/98/France.svg/revision/latest/scale-to-width/300?cb=20100228180001", "speedTip": "AdoptionResponse: French Adoptions", "tagOpen": " French adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/flags/images/3/35/Russia.svg/revision/latest/scale-to-width/300?cb=20080426150357", "speedTip": "AdoptionResponse: Russian Adoptions", "tagOpen": " Hi - Russian adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/5/57/Italy.svg/revision/latest/scale-to-width/300?cb=20071201212612", "speedTip": "AdoptionResponse: Italian Adoptions", "tagOpen": " Hi - Italian adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/4/4d/Poland.svg/revision/latest/scale-to-width/300?cb=20081204000950", "speedTip": "AdoptionResponse: Polish Adoptions", "tagOpen": " Hi - Polish adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/flags/images/4/4a/Netherlands.svg/revision/latest/scale-to-width/300?cb=20071218203236", "speedTip": "AdoptionResponse: Dutch Adoptions", "tagOpen": " Hi - Dutch adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/flags/images/f/f9/Portugal.svg/revision/latest?cb=20081203223406", "speedTip": "AdoptionResponse: Portugal Adoptions", "tagOpen": " Hi - Portugese adoptions are handled here. ", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/flags/images/4/4a/China.svg/revision/latest/scale-to-width/300?cb=20090207152627", "speedTip": "AdoptionResponse: Chinese Adoptions", "tagOpen": " Hi - Chinese adoptions are handled here. ", "tagClose": "", "sampleText": "" };

} }

// *********************** // End custom buttons // ***********************