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

updated scripts
v (+ hotcat)
(updated scripts)
//<source lang=javascript>
/**************************************
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');
document.write('<script type="text/javascript" src="'
+ 'http://sq.wikipedia.org/w/index.php?title=Përdoruesi:Eagleal/strings-sq.js'
+ '&action=raw&ctype=text/javascript"></script>');
 
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
//document.write('<script type="text/javascript" src="'
// + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//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');
document.write('<script type="text/javascript" src="'
+ mw.loader.load('http://en.wikipedia.org/w/index.php?title=User:AzaToth/morebitstwinklewarn.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&dontcountme=s"></script>');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinklespeedy.js&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="'
+ mw.loader.load('http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklewarntwinkleimage.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&dontcountme=s"></script>');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleprotect.js.js&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="'
+ mw.loader.load('http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklearvtwinkleprod.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&dontcountme=s"></script>');
mw.loader.load('//en.wikipedia.org/w/index.php?title=Userser:AzaToth/salt.js&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklespeedy.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleimage.js.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklediff.js.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleprotect.js.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinkleprod.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklexfd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=Userser:AzaToth/salt.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
TwinkleConfig = {
revertMaxRevisions : 50,
/*
// Helper tools
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//
 
// Admin tools
mw.loader.load('//sq.wikipedia.org/w/index.php?title=User:Eagleal/voaAdmin.js&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="'
+ 'http://sq.wikipedia.org/w/index.php?title=User:Eagleal/voaAdmin.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
//
 
// Replace txt
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Voice_of_All/replacetxt.js&action=raw&ctype=text/javascript');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Voice_of_All/replacetxt.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//
*/
 
/* 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>
setModifySectionStyle = function()
if($.wikiEditor) {
{
$('#wpTextbox1').wikiEditor('addToToolbar', {
try {
section: 'main',
if (!(typeof oldEditsectionLinks == 'undefined' || oldEditsectionLinks == false)) return;
group: 'format',
var spans = document.getElementsByTagName("span");
tools: {
for (var s = 0; s < spans.length; ++s) {
'custom-Simple sign': {
var span = spans[s];
label: 'Simple sign',
if (span.className == "editsection") {
type: 'button',
span.style.fontSize = "x-small";
icon: '//upload.wikimedia.org/wikipedia/commons/2/2a/Button_category_plus.png',
span.style.fontWeight = "normal";
action: {
span.style.cssFloat = span.style.styleFloat = "none";
type: 'encapsulate',
span.parentNode.appendChild(document.createTextNode(" "));
options: {
span.parentNode.appendChild(span);
pre: '',
}
post: '--[[User:Eagleal|eagleal]] ~~~~~',
}
sampleText: ''
} catch (e) { /* something went wrong */ }
}
}
}
addOnloadHook(setModifySectionStyle);
},
 
