User:Aksi great/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:Aksi great/monobook.css. |
// Helper tools
mw.loader.load(
'https://wiki.riteme.site/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
//
//<nowiki> Admin tools
document.write('<script type="text/javascript" src="'
+ 'http://wiki.riteme.site/w/index.php?title=User:Voice_of_All/admin/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//</nowiki>[[Category:Wikipedia administrators who use VoA script|{{PAGENAME}}]]
// CSD AutoReason
importScript('User:^demon/csd.js');
//Twinkle
importScript('User:AzaToth/twinkle.js');
TwinkleConfig = {
revertMaxRevisions : 50,
userTalkPageMode : 'tab',
showSharedIPNotice : true,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
summaryAd : "",
deletionSummaryAd : "",
protectionSummaryAd : "",
watchSpeedyPages : [],
watchProdPages : false,
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 : true,
markSpeedyPagesAsMinor : true,
offerReasonOnNormalRevert : true,
orphanBacklinksOnSpeedyDelete : {orphan:true, exclude:['g6']}
};
// {{commons ok}} tagger
function commonsOK() {
if (document.editform) {
document.editform.wpTextbox1.value += "\n{{commons ok}}";
document.editform.wpSummary.value = "{{[[Template:commons ok|commons ok]]}}";
document.editform.submit();
} else
document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&commonsOK=1";
}
function addCommonsOK(){
if (wgCanonicalNamespace == "Image")
mw.util.addPortletLink("p-cactions", "javascript:commonsOK()", "{{commons ok}}", "");
if (document.location.href.indexOf("commonsOK=1") > 0)
commonsOK();
}
$(addCommonsOK);