מדיה ויקי:סקריפטים/81.js

מתוך אקו-ויקי, מקום מפגש בנושאי אקולוגיה, חברה וכלכלה.
קפיצה לניווט קפיצה לחיפוש

הערה: לאחר השמירה, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.

  • פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload), או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
  • גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
  • אינטרנט אקספלורר: להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh), או ללחוץ על צירוף המקשים Ctrl-F5.
  • אופרה: לפתוח תפריט ← הגדרות (במחשב מק: Opera ← העדפות) ואז ללחוץ על פרטיות ואבטחה ← מחק היסטוריית גלישה ← Cached images and files.
// display system-messages names instead of the system messages themselves.
mw.loader.using( 'mediawiki.util' ).done( function() {
	var things = {  'הצג הודעות מערכת' : 'uselang=qqx',
					'safemode': 'safemode=1',
					'debug': 'debug=1'
	};
	
	function gothere( e ) {
		var key = $( this ).text(),
			there = things[key];
	    e.preventDefault();
	    var href = window.location.href.replace( /#.*/, '' );
	    href += ( ( /\?/.test( href ) ? '&' : '?' ) + there );
	    window.location.href = href;
	}
	
	Object.keys( things )
		.forEach( function(key) { 
			$( mw.util.addPortletLink( 'p-cactions', '', key ) ).click( gothere ); 
		} );
} );