Dallime mes rishikimeve të "Përdoruesi:Eagleal/monobook.js"

Jump to navigation Jump to search
{{delete|replaced by User:Eagleal/common.js}}
(updated scripts)
({{delete|replaced by User:Eagleal/common.js}})
/* {{delete|replaced by [[User:Eagleal/common.js]]}} */
/**************************************
POPUPS - TWINKLE (Patrol Enhancement)
**************************************/
//Popups
mw.loader.load('//sq.wikipedia.org/w/index.php?title=Përdoruesi:Eagleal/strings-sq.js&action=raw&ctype=text/javascript');
 
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
//importScript('en:User:Lupin/popups.js');
 
//Twinkle
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinklewarn.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinklearv.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinklespeedy.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleimage.js.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinklediff.js.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleprotect.js.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleprod.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinklexfd.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=Userser:AzaToth/salt.js&action=raw&ctype=text/javascript');
TwinkleConfig = {
revertMaxRevisions : 50,
userTalkPageMode : 'window',
showSharedIPNotice : true,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
openAOLAnonTalkPage : false,
summaryAd : " using [[:en:WP:TWINKLE|TW]]",
deletionSummaryAd : " using [[:en:WP:TWINKLE|TW]]",
protectionSummaryAd : " using [[:en:WP:TWINKLE|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 : [ 'agf', 'norm', 'vand', 'torev' ],
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete : false,
watchWarnings : true,
markAIVReportAsMinor : true,
markSpeedyPagesAsMinor : true,
offerReasonOnNormalRevert : true,
orphanBacklinksOnSpeedyDelete : {orphan:true, exclude:['g6']}
};
 
/*
// Helper tools
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js&action=raw&ctype=text/javascript');
//
 
// Admin tools
mw.loader.load('//sq.wikipedia.org/w/index.php?title=User:Eagleal/voaAdmin.js&action=raw&ctype=text/javascript');
 
//
 
// Replace txt
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Voice_of_All/replacetxt.js&action=raw&ctype=text/javascript');
//
*/
 
/* Link [redakto], e sposton afer fjalave te seksionit */
$(function() {
try {
if (!(typeof oldEditsectionLinks == 'undefined' || oldEditsectionLinks == false))
return;
var spans = document.getElementsByTagName("span");
for (var s = 0; s < spans.length; ++s) {
var span = spans[s];
if (span.className == "editsection") {
span.style.fontSize = "x-small";
span.style.fontWeight = "normal";
span.style.cssFloat = span.style.styleFloat = "none";
span.parentNode.appendChild(document.createTextNode(" "));
span.parentNode.appendChild(span);
}
}
}
catch (e) { /* something went wrong */ }
});
 
// <nowiki>
if($.wikiEditor) {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'main',
group: 'format',
tools: {
'custom-Simple sign': {
label: 'Simple sign',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/2/2a/Button_category_plus.png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '--[[User:Eagleal|eagleal]] ~~~~~',
sampleText: ''
}
}
},
'custom-Redirect': {
label: 'Redirect',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png',
action: {
type: 'encapsulate',
options: {
pre: '#REDIRECT [[',
post: ']]',
sampleText: 'Target page name'
}
}
},
'custom-Strike': {
label: 'Strike',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png',
action: {
type: 'encapsulate',
options: {
pre: '<s>',
post: '</s>',
sampleText: 'Strike-through text'
}
}
},
'custom-Superscript': {
label: 'Superscript',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png',
action: {
type: 'encapsulate',
options: {
pre: '<sup>',
post: '</sup>',
sampleText: 'Superscript text'
}
}
},
'custom-Subscript': {
label: 'Subscript',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png',
action: {
type: 'encapsulate',
options: {
pre: '<sub>',
post: '</sub>',
sampleText: 'Subscript text'
}
}
},
'custom-Small': {
label: 'Small',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/5/58/Button_small.png',
action: {
type: 'encapsulate',
options: {
pre: '<small>',
post: '</small>',
sampleText: 'Small Text'
}
}
},
'custom-Insert block of quoted text': {
label: 'Insert block of quoted text',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png',
action: {
type: 'encapsulate',
options: {
pre: '<blockquote>\n',
post: '\n</blockquote>',
sampleText: 'Block quote'
}
}
},
'custom-Insert a table': {
label: 'Insert a table',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png',
action: {
type: 'encapsulate',
options: {
pre: '{| class="wikitable" border="1"\n|',
post: '\n|}',
sampleText: '-\n! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3'
}
}
},
'custom-Insert a reference': {
label: 'Insert a reference',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png',
action: {
type: 'encapsulate',
options: {
pre: '<ref>',
post: '</ref>',
sampleText: 'Insert footnote text here'
}
}
},
'custom-per permeriresim': {
label: 'per permeriresim',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/8/88/Button_Sub.png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '{{per permiresim|{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
sampleText: ''
}
}
},
'custom-joref': {
label: 'joref',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/e/e5/Button_(S).png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '{{joref|{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
sampleText: ''
}
}
},
'custom-grise': {
label: 'grise',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/e/e4/Bouton_Vandale3.png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '{{grise|jorelevant|{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}|tjeter=}}',
sampleText: ''
}
}
},
'custom-figura': {
label: 'figura',
type: 'button',
icon: '//sq.wikipedia.org/skins-1.5/common/images/button_image.png',
action: {
type: 'encapsulate',
options: {
pre: '',
post: '{{Figura|{{subst:PAGENAME}}|~~~~~|}}',
sampleText: ''
}
}
}
}
});
}
// </nowiki>
 
/**
* Ajax sysop
* @see https://github.com/Pathoschild/Wikimedia-contrib#user-scripts
* @update-token [[File:pathoschild/ajaxsysop.js]]
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');
 
/*************
*** HotCat
*************/
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');

Menyja e lëvizjeve