Utilisateur:Flyax/sidebar.js
Remarque: après avoir sauvegardé, vous devez vider le cache de votre navigateur pour que les changements prennent effet. Mozilla, cliquez sur Actualiser (ou ctrl-r). Internet Explorer / Opera: ctrl-f5. Safari: cmd-r. Konqueror ctrl-r.
function shortcutsInit () {
shortcutsStartSection ('My Tools');
// κλεμμένο από το User:Connel MacKenzei/sidebar.js στο enwikt και ακολούθως από τη σελίδα του Ariel Glenn
// get page title
var pagetitle = wgPageName;
if (pagetitle.search(/Αναζήτηση/) != -1) {
pagetitle = document.getElementById('searchText').value;
}
pagetitle = pagetitle.replace(/^Editing /g,"");
pagetitle = pagetitle.replace(/\ \(section\)$/g,"");
pagetitle = pagetitle.replace(/^\ /g, "");
var pageexternal = pagetitle.replace(/\ /g, "_");
var pageext = pagetitle.replace(/\ /g, "+");
// end stolen bit
if ( pagetitle.search(/:/) != -1 ) {
shortcutsAddLink ('Etym dict','http://www.etymonline.com/index.php');
shortcutsAddLink ('in.gr-2','http://lexicon.pathfinder.gr/index.php?lookup=');
}
else {
shortcutsAddLink ('Etym dict','http://www.etymonline.com/index.php?search='+pageext+'&searchmode=none');
shortcutsAddLink ('in.gr','http://dictionary.in.gr');
shortcutsAddLink ('in.gr-2','http://lexicon.pathfinder.gr/index.php?lookup='+pageext);
shortcutsAddLink ('ΛΚΝ','http://www.greek-language.gr/greekLang/modern_greek/tools/lexica/triantafyllides/search.html?lq='+pageext);
shortcutsAddLink ('elwikt','http://el.wiktionary.org/wiki/'+pageexternal);
shortcutsAddLink ('enwikt','http://en.wiktionary.org/wiki/'+pageexternal);
}
shortcutsAddLink ('Αργκό','http://www.slang.gr/');
}