User:Goodshoped35110s/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Goodshoped35110s/monobook.css. |
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinkleimage.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinkleprod.js');
importScript('User:AzaToth/twinklexfd.js');
importScript('User:AzaToth/twinklesalt.js');
importScript('User:Ioeth/friendly.js');
importScript('User:Voice_of_All/Addtabs/monobook.js');
importScript('User:Misza13/viewSource.js');
importScript('User:Animum/reset.js');
importScript('User:Magnus Manske/LinkFixr.js')
//<pre><nowiki>
importScript('User:Voice of All/addtabs/monobook.js');
function addcountedit() {
if( wgNamespaceNumber == '2' || wgNamespaceNumber == '3' || ( wgNamespaceNumber == '-1' && wgTitle == 'Contributions' ) ) {
var countuser = wgTitle.split( '/' )[0];
if( wgNamespaceNumber == '-1' && wgTitle == 'Contributions' ) countuser = document.getElementById( 'contentSub' ).getElementsByTagName( 'a' )[0].getAttribute('title').split(':')[1];
addToolboxLink("http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username=" + countuser.replace('/ /i', '+') + "&site=en.wiki.x.io", "Edit count", '', '', ''); }
}
$(addcountedit);
//<pre><nowiki>
$(function() {
var editTab = document.getElementById("ca-edit");
if (!editTab) return;
var editURL = editTab.getElementsByTagName("a")[0].href;
mw.util.addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});
//</nowiki></pre>
// This script changes the "Your signature with timestamp" edit button to use a real em dash instead of two hyphens.
(function () {
var oldAddButton = addButton;
if (typeof(oldAddButton) != 'function') return;
addButton = function () {
if (arguments.length > 2)
arguments[2] = arguments[2].replace(/^--(~+)$/, '—$1');
oldAddButton.apply(this, arguments);
};
})();
//
//////////STATUS CHANGER
// Creator: Misza13
// Credits: Voyagerfan5761 for some minor improvements
$(function (){
var subpage = "/Status";
var scheme = "/StatusTemplate";
var linkprefix = mw.config.get('wgServer')+mw.config.get('wgScript')+"?title=User:";
//Add the links
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=in", "In", "pt-status-in", "I'm in!", "", "pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=busy1", "Huntin' fa vandals", "pt-status-busy", "I'm busy!", "","pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=busy2", "Interceptin' spammas", "pt-status-busy", "I'm busy!", "", "pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=busy3", "I'm offline-ish.", "pt-status-busy", "I'm busy!", "", "pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=out", "Not here.", "pt-status-out", "I'm out!", "", "pt-logout");
if (location.href.indexOf("&action=edit&newstatus=") == -1) return; //Are we here to auto-edit the status?
//Get new status
statusRegExp = /&action=edit&newstatus=(.*)/;
status = statusRegExp.exec(location.href)[1];
//Modify the form
document.getElementById('wpTextbox1').value = "{{User:"+wgUserName+scheme+"|"+status+"}}";
document.getElementById('wpSummary').value = "Status update: "+status;
//Submit it!
document.getElementById('editform').submit();
});
//[[Category:Wikipedia scripts|statusChanger]]