简单的编辑帖子
xmdhs移步至 https://xmdhs.ml/#!md/edit.md
原内容往下翻
最近论坛被攻击了,所以应该有不少人发现了,很难编辑帖子,点击保存毫无反应。(是不是很烦呢)
准备
首先你需要随便把一个网页保存为书签,然后把里面的网址换成下面的代码
javascript:a68counter=0;function is_ccdefend(s){flag=0;if(s.indexOf('; document.cookie=\'ccdefend=\'+v+\'; path=/\'; window.location.reload();')!=-1){flag=1;s=s.replace(' window.location.reload();','');if(s.indexOf("script")==-1){s='<script type="text/javascript">'+s+'</script>'}evalscript(s);a68counter++;showDialog('1秒后自动刷新请求,无需重复点击提交按钮~<br />当前重试次数:'+a68counter+'<br />【这个窗口可以关','confirm','自动处理中!','',1);if(a68counter>10){showDialog('重试次数过多,服务器可能过载<br />请打开记事本保存帖子内容,并刷新页面重试','confirm','重试过多','',1);throw new Error('too many failed');}}return flag}function _ajaxget(url,showid,waitid,loading,display,recall){waitid=typeof waitid=='undefined'||waitid===null?showid:waitid;var x=new Ajax();x.setLoading(loading);x.setWaitId(waitid);x.display=typeof display=='undefined'||display==null?'':display;x.showId=$(showid);if(url.substr(strlen(url)-1)=='#'){url=url.substr(0,strlen(url)-1);x.autogoto=1}var __url=url;var url=url+'&inajax=1&ajaxtarget='+showid;x.get(url,function(s,x){if(is_ccdefend(s)){setTimeout(_ajaxget(__url,showid,waitid,loading,display,recall),1000);throw new Error('detected ccdefend');}var evaled=false;if(s.indexOf('ajaxerror')!=-1){evalscript(s);evaled=true}if(!evaled&&(typeof ajaxerror=='undefined'||!ajaxerror)){if(x.showId){x.showId.style.display=x.display;ajaxinnerhtml(x.showId,s);ajaxupdateevents(x.showId);if(x.autogoto)scroll(0,x.showId.offsetTop)}}ajaxerror=null;if(recall&&typeof recall=='function'){recall()}else if(recall){eval(recall)}if(!evaled)evalscript(s)})}parse_xml_callback=function(){if((xmlHttp.readyState==4)&&(xmlHttp.status==200)){if(is_ccdefend(xmlHttp.responseText)){setTimeout(shenmegui(),1000);throw new Error('detected ccdefend');}var obj=JSON.parse(xmlHttp.responseText);initGeetest({gt:obj.gt,challenge:obj.challenge,offline:!obj.success,timeout:'5000',product:"bind",width:"300px"},handler)}};function shenmegui(){xmlHttp.open("GET","./plugin.php?id=geetest3&model=start&t="+(new Date()).getTime());xmlHttp.send(null);xmlHttp.onreadystatechange=parse_xml_callback}shenmegui();function checkpostrule(showid,extra){var x=new Ajax();x.get('forum.php?mod=ajax&action=checkpostrule&inajax=yes&'+extra,function(s){if(is_ccdefend(s)){setTimeout(checkpostrule(showid,extra),1000);throw new Error('detected ccdefend');}ajaxinnerhtml($(showid),s);evalscript(s)})}function checkpostrule_post(theform){if(!seccodecheck&&!secqaacheck&&!theform.sechash){var x=new Ajax();x.get('forum.php?mod=ajax&action=checkpostrule&ac='+postaction+'&inajax=yes',function(s){if(s){if(is_ccdefend(s)){setTimeout(checkpostrule_post(theform),1000);throw new Error('detected ccdefend');}ajaxinnerhtml($('seccheck'),s);evalscript(s);seccodecheck=true}else{postsubmit(theform)}})}else{postsubmit(theform)}}
js来自 http://www.mcbbs.net/thread-834686-1-1.html
就像这样,名字命名为控制台。

开始
现在随便打开一个你想要操作的帖子,在地址栏输入“控制台”并点击下方出现的控制台

然后你就可以去评分/编辑/回复了