User:Richterbelmont10/global.js

(function ($, mw) {   'use strict';    $(function  { if ((mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit') && mw.config.get('skin') === 'monobook') { var content = $('#wpTextbox1').val; $(window).bind('beforeunload', function {                if ($('#wpTextbox1').val !== content) {                    return ' ';                }            }); }   });