Utente:Grond/monobook.js

Da Wikipedia, l'enciclopedia libera.
Vai alla navigazione Vai alla ricerca

Questa pagina definisce alcuni parametri di aspetto e comportamento generale di tutte le pagine. Per personalizzarli vedi Aiuto:Stile utente.


Nota: dopo aver salvato è necessario pulire la cache del proprio browser per vedere i cambiamenti (per le pagine globali è comunque necessario attendere qualche minuto). Per Mozilla / Firefox / Safari: fare clic su Ricarica tenendo premuto il tasto delle maiuscole, oppure premere Ctrl-F5 o Ctrl-R (Command-R su Mac); per Chrome: premere Ctrl-Shift-R (Command-Shift-R su un Mac); per Konqueror: premere il pulsante Ricarica o il tasto F5; per Opera può essere necessario svuotare completamente la cache dal menù Strumenti → Preferenze; per Internet Explorer: mantenere premuto il tasto Ctrl mentre si preme il pulsante Aggiorna o premere Ctrl-F5.

//<pre>

var myLinks = new Array(['Contributors','http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=it&wikifam=.wikipedia.org&page=%TITOLO2%&since=&until=&grouped=on&order=-edit_count&max=100&order=-edit_count&format=html'],['Edit Count (Grond)','http://stable.toolserver.org/editcount/result?username=Grond&projectname=itwiki&showgraphs=2d'],['Edit Count (User)','http://stable.toolserver.org/editcount/result?username=%TITOLO2%&projectname=itwiki&showgraphs=2d'],['soxred (Grond)','http://toolserver.org/~soxred93/count/index.php?name=Grond&lang=it&wiki=wikipedia'],
['soxred (User)','http://toolserver.org/~soxred93/count/index.php?name=%TITOLO2%&lang=it&wiki=wikipedia'], ['G/unito','http://it.wikipedia.org/wiki/Utente:Grond/unito']);

<!--['EC basic (Grond)','http://toolserver.org/~interiot/cgi-bin/Tool1/wannabe_kate?username=Grond&site=it.wikipedia.org'],['EC basic (User)','http://toolserver.org/~interiot/cgi-bin/Tool1/wannabe_kate?username=%TITOLO2%&site=it.wikipedia.org']-->

//</pre>

/* <pre><nowiki> */

//Please adjust the following variables according to when you want to end your break:
var year = 2008; //YYYY
var month = 12; //MM
var day = 10; //DD
var hour = 10; //HH
var minute = 30; //MM
var second = 30; //SS 

function EnforceWikiBreak() {
    var currentdate = new Date();
    var enforced_break_end = new Date(year,changemonth(),day,hour,minute,second);
    if (currentdate > enforced_break_end) {
      // alert ("Welcome back from your enforced wikibreak!");
    } else {
      alert ("Enforced wikibreak until " + enforced_break_end.toLocaleString() + " (currently " + currentdate.toLocaleString() + "). Bye!");
      window.location.href = ("http://"+document.location.host+"/w/index.php?title=Special:Userlogout&returnto=Main_Page");
    }
}

function changemonth() {
//thing to subtract 1 from the month. you can't use month-1 because it removes the '0' from the front
if(month==01) return 00;
if(month==02) return 01;
if(month==03) return 02;
if(month==04) return 03;
if(month==05) return 04;
if(month==06) return 05;
if(month==07) return 06;
if(month==08) return 07;
if(month==09) return 08;
if(month==10) return 09;
if(month==11) return 10;
if(month==12) return 11;
return 00;
}

$(function() { EnforceWikiBreak(); });

/* </nowiki></pre> */