Jump to content

User:Leyo/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');

// Unterschied lokale Zeit zur Systemzeit (bleibt für Mitteleuropäer 0)
var timezoneshift = 0;
// aktuelle Zeit ermitteln
var jetzt = new Date();
var jetztfixed = jetzt.getTime();
jetztfixed += (timezoneshift * 3600 * 1000);
jetzt.setTime(jetztfixed);
// fill date variables
var Monate = new Array("", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var Jahr = jetzt.getYear();
if (Jahr < 999)  Jahr += 1900;
var Monat = jetzt.getMonth() + 1;
var Tag = jetzt.getDate();
// fill WP date variables
var refDatum = jetzt.getDate() + ' ' + Monate[jetzt.getMonth() + 1] + ' ' + Jahr;

// More Buttons:
customEditButtons="A,B,E,G,H,I1,I2,J1,K,L,M,Q,R,R3,S,T,U,V,W,X,FS,BG,BG2";
myButtons={'BG':['http://upload.wikimedia.org/wikipedia/commons/d/d1/Puls_da_aiutare.png','Reference GESTIS',"<ref name=\"GESTIS\">{{GESTIS|ZVG=|CAS=|Name=|Date=" + refDatum + "}}</ref>",'',''],
'BG2':['http://upload.wikimedia.org/wikipedia/commons/f/fe/Button_refs.png','Reference GESTIS repeated',"<ref name=\"GESTIS\"/>",'','']};
var usersignature = '--\~\~\~\~';
document.write('<script type="text/javascript" src="http://de.wikipedia.org/w/index.php?title=Benutzer:Olliminatore/customToolbar.js&action=raw&ctype=text/javascript&dontcountme=s"> <\/script>');