Jump to content

မီႇတီႇယႃႇဝီႇၶီႇ:Monobook.js

လုၵ်ႉတီႈ ဝီႇၶီႇၶၢဝ်ႇ မႃး

မၢႆတွင်း: ဝၢႆးသေသိမ်းပၼ်ယဝ်ႉ၊ တွၼ်ႈတႃႇ ၸဝ်ႈၵဝ်ႇ တေႁၼ်လႆႈ လွင်ႈလႅၵ်ႈလၢႆႈၼၼ်ႉ ၸဝ်ႈၵဝ်ႇတေၸၢင်ႈလႆႈလတ်းၶၢမ်ႈ ၶႅတ်ႉၶျ် တူဝ်ပိုတ်ႇဝႅပ်ႉၸဝ်ႈၵဝ်ႇယဝ်ႉ။

  • ၽွင်းမိူဝ်ႈတိုၵ်ႉၼဵၵ်း Reload တီႈ Firefox / Safari: ၼၼ်ႉ ၼဵၵ်းဝႆႉပႃး Shift ၊ဢမ်ႇၼၼ် ၼဵၵ်းပၼ် Ctrl-F5 ဢမ်ႇၼၼ် Ctrl-R (တီႈၼႂ်း Mac ၼႆ ၼဵၵ်းပၼ်⌘-R)
  • တီႈၼႂ်း Google Chrome: ၼဵၵ်းပၼ် Ctrl-Shift-R (တီႈၼႂ်း Mac ၼႆႉ ၼဵၵ်းပၼ်⌘-Shift-R )
  • ၽွင်းမိူဝ်ႈ တိုၵ်ႉၼဵၵ်း Refreshတီႈ Internet Explorer/ Edge: ၼဵၵ်းဝႆႉပၼ် Ctrl ဢမ်ႇၼၼ် ၼဵၵ်းပၼ် Ctrl-F5
  • တီႈၼႂ်း Opera: ၵႂႃႇၸူးတီႈ Menu → Settings (ပေႃးပဵၼ်တီႈၼႂ်း Mac ၸိုင် Opera → Preferences ) သေ သိုပ်ႇၵႂႃႇ Privacy & security → Clear browsing data → Cached images and files ၼၼ်ႉလႄႈ။
//'''A fair portion of this is now at [[mediawiki:common.js]]'''

/* tooltips and access keys */
// Moved into mediawiki ns. for example: [[MediaWiki:Tooltip-ca-move]]/[[mediawiki:accesskey-ca-move]]



// !!'''Alternate stylesheets'''!! Note, Some are on wikipedia/meta/other lang wikinews. Only user whos 
//userspace its in and admins can edit stylesheets. Ask [[user:Bawolff]] for info. see also [[wikinews:skins]]
$(function () {
 var altStyles = {
  'Datrio': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=Wikinews:Skins/Datrio.css&action=raw&ctype=text/css&smaxage=2678400',
  'stw': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=User:Stw/monobook.css&action=raw&ctype=text/css&smaxage=2678400',
  'Milky': '//en.wikipedia.org/w/index.php?title=User:%C6var_Arnfj%F6r%F0_Bjarmason/monobook.css&action=raw&ctype=text/css&smaxage=2678400',
  'Ultrawalffle': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=Wikinews:Skins/Ultrawalffle.css&action=raw&ctype=text/css&smaxage=2678400',
  'Clean and Blue': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=Wikinews:Skins/Clean_and_Blue.css&action=raw&ctype=text/css&smaxage=2678400',
  'Datrio+MrM': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=User:Bawolff/Sandbox/Datrio%2BMrM.css&action=raw&ctype=text/css&smaxage=2678400',
  'Newspaper background': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=Wikinews:Skins/newspaper-background.css&action=raw&ctype=text/css&smaxage=2678400',
  'Messedrocker': mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=Wikinews:Skins/Messedrocker.css&action=raw&ctype=text/css&smaxage=2678400'
 };
 var link;
 for (var i in altStyles) {
  if (altStyles.hasOwnProperty(i)) {
   link = document.createElement('link');
   link.type = 'text/css';
   link.href = altStyles[i];
   link.media = 'screen,projection';
   link.rel = "alternate stylesheet";
   link.title =  i;
   document.getElementsByTagName('head')[0].appendChild(link);
  }
 }
});