הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
//נלקח מMediaWiki:Gadget-UTCLiveClock.js הותאם לזמן מקומי ( function( $, undefined ) { var $target; function showTime( $target ) { var dateNode = LiveClockConfig.node; if( !dateNode ) { return; } var now = new Date(); var hh = now.getHours(); var mm = now.getMinutes(); var ss = now.getSeconds(); if ( $target === undefined ) { $target = $( dateNode ).find( 'a:first' ); } var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss ); $target.text( time ); setTimeout( function(){ showTime( $target ); }, 1000 ); } function liveClock() { appendCSS( '#date a { font-weight:bolder; font-size:120%; }' ); if ( window.LiveClockConfig === undefined ) { window.LiveClockConfig = {}; } var portletId = LiveClockConfig.portletId || 'p-personal'; var nextNode = LiveClockConfig.nextNodeId ? document.getElementById( UTCLiveClockConfig.nextNodeId ) : undefined; LiveClockConfig.node = mw.util.addPortletLink( portletId, mw.config.get( 'wgScript' ) + '?title=' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '&action=purge', '', 'date', undefined, undefined, nextNode ); if( !LiveClockConfig.node ) { return; } showTime(); } $( document ).ready( liveClock ); } )( jQuery );