Bikarhêner:Balyozxane/skrîpt/js/typo.js

Zanibe: Piştî weşandinê, ji bo dîtina guhartinan dibe ku hewce be "cache"ya geroka xwe paqij bikî.

  • Firefox / Safari: Pê li Shift û Reload bike an jî Ctrl-F5 an Ctrl-R bike (ji bo Mac: ⌘-R)
  • Google Chrome: Pê li Ctrl-Shift-R (ji bo Mac: ⌘-Shift-R) bike
  • Internet Explorer / Edge: Pê li Ctrl û Refresh bike, an jî Ctrl-F5 bike
  • Opera: Pê li Ctrl-F5 bike.
//çavkanî en.wiki [[en:User:Qwerfjkl/scripts/RETF.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/RETF.js&action=raw&ctype=text/javascript');
// <nowiki>
// Make sure the utilities module is loaded (will only load if not already)
mw.loader.using( 'mediawiki.util', function () {

    // Wait for the page to be parsed
    $( document ).ready( function () { 

if (document.editform) {
        var link = mw.util.addPortletLink( 'p-tb', '#', 'RastBikeAWB', 'ca-regExTypoFix', 'Nivîsên xelet sererast bike', 'e'); 
        $( link ).click( function ( event ) {
            event.preventDefault();
            doFixTyposRETF();

        } );
        }
    } );
} );
function doFixTyposRETF() {
    document.editform.wpTextbox1.value = RETF.replace(document.editform.wpTextbox1.value);
    document.editform.wpSummary.value = "[[Bikarhêner:Balyozxane/typo.js|Skrîpt]]: sererastkirin";
    //document.editform.submit();
    document.editform.wpDiff.click()
}

// </nowiki>