////////START
//My main stuff
//
importScript('User:Animum/reset.js'); //Stuff to reset sandbox
importScript('User:Voice_of_All/Specialadmin/monobook.js');
importScript('User:Persian Poet Gal/vandal.js');
importScript('User:Sander Säde/quickpreview.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Revert tools');
importScript('Wikipedia:WikiProject User scripts/Scripts/RBL check');
importScript('User:Ais523/watchlistnotifier.js'); //Watchlst notify (top)
importScript('User:Betacommand/Spam.js'); //rm google and myspace
importScript('User:AzaToth/twinklebatchdelete.js');
importScript('user:js/watchlist.js')
importScript('User:Krimpet/CH2.js');
importScript('User:Ais523/adminrights.js');
importScript('User:Gracenotes/amelvand.js');
importScript('User:Animum/easyblock.js'); //[[User:Animum/easyblock.js]]
importScript('User:Animum/userrights.js');
importScript('User:Misza13/viewSource.js');
importScript('User:Animum/massdelete.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs');
importScript('User:DavidWS/afdvote2.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
importScript('User:Lupin/recent2.js');
importScript('User:Mr.Z-man/refbuttons.js');
importScript('User:Jnothman/afd_helper/script.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:S/tags.js');
importScript('User:TheDJ/Gadget-HotCat.js');
importScript('User:Quarl/util.js');
importScript('User:Quarl/wikipage.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('Wikipedia:WikiProject Deletion sorting/delsort.js');
importScript('User:Animum/urlparameters.js');
importScript('User:Voice of All/Addtabs/monobook.js');
importScript('Wikipedia:WikiProject_User_scripts/Scripts/Add_purge_to_tabs');
importScript('User:Mr.Z-man/closeAFD.js');
importScript('User:Dr pda/prosesizebytes.js');
importScript('User:Voice of All/Specialadmin/monobook.js');
importScript('User:Voice of All/Deletion/monobook.js');
importScript('User:Voice of All/History/monobook.js');
importScript('User:Voice of All/Google/monobook.js');
importScript('User:Voice of All/Backlog/monobook.js');
importScript('User:Voice of All/Addtabs/monobook.js');
importScript('User:Voice of All/Adminwarnings/monobook.js');
importScript('User:Voice of All/Sleeper/monobook.js');
importScript('User:Haza-w/cactions.js'); //[[User:Haza-w/cactions.js]]
importScript('User:Kanonkas/massblock.js');
importScript('User:Mr.Z-man/moverevert2.js');
importScript('User:Aitias/User:Steel359/protection.js') //importScript('User:Aitias/User:Steel359/^demon.js');
importScript('User:Animum/revdelete.js');
importScript('User:Ameliorate!/dykeasymode.js'); //[[User:Ameliorate!/dykeasymode.js]]
importScript('User:Rjd0060/PermissionOTRS.js');
importScript('User:Rjd0060/OTRS.js');
importScript('User:Lifebaka/closedrv.js');
mw.loader.load('https://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
importScript('User:Ale_jrb/Scripts/csdhelper.js'); //[[User:Ale_jrb/Scripts]]
showbydefault = true;
importScript('User:Mr.Z-man/patrollinks.js');
var cactions = {
itabs: false,
svars: []
};
////////END
$(function() {
addPortletLink ('p-tb', wgArticlePath.replace(/\$1/,'Special:Newpages'), 'New pages');
});
$(function() {
addPortletLink ('p-tb', wgArticlePath.replace(/\$1/,'Special:Userrights'), 'User rights');
});
// [[User:Lupin/popups.js]]
popupAdminLinks=true;
// <nowiki>If you are editing a page, click the wikify button on your tab bar to add "{{Wikify|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "Marked for wikification" as the edit summary, mark it as a minor edit, and submit.</nowiki>
function doQwikify() {
document.editform.wpTextbox1.value = '{' + '{' + 'Wikify|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = 'Marked for wikification';
document.editform.wpMinoredit.checked = true;
document.editform.submit();
}
$(function() {
if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
// wouldn't it make more sense to just check for wgCanonicalNamespace != "", or am I missing something?
return;
}
if (document.editform) {
mw.util.addPortletLink("p-cactions", "javascript:doQwikify()", "wikify", "ca-wikify", "Mark for wikification", "");
}
});
// by [[User:Raylu|raylu]]
//
// <nowiki>If you are editing a page, click the unref button on your tab bar to add "{{Unreferenced|January 2021}}" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit.
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();
}
$(function() {
if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
return;
}
if (document.editform) {
mw.util.addPortletLink("p-cactions", "javascript:doQunref()", "unref", "ca-unref", "Mark as unreferenced", "");
}
});
// by [[User:Jj137|jj137]]
//
// [[Wikipedia:Tools/Navigation popups]]
mw.loader.load('/w/load.php?modules=ext.gadget.Navigation_popups');
// [[User:Ais523/votesymbols.js]]
// Code for adding icons to !votes in AfDs, RfAs, etc.. Doesn't affect the page, just
// shows the icons when this code is installed.
// Please see [[:Image:Votesymbols.js-enhanced_SfD.png]] for copyright info on the images that are added.
function lowerNoPunct(s)
{
return s.toLowerCase().split('.').join('').split(',').join('').split(':').join('').split(';').join('').split('+').join('');
}
$(function() {
if(wgNamespaceNumber==0) return; //avoid article space, generally speaking
var vs=
"http://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/15px-Symbol_support_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Symbol_keep_vote.svg/15px-Symbol_keep_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/15px-Symbol_oppose_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_delete_vote.svg/15px-Symbol_delete_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/15px-Symbol_neutral_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Symbol_merge_vote.svg/15px-Symbol_merge_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/5/50/Symbol_move_vote.svg/15px-Symbol_move_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Symbol_redirect_vote.svg/15px-Symbol_redirect_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Symbol_opinion_vote.svg/15px-Symbol_opinion_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_comment_vote.svg/15px-Symbol_comment_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/f/f6/Symbol_unsupport_vote.svg/15px-Symbol_unsupport_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Symbol_question.svg/15px-Symbol_question.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Symbol_divide_vote.svg/15px-Symbol_divide_vote.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Symbol_wait.svg/15px-Symbol_wait.svg.png#"+
"http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/15px-Face-grin.svg.png";
var vt=vs.split("#");
var la=new Array();
la['support']=0; la['endorse']=0;
la['keep']=1;
la['oppose']=2; la['overturn']=2; la['object']=2;
la['delete']=3;
la['neutral']=4;
la['merge']=5; la['upmerge']=5;
la['move']=6; la['rename']=6; la['userfy']=6; la['transwiki']=6;
la['redirect']=7;
la['opinion']=8; la['relist']=8; la['subst']=8; la['salt']=8; la['change']=8;
// Note that icon 8 on the list is often used for debate-specific !votes
la['comment']=9; la['update']=9; la['note']=9;
la['delist']=10;
la['question']=11;
la['split']=12;
la['wait']=13;
la['bjaodn']=14;
var btc=document.body.getElementsByTagName("B");
i=btc.length;
while(i--)
{
var j,k;
j=btc[i].innerHTML.split("<").join(" ").split(">").join(" ").split("/").join(" ").split(" ");
k=0;
var x="";
while(k<j.length)
{
if(lowerNoPunct(j[k])=="don't"||lowerNoPunct(j[k])=='not'
||lowerNoPunct(j[k])=='no'||lowerNoPunct(j[k])=='without') break;
var l=la[lowerNoPunct(j[k])];
if(l!=undefined)
{
x+="<IMG SRC='"+vt[l]+"' /> "
}
k++;
}
if(x!="") btc[i].innerHTML=x+btc[i].innerHTML;
}
});
//
// [[User:Animum/reset.js]] by Animum
// To include this in your monobook, add the following line to it (minus the "//"):
// importScript('User:Animum/reset.js');
function resetSandbox() {
if(UrlParameters["sandboxreset"] == '1' && wgPageName == "Wikipedia:Sandbox" && wgAction == "edit") {
document.forms["editform"].elements["wpTextbox1"].value = "\{\{Please leave this line alone (sandbox heading)\}\}\n<!-- Hello! Feel free to try your formatting and editing skills below this line\. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. -->"; //Add the base text for the sandbox
document.forms["editform"].elements["wpSummary"].value = "[[User:Animum/reset.js|JS EDIT]]: Reset the Sandbox"; //Make a descriptive edit summary
document.forms["editform"].elements["wpWatchthis"].checked = false; //Chances are you already have the sandbox watchlisted
document.forms["editform"].elements["wpMinoredit"].checked = true; //Make it a minor edit
if(UrlParameters["indirect"] == '1') { //If you've clicked on the toolbox link
window.setTimeout(function() { document.forms["editform"].elements["wpDiff"].click(); }, 200); //Load the diff if you are resetting it per the toolbox link
var save = confirm("Save? (click \"OK\" to save; \"cancel\" to abort)"); // Do you want to make these changes?
if(save == true) {
window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
} else { location.href = "http://en.wikipedia.org/wiki/Wikipedia:Sandbox"; } // Go back two pages if you don't want to save it
} else {
window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
}
}
}
$(function () {
if(wgPageName == "Wikipedia:Sandbox") // If the page you are viewing is the sandbox
{ mw.util.addPortletLink('p-cactions', 'http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&sandboxreset=1', 'reset', 'ca-reset', "Reset the Sandbox"); }
if(wgPageName != "Wikipedia:Sandbox") // If the page you are viewing is NOT the sandbox
{ addToolboxLink("http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&sandboxreset=1&indirect=1", 'Reset the Sandbox', '', '', ''); }
});
$(resetSandbox);
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklebatchprotect.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinkledeprod.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklewarn.js');
TwinkleConfig = {
revertMaxRevisions : 50,
userTalkPageMode : 'window',
showSharedIPNotice : false,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
summaryAd : " using [[WP:TWINKLE|TW]]",
deletionSummaryAd : " using [[WP:TWINKLE|TW]]",
protectionSummaryAd : " using [[WP:TWINKLE|TW]]",
watchSpeedyPages : false,
watchProdPages : false,
openUserTalkPageOnSpeedyDelete : [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages : [ 'agf', 'norm', 'vand', 'torev' ],
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete : false,
watchWarnings : false,
markAIVReportAsMinor : true,
markSpeedyPagesAsMinor : true,
offerReasonOnNormalRevert : true,
orphanBacklinksOnSpeedyDelete : {orphan:true, exclude:['g6']}
};