Usuari Discussi??:Ula/monobook.js
De Viquip??dia
/*
Per que et funcioni, has de substituir tot el contingut del teu monobook.js per {{subst:Usuari Discussi??:Ula/monobook.js}}
. Aquesta ??s la p??gina de discussi?? del lloc on has de copiar el codi.--Iradigalesc (discussions) 21:25, 26 maig 2007 (CEST)
*/ //Please adjust the following variables according to when you want to end your break: var year = 2007; //YYYY var month = 06; //MM var day = 26; //DD var hour = 23; //HH var minute = 59; //MM var second = 59; //SS function changemonth(month) { //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; } var currentdate = new Date(); var enforced_break_end = new Date(year,changemonth(month),day,hour,minute,second); if (currentdate > enforced_break_end) { alert ("Benvingut de nou despr??s del Viquidescans!"); } else { alert ("Viquidescans obligatori fins " + enforced_break_end.toLocaleString() + " (actualment " + currentdate.toLocaleString() + "). Ad??u!"); window.location.href = ("http://"+document.location.host+"/w/index.php?title=Special:Userlogout&returnto=Main_Page"); } /* * * Obtingut amb el codi {{subst:Usuari:Pasqual/p:Viquiestris.js}} * */ document.write('<'+'script src="http://ca.wikipedia.org/w/index.php?' + 'title=Usuari:Pasqual/carregaViquiestris.js' + '&action=raw&ctype=text/javascript&dontcountme=s"' + 'type="text/javascript"><'+'/script>'); /* * */ // Traducci?? catalana del sistema de popups per [[w:ca:Usuari:SMP]] // Per a qualsevol dubte, problema o suggeriment sobre la traducci??, aneu a [[Usuari Discussi??:SMP/strings-ca.js]]. // Versi?? original anglesa: [[:en:User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://ca.wikipedia.org/w/index.php?title=User:SMP/strings-ca.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:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); /*
*/