NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name _Block CKEditor on HKGalden
// @include https://hkgalden.com/*
// @require https://gist.github.com/raw/2620135/checkForBadJavascripts.js
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
/*- The @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
*/
/*checkForBadJavascripts ( [
[true, /ckeditor/i, null ]
] );
alert( window.location.href.indexOf("hkgalden.com") );*/
$(document).on('click','#preview_fast_reply',function(e){
e.preventDefault();
$.fancybox.showActivity;
if($('#gae #ta').val().length > 0){
$.ajax({
type:'POST',
url:'/ajax/preview/reply',
data:$('#fast_reply').serialize(),
success:function(data){
$.fancybox({minWidth:'70%',minHeight:'70%','content':data,});
$.fancybox.hideActivity;
}
});
} else {notify('???????');
}
});