User:Retireduser1111/monobook.js: Difference between revisions
Content deleted Content added
mNo edit summary |
Script pass at last |
||
Line 9: | Line 9: | ||
importScript('User:Passawuth/scripts/monobook.js'); |
importScript('User:Passawuth/scripts/monobook.js'); |
||
// ========== |
// ========== Deluxe Summary ========== |
||
/* |
|||
function doQwikiunref() { |
|||
Edit summary choices (click) |
|||
document.editform.wpTextbox1.value = "{{Unreferenced}}" + document.editform.wpTextbox1.value; |
|||
*/ |
|||
⚫ | |||
⚫ | |||
document.editform.submit(); |
|||
} |
|||
function addQwikiunref() { |
|||
addTab("javascript:doQwikiunref()", "↑unref", "ca-unref", "Click and save automatically", ""); |
|||
akeytt(); |
|||
} |
|||
//////////////////////ZONE PERSONNALISABLE////////////////////// |
|||
if (document.title.indexOf("edit ") == 0) { |
|||
var resumedeluxeTitles = new Array(); |
|||
if (window.addEventListener) window.addEventListener("load", addQwikiunref, false); |
|||
with (resumedeluxeTitles) { |
|||
else if (window.attachEvent) window.attachEvent("onload", addQwikiunref); |
|||
push("Unencyclopedic"); |
|||
} |
|||
push("- Unreferenced"); |
|||
push("- Delete"); |
|||
push("- Categorized"); |
|||
} |
|||
var resumedeluxeInputs= new Array(); |
|||
with (resumedeluxeInputs) { |
|||
push("Unencyclopedic"); |
|||
push("Unreferenced"); |
|||
push("Request for delete"); |
|||
push("Categorized"); |
|||
} |
|||
/////////////////FIN DE LA ZONE PERSONNALISABLE///////////////// |
|||
function setSummary(str) |
|||
{ |
|||
⚫ | |||
} |
|||
function addToSummary(str) |
|||
{ |
|||
var resum = document.editform.wpSummary.value; |
|||
if(resum != 0 && resum.indexOf("*/") < resum.length - 3) { |
|||
document.editform.wpSummary.value += " - "; |
|||
} |
|||
⚫ | |||
} |
|||
function DeluxeSummary() |
|||
{ |
|||
var sumLbl = document.getElementById("wpSummaryLabel"); |
|||
if(sumLbl) { |
|||
var sumInput = document.getElementById("wpSummary"); |
|||
sumInput.style.width = "95%"; |
|||
var str = "Things you've done : "; |
|||
for(var cpt = 0; cpt < resumedeluxeTitles.length; cpt ++) { |
|||
str += "<a href=\"javascript:addToSummary('" +resumedeluxeInputs[cpt] + "')\"" |
|||
+ " class=\"sumLink\" title=\"To add '" +resumedeluxeInputs[cpt] +"' in the edit summary box\">" |
|||
+ resumedeluxeTitles[cpt] |
|||
+ "</a> "; |
|||
} |
|||
sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML; |
|||
} |
|||
} |
|||
addOnloadHook(DeluxeSummary); |
|||
/* */ |
/* */ |
||
Revision as of 11:25, 28 August 2007
/* <pre><nowiki> -- DO NOT REMOVE THIS LINE */
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');
// Lupin's Anti-vandal tool
importScript("User:Lupin/recent2.js");
// Cleanup path
importScript('User:Passawuth/scripts/monobook.js');
// ========== Deluxe Summary ==========
/*
Edit summary choices (click)
*/
//////////////////////ZONE PERSONNALISABLE//////////////////////
var resumedeluxeTitles = new Array();
with (resumedeluxeTitles) {
push("Unencyclopedic");
push("- Unreferenced");
push("- Delete");
push("- Categorized");
}
var resumedeluxeInputs= new Array();
with (resumedeluxeInputs) {
push("Unencyclopedic");
push("Unreferenced");
push("Request for delete");
push("Categorized");
}
/////////////////FIN DE LA ZONE PERSONNALISABLE/////////////////
function setSummary(str)
{
document.editform.wpSummary.value = str;
}
function addToSummary(str)
{
var resum = document.editform.wpSummary.value;
if(resum != 0 && resum.indexOf("*/") < resum.length - 3) {
document.editform.wpSummary.value += " - ";
}
document.editform.wpSummary.value += str;
}
function DeluxeSummary()
{
var sumLbl = document.getElementById("wpSummaryLabel");
if(sumLbl) {
var sumInput = document.getElementById("wpSummary");
sumInput.style.width = "95%";
var str = "Things you've done : ";
for(var cpt = 0; cpt < resumedeluxeTitles.length; cpt ++) {
str += "<a href=\"javascript:addToSummary('" +resumedeluxeInputs[cpt] + "')\""
+ " class=\"sumLink\" title=\"To add '" +resumedeluxeInputs[cpt] +"' in the edit summary box\">"
+ resumedeluxeTitles[cpt]
+ "</a> ";
}
sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML;
}
}
addOnloadHook(DeluxeSummary);
/* */
/* </nowiki></pre> */