MediaWiki:Monobook.js
注意:儲存之後,你可能要兜過你嘅瀏覽器快取至睇到更改。Internet Explorer: 撳住Ctrl掣再撳重新整理掣。 Firefox: 撳住Shift掣再撳重新載入(又或者撳Ctrl-Shift-R)。 Google Chrome同埋Safari用戶就噉撳個重載掣。
/* <source lang=javascript> */
/* 響每一次個頁面載入時,用 Monobook 畫面嘅用戶都會載入呢度任何嘅JavaScript */
/** Topbar content fix with sitenotice / CentralNotice **************************
*
* Description: This fixes the location of topbar content (e.g., featured
* content star) when the sitenotice or CentralNotice is active.
* Maintainers: [[User:TheDJ]], [[User:MZMcBride]]
*/
if((navigator.userAgent.indexOf("MSIE 6")==-1) && (mw.config.get('wgAction') == 'submit' || mw.config.get('wgAction') == 'view')) $(function() {
var cnote = document.getElementById('centralNotice');
if( !document.getElementById('mw-dismissible-notice') && !(cnote)) return; // fundraiser: && hasClass(cnote, 'expanded'))) return;
appendCSS('#bodyContent { position:relative; } \n.topicon { position:absolute; top:-2em !important;}\n#coordinates{ position:absolute; top:1px !important; right:0px !important;}');
})
/* </source> */