사용자:Moonian/monobook.js
위키백과 ― 우리 모두의 백과사전.
참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 갱신해야 합니다. 모질라 / 파이어폭스 / 사파리: ‘시프트’ 키를 누르면서 ‘새로 고침’을 클릭하거나, Ctrl-F5를 입력; 컨커러: 단순히 '새로고침'을 클릭하거나 F5를 입력; 오페라 사용자는 ‘도구→설정’에서 캐시를 완전히 비워야 합니다.
// [[:en:User:Lupin/popups.js]] - please include this line
// [[:zh:User:笨笨的小B/jstool/popups.js]] - 請保留此行
document.write('<script type="text/javascript" src="'
+ 'http://zh.wikipedia.org/w/index.php?title=User:%E7%AC%A8%E7%AC%A8%E7%9A%84%E5%B0%8FB/jstool/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://zh.wikipedia.org/w/index.php?title=User:Moonian/strings-zh.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[:zh:User:Moonian/shortcuts.js]]
document.write('<script type="text/javascript" src="'
+ 'http://zh.wikipedia.org/w/index.php?title=User:Moonian/shortcuts.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function shortcutsInit ()
{
shortcutsAddLink ( '志田未來(中文維基百科)', ':zh:%E5%BF%97%E7%94%B0%E6%9C%AA%E4%BE%86' );
shortcutsAddLink ( '제 monobook.js', 'User:Moonian/monobook.js' );
shortcutsStartSection ('導航捷徑');
shortcutsAddLink ( '導航捷徑', ':en:Wikipedia:Tools/Navigation shortcuts' );
}
// install [[:en:User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/**
* 增加「強制刷新」按鈕
*/
addOnloadHook(function(){
var ca_history = document.getElementById( "ca-history" );
if ( ca_history && document.location.href.indexOf(wgServer+wgArticlePath.replace("$1","")) == 0 ){
var newA = document.createElement( "a" );
newA.setAttribute( "href" , ca_history.firstChild.href.replace( "=history" , "=purge" ) );
newA.appendChild( document.createTextNode( "強制刷新" ) );
var newLi = document.createElement( "li" );
newLi.appendChild( newA );
var ul = ca_history.parentNode;
ul.appendChild( newLi );
}
});

