MediaWiki:Edittools.js
From Learning Languages Through Video Games
Jump to navigationJump to searchNote: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
function runFixer(fixer) { var textarea = $j('#wpTextbox1')[0]; if(textarea.selectionStart === undefined) { alert("Looks like the fixers won't work on your browser..."); } var sel_start = textarea.selectionStart; var sel_end = textarea.selectionEnd; var selected_text = textarea.value; fixer(); } function fixJp(text) { //alert("Hey, what's your problem? I said this stuff isn't working yet!"); alert(text); } addOnloadHook(function() { $j('#fixer-jp').append("<input type='submit' onclick='runFixer(fixJp); return false' value='Tempt Fate' />"); });