注意:儲存之後,你可能要兜過你嘅瀏覽器快取至睇到更改。Internet Explorer: 撳住Ctrl掣再撳重新整理掣。 Firefox: 撳住Shift掣再撳重新載入(又或者撳Ctrl-Shift-R)。 Google Chrome同埋Safari用戶就噉撳個重載掣。
(function($){
  $(function(){
    $("#searchInput").change(function (){
      $(this).val($(this).val().replace("{{", "Template:").replace("}}", ""));
    });
  });
})(window.jQuery);


// UI customize
(function($){
  $(function(){
    $('<li id="pt-mysub"><a href="/wiki/Special:PrefixIndex/User:Ochloese">Sub-page</a></li><li id="pt-mysb"><a href="/wiki/User:Ochloese/sandbox">Sandbox</a></li><li id="pt-mycss"><a href="/wiki/User:Ochloese/vector.css">CSS</a></li><li id="pt-myjs"><a href="/wiki/User:Ochloese/vector.js">JS</a></li>').insertAfter("#pt-notifications");
    $("#wpSave").attr("value","編輯");
    $("#wpPreview").attr("value","預覽");
    $("#wpDiff").attr("value","差異");
    $("#wpTextbox1").prop('readonly', false)
  });
})(window.jQuery);

// style safety
/*(function($){
  $(function(){
    $("div").each(function(){
      if ( ( ($(this).css("position") == "fixed") || ($(this).css("position") == "absolute") ) && (parseInt( $(this).css("z-index") ) >= 10) && (parseInt( $(this).css("width") ) >= 50) && (parseInt( $(this).css("height") ) >= 50) && ($(this).css("visibility") != "hidden") && ($(this).css("display" != "none") ) ) {
$('<div id="styleSafety" style="width:100%; max-height:42em; overflow:auto;" />').insertAfter("#jump-to-nav");
$(this).appendTo("#styleSafety");
$("<hr />").appendTo("#styleSafety");
$(this).css("position","inherit");
      }
    });
  });
})(window.jQuery);*/

// auto purge
(function($){
  $(function(){
    A = window.location.href+'?action=purge';
    $.ajax({url: A});
  });
})(window.jQuery);

/*
// 
(function($){
  $(function(){

  });
})(window.jQuery);
*/