מדיה ויקי:סקריפטים/52.js
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
// Adds "=>", "<=", "bidiOver" and "bidiNormal" buttons to editor toolbar, // setting edit-box and summery line to ltr, rtl, bidi-Override and bidi-normal modes. if (~$.inArray(mw.config.get('wgAction'), ['edit', 'submit'])) $(function() { $.each([ {l: '=>', d: {direction: 'rtl'}}, {l: '<=', d: {direction: 'ltr'}}, {l: 'bidiOver', d: {unicodeBidi: 'bidi-override'}}, {l: 'bidiNormal', d: {unicodeBidi: 'normal'}} ], function(index, item) { $('#editform').before( $('<input>', {type: 'button', value: item.l}) .click(function() { $("#wpTextbox1, .ace_editor, #wpSummary").css(item.d); }) ); }); });