- UID
- 8860
- 积分
- 8423
- TBS
- 659
- 智商
- 1078
- 节操
- 1428
- 海贝
- 2
- 阅读权限
- 70
- 在线时间
- 192 小时
- 注册时间
- 2014-4-12
- 最后登录
- 2020-6-4
|
注意:此代码出自:http://vicz.cn/forum.php?mod=viewthread&tid=324&extra=page%3D1&mobile=2
是由VICZONE大神制作,大家可以去其社区看看,是一个技术性,科学性社区
代码如下:不改变原文为尊重作者
包括繁体、蓝字、蓝粗、红字、红粗
最近Simp好像死了,所以改一改。
[mw_shl_code=javascript,true]///新lzl繁体
function getqid(){var source=$('cc');var floor=prompt("楼层号");var qid=(source[floor-1].innerHTML.match(/post_content_(\d+)/));return qid[1];}var m=prompt("输入繁体内容");var c=A2W(m);function A2W(s){var r="";for(var i=0;i<s.length;i++){r+='&\011#'+s.charCodeAt(i)+';'};return r};var qid=getqid();$.post("http://tieba.baidu.com/f/commit/post/add",{kw:PageData.forum.forum_name,ie:"utf-8",rich_text:1,floor_num:1,quote_id: qid,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,content:c,anonymous:0,tbs:PageData.tbs},function(o){if(o.no!=0){alert("no:"+o.no+"\nerr_code:"+o.err_code+"\nerror:"+o.error);console.log(o)}else location.reload()},"json");void 0
///新楼中楼蓝
javascript:var text=prompt("输入文字");var a="";for(var i=0;i<text.length;i++){a+='&\011#'+text.charCodeAt(i)+';'};function getqid(){var source=$('cc');var floor=prompt("楼层号");var qid=(source[floor-1].innerHTML.match(/post_content_(\d+)/));return qid[1];}var qid=getqid();$.post("http://tieba.baidu.com/f/commit/post/add",{kw:PageData.forum.forum_name,ie:"utf-8",rich_text:1,floor_num:1,quote_id: qid,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,content:'<a href="http://'+a+'/" target="_blank">'+a+'</a>',anonymous:0,tbs:PageData.tbs},function(o){if(o.no!=0){alert("no:"+o.no+"\nerr_code:"+o.err_code+"\nerror:"+o.error);console.log(o)}else location.reload()},"json");void 0
///新楼中楼蓝粗
javascript:var text=prompt("输入文");var a="";for(var i=0;i<text.length;i++){a+='&\011#'+text.charCodeAt(i)+';'};function getqid(){var source=$('cc');var floor=prompt("楼层号");var qid=(source[floor-1].innerHTML.match(/post_content_(\d+)/));return qid[1];}var qid=getqid();$.post("http://tieba.baidu.com/f/commit/post/add",{kw:PageData.forum.forum_name,ie:"utf-8",rich_text:1,floor_num:1,quote_id: qid,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,content:'<strong><a href="http://'+a+'/" target="_blank">'+a+'</a></strong>',anonymous:0,tbs:PageData.tbs},function(o){if(o.no!=0){alert("no:"+o.no+"\nerr_code:"+o.err_code+"\nerror:"+o.error);console.log(o)}else location.reload()},"json");void 0
///新楼中楼红
javascript:var text=prompt("输入文字");var a="";for(var i=0;i<text.length;i++){a+='&\011#'+text.charCodeAt(i)+';'};function getqid(){var source=$('cc');var floor=prompt("楼层号");var qid=(source[floor-1].innerHTML.match(/post_content_(\d+)/));return qid[1];}var qid=getqid();$.post("http://tieba.baidu.com/f/commit/post/add",{kw:PageData.forum.forum_name,ie:"utf-8",rich_text:1,floor_num:1,quote_id: qid,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,content:'<span class="edit_font_color">'+a+'</span>',anonymous:0,tbs:PageData.tbs},function(o){if(o.no!=0){alert("no:"+o.no+"\nerr_code:"+o.err_code+"\nerror:"+o.error);console.log(o)}else location.reload()},"json");void 0
///新楼中楼红粗
javascript:var text=prompt("输入文字");var a="";for(var i=0;i<text.length;i++){a+='&\011#'+text.charCodeAt(i)+';'};function getqid(){var source=$('cc');var floor=prompt("楼层号");var qid=(source[floor-1].innerHTML.match(/post_content_(\d+)/));return qid[1];}var qid=getqid();$.post("http://tieba.baidu.com/f/commit/post/add",{kw:PageData.forum.forum_name,ie:"utf-8",rich_text:1,floor_num:1,quote_id: qid,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,content:'<strong><span class="edit_font_color">'+a+'</span></strong>',anonymous:0,tbs:PageData.tbs},function(o){if(o.no!=0){alert("no:"+o.no+"\nerr_code:"+o.err_code+"\nerror:"+o.error);console.log(o)}else location.reload()},"json");void 0[/mw_shl_code]
|
|