mw.libs.ve.targetLoader.addPlugin( function () { ve.init.mw.NoCaptchaReCaptchaSaveErrorHandler = function () {}; OO.inheritClass( ve.init.mw.NoCaptchaReCaptchaSaveErrorHandler, ve.init.mw.SaveErrorHandler ); ve.init.mw.NoCaptchaReCaptchaSaveErrorHandler.static.name = 'confirmEditNoCaptchaReCaptcha'; ve.init.mw.NoCaptchaReCaptchaSaveErrorHandler.static.getReadyPromise = function () { var onLoadFn = 'onRecaptchaLoadCallback' + Date.now(), deferred, config, scriptURL, params; if ( !this.readyPromise ) { deferred = $.Deferred(); config = mw.config.get( 'wgConfirmEditConfig' ); scriptURL = new mw.Uri( config.reCaptchaScriptURL ); params = { onload: onLoadFn, render: 'explicit' }; scriptURL.query = $.extend( scriptURL.query, params ); this.readyPromise = deferred.promise(); window[ onLoadFn ] = deferred.resolve; mw.loader.load( scriptURL.toString() ); } return this.readyPromise; }; ve.init.mw.NoCaptchaReCaptchaSaveErrorHandler.static.matchFunction = function ( data ) { var captchaData = ve.getProp( data, 'visualeditoredit', 'edit', 'captcha' ); return !!( captchaData && captchaData.type === 'recaptchanocaptcha' ); }; ve.init.mw.NoCaptchaReCaptchaSaveErrorHandler.static.process = function ( data, target ) { var self = this, config = mw.config.get( 'wgConfirmEditConfig' ), siteKey = config.reCaptchaSiteKey, $container = $( '