User:Jj137/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:Jj137/monobook.css. |
addOnloadHook(function() {
if (wgCanonicalNamespace == "Special") {
return;
}
var item = addPortletLink('p-cactions','','links','ca-links','Quick links','',null);
var link=item.firstChild;
link.onclick = function() {
jsMsg('<form action="http://en.wikipedia.org/w/index.php">'+
'<table>' +
'<tr><th>Article<\/th><td><input name="title"><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/wiki/Special:Recentchanges">Recent changes</a><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/w/index.php?title=Category:Candidates_for_speedy_deletion&action=purge#Pages_in_category">CAT:CSD</a> | <a href="http://en.wikipedia.org/w/index.php?title=User:DumbBOT/ProdSummary&action=purge">PRODSUM</a><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/wiki/Wikipedia:Administrator_intervention_against_vandalism">WP:AIV</a> | <a href="http://en.wikipedia.org/wiki/Wikipedia:Usernames_for_administrator_attention">WP:UAA</a><\/td><\/tr>' +
'<tr><th><a href="http://tools.wikimedia.de/~agony/orphantalk/?l=en">Orphaned</a> (<a href="http://en.wikipedia.org/wiki/User:Jj137/Orphaned">page</a>)<\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/w/index.php?title=User:Jj137/monobook.js">monobook</a><\/td><\/tr>' +
'<tr><th><a href="http://en.wikipedia.org/w/index.php?title=User:Jj137/Status&action=edit">Status</a><\/td><\/tr>' +
'<tr><td colspan="2"><input type="submit"><\/td><\/tr><\/table>'+'<\/form>','links');
return false;
}
});
importScript('User:AzaToth/twinkle.js'); //[[User:AzaToth/twinkle.js]]
TwinkleConfig = {
revertMaxRevisions : 75,
userTalkPageMode : 'window',
showSharedIPNotice : true,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
summaryAd : " ([[WP:TW|TW]])",
deletionSummaryAd : " ([[WP:TW|TW]])",
protectionSummaryAd : " ([[WP:TW|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 : [ 'vand' ],
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete : false,
watchWarnings : false,
markAIVReportAsMinor : true,
markSpeedyPagesAsMinor : true,
offerReasonOnNormalRevert : true,
orphanBacklinksOnSpeedyDelete : {orphan:true, exclude:['g6']}
};
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importScript('User:ais523/editcount.js'); //[[User:ais523/editcount.js]]
importScript('User:Jj137/general.js'); //[[User:Jj137/general.js]]
importScript('User:Jj137/RFPP.js'); //[[User:Jj137/RFPP.js]]
importScript('User:Jj137/archive.js'); //[[User:Jj137/archive.js]]
importScript('User:Ais523/stubtagtab.js'); //[[User:Ais523/stubtagtab.js]]
//<pre><nowiki>
// <nowiki>If you are editing a page, click the unref button on your tab bar to add "{{Unreferenced|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit.</nowiki>
function doQunref() {
document.editform.wpTextbox1.value = '{' + '{' + 'Unreferenced|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = 'Marked as unreferenced.';
document.editform.wpMinoredit.checked = true;
document.editform.submit();
}
addOnloadHook(function() {
if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
return;
}
if (document.editform) {
addPortletLink("p-cactions", "javascript:doQunref()", "unref", "ca-unref", "Mark as unreferenced", "");
}
});
// </pre></nowiki>
// by [[User:Jj137|jj137]]
//
importScript('User:Jnothman/afd helper/script.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs');
importScript('User:Jj137/quickwarn.js');
importScript('User:Jj137/csd.js');
function online()
{
var f = document.editform, t = f.wpTextbox1;
if (t.value.length > 0)
t.value += '\n';
t.value = t.value.split('busy').join('online');
t.value = t.value.split('offline').join('online');
f.wpSummary.value = "Status: online";
document.getElementById('editform').submit();
}
function offline()
{
var f = document.editform, t = f.wpTextbox1;
if (t.value.length > 0)
t.value += '\n';
t.value = t.value.split('busy').join('offline');
t.value = t.value.split('online').join('offline');
f.wpSummary.value = "Status: offline";
document.getElementById('editform').submit();
}
function busy()
{
var f = document.editform, t = f.wpTextbox1;
if (t.value.length > 0)
t.value += '\n';
t.value = t.value.split('offline').join('busy');
t.value = t.value.split('online').join('busy');
f.wpSummary.value = "Status: busy";
document.getElementById('editform').submit();
}
function tabs()
{
// Only add for pages with the right string somewhere in the title
if (document.title.indexOf("Editing User:Jj137/Status") != -1)
{
addPortletLink('p-cactions', 'javascript:offline()', "off");
addPortletLink('p-cactions', 'javascript:online()', "on");
addPortletLink('p-cactions', 'javascript:busy()', "busy");
}
}
addOnloadHook(tabs);
//end status script
//
var detect = navigator.userAgent.toLowerCase();
var IE;
var place = detect.indexOf('msie') + 1;
if (place) IE=true;
if (!IE) {
importScript('User:TheDJ/qui.js');
// [[User:Lupin/popups.js]] - please include this line
importScript('User:Lupin/popups.js');
popupAdminLinks=true;
popupFixRedirs=true;
popupRedirAutoClick='wpSave';
popupFixDabs=true;
};