Utente:MGA73/LicenseUpdate.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
MGA73 (discussione | contributi)
NS 2 during test
MGA73 (discussione | contributi)
|[sS]elf\|GFDL\|FAL
 
(7 versioni intermedie di uno stesso utente non sono mostrate)
Riga 21:
window.nonfreeoldversionsreview = "0.20 (2010-06-23)";
$.when(mw.loader.using( ["mediawiki.util"] ), $.ready.promise).then(function () {
if (mw.config.get("wgNamespaceNumber") === 26) { //NS 2 when testing and NS 6 when live
var actions = [
// Relicense GFDL
Riga 27:
fn: function (){
var needAppend = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = needAppend.replace(/{{([Gg][Ff][Dd][Ll]|GFDL-self|GFDL-con-disclaimer|GFDL-Utente|GFDL-Utente-con-disclaimer|[sS]elf\|GFDL\|[cC]c-by-sa-2.5|[sS]elf\|GFDL-con-disclaimer\|[cC]c-by-sa-2.5|[sS]elf\|GFDL\|FAL)}}/g, "{{$1|migration=relicense}}");
 
document.editform.wpSummary.value = "File is eligible for relicense of GFDL - see [[Progetto:Coordinamento/Migrazione licenza|here]] (using [[User:MGA73/LicenseUpdate.js]]).";
Riga 46:
// /* on cancel button, actually cancel */
// if (reason !== null) {
document.editform.wpTextbox1.value = needAppend.replace(/{{([Gg][Ff][Dd][Ll]|GFDL-self|GFDL-con-disclaimer|GFDL-Utente|GFDL-Utente-con-disclaimer|[sS]elf\|GFDL\|[cC]c-by-sa-2.5|[sS]elf\|GFDL-con-disclaimer\|[cC]c-by-sa-2.5|[sS]elf\|GFDL\|FAL)}}/g, "{{$1|migration=not-eligible}}");
 
document.editform.wpSummary.value = "File is not eligible for relicense of GFDL - see [[Progetto:Coordinamento/Migrazione licenza|here]] - uploader please consider to relicense (using [[User:MGA73/LicenseUpdate.js]]).";
document.editform.wpMinoredit.checked = true;
 
Riga 62:
fn: function (){
var needAppend = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = needAppend.replace(/{{([Gg][Ff][Dd][Ll]|GFDL-self|GFDL-con-disclaimer|GFDL-Utente|GFDL-Utente-con-disclaimer|[sS]elf\|GFDL\|[cC]c-by-sa-2.5|[sS]elf\|GFDL-con-disclaimer\|[cC]c-by-sa-2.5|[sS]elf\|GFDL\|FAL)}}/g, "{{$1|migration=review}}");
 
document.editform.wpSummary.value = "File need review for relicense of GFDL - see [[Progetto:Coordinamento/Migrazione licenza|here]] (using [[User:MGA73/LicenseUpdate.js]]).";