コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

利用者:Juhachi/monobook.js

お知らせ: 保存した後、ブラウザのキャッシュをクリアしてページを再読み込みする必要があります。

多くの WindowsLinux のブラウザ

  • Ctrl を押しながら F5 を押す。

Mac における Safari

  • Shift を押しながら、更新ボタン をクリックする。

Mac における ChromeFirefox

  • Cmd Shift を押しながら R を押す。

詳細についてはWikipedia:キャッシュを消すをご覧ください。

// Tab name fixer (copied from User:Anomie/fix-tab-text.js, target content modified)
/* A simple javascript function to change the text in various tabs at the top of the
 * page. Only tested with the monobook skin.
 */
$(function(){
    var fix=function(id, text){
        var el=document.getElementById(id);
        if(!el) return;
        for(el=el.firstChild; el && el.nodeName!='A'; el=el.nextSibling);
        if(!el) return;
        while(el.firstChild) el.removeChild(el.firstChild);
        el.appendChild(document.createTextNode(text));
    }

    /* Add lines as necessary. Use the Firefox DOM inspector or some such to determine
     * the appropriate IDs.
     */
//(disabled via commenting)    fix('ca-talk', 'discussion');
    fix('ca-edit', 'edit');
    fix('pt-mysandbox', 'sandbox');
    fix('pt-preferences', 'preferences');
    fix('pt-watchlist', 'watchlist');
    fix('pt-mytalk', 'talk');
    fix('pt-mycontris', 'contributions');
});
//end tab name fixer

//add a purge tab, URL bits started by User:Nihiltres, but really the credit for this goes to User:Animum
$(function() {
  if (wgCanonicalNamespace != 'Special')
    {
mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=purge', 'purge', 'ca-purge', 'Purge the server cache of this page', null, (document.getElementById('ca-watch') ? document.getElementById('ca-watch') : document.getElementById('ca-unwatch')));
//and apply the "selected" class, so that one can confirm that the page has been purged. This subroutine is from User:Nihiltres
    if (wgAction == "purge")
       {
document.getElementById('ca-purge').className='selected'
       }
    }
});
//end purge tab

importScript('User:Equazcion/NoEditSandbox.js'); //[[User:Equazcion/NoEditSandbox]]