function importJs() {
var jsImports = ["jsdomenu.js", "jsdomenubar.js", "nyenyeclib.js", "editmenu.js"
, "jquery-latest.js", "userfilter.js"];
for (var i = 0; i < jsImports.length; i++) {
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='/w/index.php?title=User:Nyenyec/"
+ jsImports + "&action=raw&ctype=text/javascript&dontcountme=s' TYPE='text/javascript'><\/SCRIPT>");
}
}
function IsLoggedIn() {
// If there is no login button, assume we're logged in
return document.getElementById('pt-login') == null;
}
// some code to check whether I've added an Edit Summary
// somewhat copied from ]
function ForceSummaryInstall(){
// User explicitly turned it off
if (typeof noForceSummary != 'undefined') return;
// User is logged in
// if(IsLoggedIn()) return;
if(!/&action=edit/.test(window.location.href)) return;
if(/§ion=new/.test(window.location.href)) return;
if(!document.forms.editform) return;
document.forms.editform.wpSave.onclick = ForceSummary;
};
function ForceSummary(){
if(!document.forms.editform.wpSummary.value.replace(/^(\/\*.*\*\/)? *(.*) *$/,'$2')){
var r = prompt('Biztos, hogy nem akarsz szerkesztési összefoglalót írni?\nAz összefoglalót beírhatod az alábbi mezőbe:',document.forms.editform.wpSummary.value);
if(r == null) return false;
document.forms.editform.wpSummary.value = r;
}
return true;
};
importJs();
function main() {
ForceSummaryInstall();
// filterUsersFromTalkPage();
}
addOnloadHook(main);
// Menük kinézete CSS
document.write('<style type="text/css">/*<!]>*/</style>');
// Tgr-féle automatikus összefoglaló
document.write('<script type="text/javascript" src="'
+ 'http://hu.wikipedia.org/w/index.php?title=User:Tgr/summary.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Extra linkek az eszközök dobozba
//document.write('<script type="text/javascript" src="'
// + 'http://hu.wikipedia.org/w/index.php?title=User:Nyenyec/customlinks.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// ] - please include this line
// FIXME: debug
// document.write('<script type="text/javascript" src="'
// + 'http://hu.wikipedia.org/w/index.php?title=User:G_ambrus/statisztika.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>');
popupAdminLinks = true;
popupFixRedirs = true;
popupFixDabs = true;