'custom-Redirect': {
if (mwCustomEditButtons) {
label: 'Redirect',
mwCustomEditButtons.push({
type: 'button',
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2a/Button_category_plus.png",
icon: '//upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png',
"speedTip": "Simple sign",
action: {
"tagOpen": "",
type: 'encapsulate',
"tagClose": "--[[User:Eagleal|eagleal]] ~~~~~",
options: {
"sampleText": ""
pre: '#REDIRECT [[',
});
post: ']]',
mwCustomEditButtons.push({
sampleText: 'Target page name'
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
}
"speedTip": "Redirect",
}
"tagOpen": "#REDIRECT [[",
},
"tagClose": "]]",
'custom-Strike': {
"sampleText": "Target page name"
label: 'Strike',
});
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png',
mwCustomEditButtons.push({
action: {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
type: 'encapsulate',
"speedTip": "Strike",
options: {
"tagOpen": "<s>",
"tagClose" pre: "'</s>"',
post: '</s>',
"sampleText": "Strike-through text"
sampleText: 'Strike-through text'
});
}
}
mwCustomEditButtons.push({
},
"imageFile": "http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png",
'custom-Superscript': {
"speedTip": "Superscript",
label: 'Superscript',
"tagOpen": "<sup>",
type: 'button',
"tagClose": "</sup>",
icon: '//upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png',
"sampleText": "Superscript text"
action: {
});
type: 'encapsulate',
options: {
mwCustomEditButtons.push({
pre: '<sup>',
"imageFile": "http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png",
post: '</sup>',
"speedTip": "Subscript",
sampleText: 'Superscript text'
"tagOpen": "<sub>",
}
"tagClose": "</sub>",
}
"sampleText": "Subscript text"
},
});
'custom-Subscript': {
label: 'Subscript',
mwCustomEditButtons.push({
type: 'button',
"imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png",
icon: '//upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png',
"speedTip": "Small",
action: {
"tagOpen": "<small>",
type: 'encapsulate',
"tagClose": "</small>",
options: {
"sampleText": "Small Text"
pre: '<sub>',
});
post: '</sub>',
sampleText: 'Subscript text'
mwCustomEditButtons.push({
}
"imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png",
}
"speedTip": "Insert block of quoted text",
},
"tagOpen": "<blockquote>\n",
'custom-Small': {
"tagClose": "\n</blockquote>",
label: 'Small',
"sampleText": "Block quote"
type: 'button',
});
icon: '//upload.wikimedia.org/wikipedia/en/5/58/Button_small.png',
action: {
mwCustomEditButtons.push({
type: 'encapsulate',
"imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
options: {
"speedTip": "Insert a table",
pre: '<small>',
"tagOpen": '{| class="wikitable" border="1"\n|',
post: '</small>',
"tagClose": "\n|}",
sampleText: 'Small Text'
"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"
}
});
}
},
mwCustomEditButtons.push({
'custom-Insert block of quoted text': {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
label: 'Insert block of quoted text',
"speedTip": "Insert a reference",
type: 'button',
"tagOpen": "<ref>",
icon: '//upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png',
"tagClose": "</ref>",
action: {
"sampleText": "Insert footnote text here"
type: 'encapsulate',
});
options: {
mwCustomEditButtons.push({
pre: '<blockquote>\n',
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/88/Button_Sub.png",
post: '\n</blockquote>',
"speedTip": "per permeriresim",
sampleText: 'Block quote'
"tagOpen": "",
}
"tagClose": "{{per permiresim|{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}",
}
"sampleText": ""
},
});
'custom-Insert a table': {
mwCustomEditButtons.push({
label: 'Insert a table',
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e5/Button_(S).png",
type: 'button',
"speedTip": "joref",
icon: '//upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png',
"tagOpen": "",
action: {
"tagClose": "{{joref|{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}",
type: 'encapsulate',
"sampleText": ""
options: {
});
pre: '{| class="wikitable" border="1"\n|',
mwCustomEditButtons.push({
post: '\n|}',
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e4/Bouton_Vandale3.png",
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'
"speedTip": "grise",
}
"tagOpen": "",
}
"tagClose": "{{grise|jorelevant|{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}|tjeter=}}",
},
"sampleText": ""
'custom-Insert a reference': {
});
label: 'Insert a reference',
mwCustomEditButtons.push({
type: 'button',
"imageFile": "http://sq.wikipedia.org/skins-1.5/common/images/button_image.png",
icon: '//upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png',
"speedTip": "figura",
action: {
"tagOpen": "",
type: 'encapsulate',
"tagClose": "{{Figura|{{subst:PAGENAME}}|~~~~~|}}",
options: {
"sampleText": ""
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
*** Ajax sysop
* @update-token [[File:pathoschild/ajaxsysop.js]]
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Ajax_sysop>
*/
*************/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Ajax_sysop.js&action=raw&ctype=text/javascript');
 
/*************
*** HotCat
*************/
importScriptURImw.loader.load('http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');
 
 
//</source>