Shënim: Pas botimit, mund t’ju duhet të anashkaloni fshehtinën e shfletuesit tuaj, që të shihni ndryshimet.

  • Firefox / Safari: Mbani të shtypur tastin Shift teksa klikoni mbi Ringarkoje, ose shtypni një nga kombinimet Ctrl-F5 ose Ctrl-R (⌘-R në Mac)
  • Google Chrome: Shtypni Ctrl-Shift-R (⌘-Shift-R në Mac)
  • Internet Explorer / Edge: Mbani të shtypur Ctrl teksa klikoni mbi Refresh, ose shtypni Ctrl-F5
  • Opera: Shtypni Ctrl-F5.
//Predefined function library.

/*
  This script page is intended to duplicate some of the functionality of common.js for now, 
  so that all scripts don't need to redefine all sorts of "standard" functions. It will be
  used as a library for other gadget scripts.

  common.js will redefine these functions.

*/

 var wgBookName = mw.config.get('wgPageName').split("/", 1)[0] || mw.config.get('wgPageName');
 wgBookName = wgBookName.split(':', 2).join(":");

 import_ss_list = {};

 function import_script(name)
 {
   name = encodeURIComponent(name.replace(/ /g, '_' ));
   if (import_ss_list[name]) return; else import_ss_list[name] = true;
   var scriptElem = document.createElement('script');
   scriptElem.setAttribute('type', 'text/javascript');
   scriptElem.setAttribute('src',  '/w/index.php?title=' + name + '&action=raw&ctype=text/javascript');
   document.getElementsByTagName('head')[0].appendChild(scriptElem);
 }
 
 function import_style(name)
 {
   name = encodeURIComponent(name.replace(/ /g, '_' ));
   if (import_ss_list[name]) return; else import_ss_list[name] = true;
   if(document.createStyleSheet) {
      document.createStyleSheet("/w/index.php?title=" + name + "&action=raw&ctype=text/css");
   } else {
      var styleElem = document.createElement('style');
      styleElem.setAttribute('type', 'text/css');
      styleElem.appendChild(document.createTextNode('@import "/w/index.php?title=' + name + '&action=raw&ctype=text/css";'));
      document.getElementsByTagName('head')[0].appendChild(styleElem);
   }
 }
function add_toolbox_link(action, name, id)
{
  var tools = document.getElementById('column-one');
  
  if (tools)
    tools = tools.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];
  if (!tools)
    return;
  
  var na = document.createElement('a').appendChild(document.createTextNode(name)).parentNode;
  
  if (typeof action == "string")
    na.setAttribute('href', action);
  else if (typeof action == "function")
    na.onclick = action;
  else
    return;
  
  var li = document.createElement('li').appendChild(na).parentNode;
  
  if (typeof id == "string") li.id = id;
  
  tools.appendChild(li);
}