Σημείωση: μετά την δημοσίευση, ίσως χρειαστεί να παρακάμψετε την προσωρινή μνήμη του προγράμματος περιήγησής σας για να δείτε τις αλλαγές.

  • Firefox / Safari: Κρατήστε πατημένο το Shift κάνοντας ταυτόχρονα κλικ στο κουμπί Ανανέωση ή πιέστε Ctrl-F5 ή Ctrl-R (⌘-R σε Mac)
  • Google Chrome: Πιέστε Ctrl-Shift-R (⌘-Shift-R σε Mac)
  • Internet Explorer / Edge: Κρατήστε πατημένο το Ctrl κάνοντας ταυτόχρονα κλικ στο κουμπί Ανανέωση, ή πιέστε Ctrl-F5
  • Opera: Πιέστε Ctrl-F5.
/* Οποιοσδήποτε κώδικας JavaScript εδώ θα φορτωθεί για όλους τους χρήστες σε κάθε φόρτωση σελίδας. */
 
 // book name
 mw.config.set( 'wgBookName', mw.config.get('wgPageName').split("/", 1)[0] || mw.config.get('wgPageName') );
 mw.config.set( 'wgBookName', mw.config.get('wgBookName').split(':', 2).join(":") );

 /** Add dismiss button to watchlist-message *************************************
  *
  *  Description: Hide the watchlist message for one week.
  *  Maintainers: [[w:User:Ruud Koot|Ruud Koot]]
  */
 
 function addDismissButton() {
    var watchlistMessage = document.getElementById("watchlist-message");
    if ( watchlistMessage == null ) return;
    
    if ( $.cookie( 'hidewatchlistmessage' ) === 'yes' ) {
        watchlistMessage.style.display = "none";
    }
    
    var Button     = document.createElement( "span" );
    var ButtonLink = document.createElement( "a" );
    var ButtonText = document.createTextNode( "dismiss" );
    
    ButtonLink.setAttribute( "id", "dismissButton" );
    ButtonLink.setAttribute( "href", "javascript:dismissWatchlistMessage();" );
    ButtonLink.setAttribute( "title", "Hide this message for one week" );
    ButtonLink.appendChild( ButtonText );
    
    Button.appendChild( document.createTextNode( "[" ) );
    Button.appendChild( ButtonLink );
    Button.appendChild( document.createTextNode( "]" ) );
    
    watchlistMessage.appendChild( Button );
 }
 
 function dismissWatchlistMessage() {
     $.cookie ("hidewatchlistmessage", "yes", { expires: 7, path: "/"});
     var watchlistMessage = document.getElementById("watchlist-message");
     watchlistMessage.style.display = "none";
 }
 
 mw.loader.using('mediawiki.cookie', function () {
 	$(document).ready( addDismissButton );
 })
 
 // Removes the default no-license option for image uploads. 
 // All new image uploads must be tagged with a license or nld
 function remove_no_license() {
   if (mw.config.get('wgPageName') != "Special:Upload")
     return;
   var license = document.getElementById("wpLicense");
   if (!license)
     return;
   var options = license.getElementsByTagName("option");
   if (!options)
     return;
   license.removeChild(options[0]);
 }
 
 $(document).ready(remove_no_license);

 // import additional scripts //
 //import_script('MediaWiki:ExtraTools.js');
// import_script('MediaWiki:Navigation.js');
// import_script('MediaWiki:NavigationTabs.js');
// import_script('MediaWiki:Displaytitle.js');
// import_script('MediaWiki:RandomBook.js');
// import_script('MediaWiki:Edittools.js');
 
 // adds buttons to the edit toolbar
 if (mw.toolbar) importScript('MediaWiki:EditToolbar.js');
 
 //Search within a book using Google//
 // 0 - Main / 102 - Cookbook / 110 - Wikijunior
// if ( mw.config.get('wgNamespaceNumber') == 0 || mw.config.get('wgNamespaceNumber') == 102 || mw.config.get('wgNamespaceNumber') == 110) importScript('MediaWiki:BookSearch.js');