User:Macy/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:Macy/monobook.css. |
//FastButtons 1.0
importScript('User:Macys123/FastButtons.js');
/**** quick image delete ****/
document.write('<script type="text/javascript"' +
'src="http://en.wikipedia.org/w/index.php?title=User:Howcheng/quickimgdelete.js' +
'&action=raw&ctype=text/javascript&dontcountme=s"></script>');
importScript('User:Paranomia/simplevote.js');
importScript('User:AzaToth/twinkle.js');
importScript('User:Ais523 non-admin/adminrights.js');
importScript('User:Ioeth/friendlywelcome.js');
importScript('User:Ioeth/friendlytag.js');
importScript('User:Lupin/recent2.js');
importScript('User:Voice_of_All/Addtabs/monobook.js');
importScript('User:Misza13/statusChanger.js');
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');
// Clock
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Voice_of_All/UTCclock.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('Wikipedia:WikiProject User scripts/Scripts/Compact Navigation');
TwinkleConfig = {
revertMaxRevisions : 50,
userTalkPageMode : 'window',
showSharedIPNotice : true,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
openAOLAnonTalkPage : false,
summaryAd : " ",
deletionSummaryAd : " ",
watchSpeedyPages : [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
openUserTalkPageOnSpeedyDelete : [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages : [],
watchWarnings : false,
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete : false,
markWarningsAsMinor : true,
markAIVReportAsMinor : true,
markSpeedyPagesAsMinor : true,
confirmUsernameToAIV : true
};
FriendlyConfig = {
summaryAd : " ",
topWelcomes : false,
watchWelcomes : false,
markWelcomesAsMinor : true,
insertHeadings : true,
welcomeHeading : "== Welcome ==",
insertUsername : true,
insertSignature : false,
quickWelcomeMode : "auto",
quickWelcomeTemplate : "Welcome",
maskTemplateInSummary : true,
markSharedAsMinor : true,
groupByDefault : true,
watchTaggedPages : true,
markTaggedPagesAsMinor : true
};
// CommonsHelper by Krimpet¿
function ch2I18N() {
ch2_wplanguage = "en";
ch2_chlanguage = "en";
ch2_edittitle_Prefix = "Editing Image:";
ch2_edittitle_Postfix = "";
ch2_string_SpecifyNewName = "New Name? (leave blank to keep original):";
ch2_string_UseWikiSense = "Use WikiSense to suggest categories?";
ch2_string_StartCommonsHelper = "Start CommonsHelper";
ch2_string_FinishedUploading = "Click when finished uploading";
ch2_string_Done = "Done! Review everything below to ensure it is correct, and save this page.";
ch2_string_MoveToCommons = "MC";
ch2_string_EditSummary = "[[Wikipedia:Moving images to the Commons|Moved image to the Wikimedia Commons]] using [[User:Krimpet/CommonsHelper Helper|CH²]]";
ch2_template_ncd = "subst:ncd";
ch2_templates_copy = new Array(
"Copy to Wikimedia Commons",
"Move to Wikimedia Commons",
"Move to Commons",
"Move to commons",
"To Commons",
"to Commons"
);
ch2_templates_embed = new Array(
"PD-USGov-HHS-CDC",
"PD-USGov-USDA-ARS"
);
}
document.write('<script type="text/javascript" src="'
+ 'http://commons.wikimedia.org/w/index.php?title=User:Krimpet/CH2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//
function moduloBusqueda()
{
var btSearch = '<div>';
btSearch += buttonCode('onclick="goSearch(0)" value="es" title="Spanisw Wikipedia"');
btSearch += buttonCode('onclick="goSearch(1)" value="de" title="German Wikipedia"');
btSearch += buttonCode('onclick="goSearch(2)" value="fr" title="French Wikipedia"');
btSearch += buttonCode('onclick="goSearch(3)" value="C" title="Commons"');
btSearch += buttonCode('onclick="goSearch(4)" value="D" title="Wiktionary"');
btSearch += buttonCode('onclick="goSearch(5)" value="N" title="Wikinews"');
btSearch += '</div>';
var boxSearch = document.getElementById("searchform");
if (boxSearch)
boxSearch.innerHTML += btSearch;
}
function goSearch(i)
{
urls = new Array(
"http://es.wikipedia.org/wiki/",
"http://de.wikipedia.org/wiki/",
"http://fr.wikipedia.org/wiki/",
"http://commons.wikimedia.org/wiki/",
"http://en.wiktionary.org/wiki/",
"http://en.wikinews.org/wiki/"
);
var text = document.getElementById("searchInput");
window.open(urls[i] + escape(text.value));
}
function buttonCode(strCode)
{
return ' <input type="button" class="searchButton" '+strCode+' />';
}
addOnloadHook(moduloBusqueda);
function nuevaCaja() {
var l = document.getElementById("column-one");
if (l) {
l.innerHTML = l.innerHTML
+ '<div class="portlet" id="p-nbx">'
+ ' <h5>My shorcuts</h5>'
+ ' <div class="pBody">'
+ ' <ul>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Special:MyPage/monobook.js">My monobook.js</a></li>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Special:MyPage/monobook.css">My monobook.css</a></li>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Wikipedia:VP">Village Pump</a></li>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Wikipedia:SANDBOX">Sandbox</a></li>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Wikipedia:Goings-on">Goings-on</a></li>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Wikipedia:Requests_for_comment">RfC</a></li>'
+ ' <li><a href="http://en.wikipedia.org/wiki/Wikipedia:RfA">RfA</a></li>'
+ ' </ul>'
+ ' </div>'
+ '</div> ';
}
}
addOnloadHook(nuevaCaja);
//Currently using scripts
/* Syntax highlighter */
if(document.title.indexOf(".js") == -1) // Ignore pages that end in .js
addOnloadHook(function () {
/* CSS syntax highlighting */
multicommentRE = new RegExp('(/\\*[\\s\\S]*?\\*/)', 'g');
ruleRE = new RegExp('([^\\{]+)\\{([^\\}]+)\\}', 'g');
idselectorRE = new RegExp('(#[a-zA-Z0-9\-\_]+)\\b', 'g');
classselectorRE = new RegExp('(\\.[a-zA-Z0-9\-\_]+)\\b', 'g');
pairRE = new RegExp('([a-zA-Z-]+):([^;]+);', 'g');
css = document.getElementsByTagName('pre');
for (i = 0; i < css.length; i++) {
c = css[i];
content = c.innerHTML;
content=content.replace(multicommentRE, '<span class="comment">$1</span>');
content = content.replace(ruleRE, function(text, selector, body) {
selector = selector.replace(idselectorRE, '<span class="idselector">$1</span>');
selector = selector.replace(classselectorRE, '<span class="classselector">$1</span>');
body = body.replace(pairRE, '<span class="property">$1</span>:<span class="value">$2</span>;');
return selector + '{' + body + '}';
});
c.innerHTML = content;
}
});
// [[User:Henrik/live-edit-counter]]
importScript('User:Henrik/js/live-edit-counter.js');