User:T3CHNOCIDE/test

!function ( window, $, mw ) { 'use strict'; $( function {        // w:Thread:570938        if ( mw.config.get( 'skin' ) === 'monobook' && ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' ) ) {            var content = $( '#wpTextbox1' ).val;            var h = function  {                if ( $( '#wpTextbox1' ).val !== content || mw.config.get( 'wgAction' ) === 'submit' ) {                    return ' ';                }            }            $( window ).bind( 'beforeunload', h );            $( 'form#editform' ).submit( function { $( window ).unbind( 'beforeunload', h ) } );         }    } ); }( this, this.jQuery, this.mediaWiki )