អ្នកប្រើប្រាស់:DerHexer/monobook.js

ពីWikibooks

សម្គាល់: បន្ទាប់ពីបានរក្សាទុករួចហើយ លោកអ្នកគួរតែសំអាត browser's cache របស់លោកអ្នកដើម្បីមើលការផ្លាស់ប្តូរ។ ខាងក្រោមនេះជាវិធីសំអាត browser's cache ចំពោះកម្មវិធីរុករក(Browser)មួយចំនួន។

  • Firefox / Safari: សង្កត់ [Shift] ឱ្យជាប់រួចចុចប៊ូតុង Reload ឬក៏ចុច Ctrl-F5Ctrl-R ( ⌘-R សំរាប់ Mac)
  • Google Chrome: ចុច Ctrl-Shift-R (⌘-Shift-R សំរាប់ Mac)
  • IE(Internet Explorer): សង្កត់ [Ctrl] ឱ្យជាប់ រួចចុច Refreshប៊ូតុង ឬក៏ចុច Ctrl-F5​។
  • Konqueror: ចុចប៊ូតុង Reload ឬក៏ចុច F5
  • Opera: សូមសំអាតcacheនៅក្នុង [Tools]→[Preferences]
 // get URL parameters (used for page type variables)
 var UrlParameters = new Array ();
 readparams();
 
 function readparams() {
  var asReadInUrlParameters;
  var asReadInUrlParameter;
 
  // Get URL parameters
  asReadInUrlParameters = location.search.substring(1, location.search.length).split("&");
  for (i = 0; i < asReadInUrlParameters.length; i++) {
    asReadInUrlParameter = asReadInUrlParameters[i].split("=");
    UrlParameters[decodeURIComponent(asReadInUrlParameter[0])] = decodeURIComponent(asReadInUrlParameter[1]);
  }
 }
 
 function fillActionPage() {
   document.forms["blockip"].wpBlockReason.value = UrlParameters["blockreason"];
   document.forms["blockip"].wpBlockOther.value = UrlParameters["blockduration"];
   window.setTimeout(function() { document.forms["blockip"].wpBlock.click(); }, 100);
 }
 
 
 if ( UrlParameters["blockreason"] > '') {
   addOnloadHook(fillActionPage);
 }