User:ArielGold/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:ArielGold/monobook.css. |
importScript("User:Voice_of_All/Addtabs/monobook.js");
importScript("User:Voice_of_All/UTCclock.js");
importScript("User:Animum/count.js");
importScript('User:Tra/userwatchlist.js'); //[[User:Tra/userwatchlist.js]]
importScript('User:Tra/sidebartranslate.js'); //[[User:Tra/sidebartranslate.js]]
importScript("User:Lupin/recent2.js");
importScript('User:AzaToth/twinkle.js');
TwinkleConfig = {
revertMaxRevisions : 10,
userTalkPageMode : 'tab',
showSharedIPNotice : false,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
openAOLAnonTalkPage : false,
summaryAd : " [[WP:TWINKLE|TW]]",
deletionSummaryAd : " [[WP:TWINKLE|TW]]",
protectionSummaryAd : " [[WP:TWINKLE|TW]]",
watchSpeedyPages : [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
watchProdPages : true,
openUserTalkPageOnSpeedyDelete : [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages : [ ],
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete : false,
watchWarnings : false,
markAIVReportAsMinor : false,
markSpeedyPagesAsMinor : false,
offerReasonOnNormalRevert : true,
};
/*#### This area contains scripts only for Firefox ####*/
var detect = navigator.userAgent.toLowerCase();
var IE;
var place = detect.indexOf('msie') + 1;
if (place) IE=true;
if (!IE) {
/* Put all scripts you want disabled only in Internet Explorer in this area. */
}
importScript('User:MarkS/extraeditbuttons.js'); //[[User:MarkS/extraeditbuttons.js]]
// [[User:Henrik/afc-helper]]
importScript('User:Henrik/js/afc-helper.js');
//////////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=busy", "Busy", "pt-status-busy", "I'm busy!", "", "pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=out", "Out", "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+"}}";
switch (status) {
case 'in': status_cmt = 'Ariel is online now.'; break;
case 'busy': status_cmt = 'Ariel is busy for a bit.'; break;
case 'out': status_cmt = 'Ariel is off to sleep, Good night!'; break;
}
document.getElementById('wpSummary').value = status_cmt;
//Submit it!
document.getElementById('editform').submit();
});
//
importScript('User:Omegatron/monobook.js/addlink.js');
importScript('User:Gimmetrow/fixRefs.js');
// History tools
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Voice_of_All/History/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
//