Opera贴吧辅助
opera吧
全部回复
仅看楼主
level 12
    改进了一下:
1. 支持访问过的贴吧自动签到。
    2. 修复使用Opera逛贴吧时的换行问题。
3. 修复贴吧回复不能插入空格的问题。
    4. 自动插入UA尾巴,使用当前浏览器的标识。
地址在楼下~
——来自无敌的Opera浏览器 Mozilla/5.0 (Windows NT 6.1; en; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 12.02
2012年10月27日 23点10分 1
level 7
楼主你应该出一个教程,我下载打开就变这个
2012年10月27日 23点10分 4
一些人不知道呀~[瀑布汗~]
2012年10月27日 23点10分
快播亮了
2012年10月31日 15点10分
回复 ronglianyu :[来]
2012年11月01日 00点11分
回复 寂寞的原子 :为什么
2013年01月12日 05点01分
level 12
发布链接:http://gera2ld.blog.163.com/blog/static/188017296201281554647388/
   只需下载TiebaHelper.js~内附简易教程。
——来自无敌的Opera浏览器 Mozilla/5.0 (Windows NT 6.1; en; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 12.02
2012年10月28日 00点10分 5

报错请先看此贴:https://tieba.baidu.com/p/2096281083
2013年01月12日 01点01分
level 12
上次把Opera的UA改了忘记改回来了,哈哈。。
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 6.1; U; Edition IBIS; en) Presto/2.10.289 Version/12.02
2012年10月28日 00点10分 6
不错,楼主这个脚本。竟然是原生JS而非油猴子啊?我擦,O吧终于出了可以自己写脚本的大神了,撒花。[鲁拉]
2012年10月28日 01点10分
回复 2012末日之神 :我不喜欢在Op里用油猴。。而且贴吧已经自带了jquery功能很强大了,根本没必要再带一个油猴的库。。
2012年10月28日 04点10分
回复 寂寞的原子 :[Kiss]我也不喜欢在OP里用油猴子啊,可是,楼主啊,OP里能用的JS本来就没多少,贴吧功能的几乎就没有(貌似你写的是我见的第一个),不用油猴没啥用啊,期待楼主更新,不需要功能多,这一个脚本做好,就是造福广大上贴吧的O粉了。
2012年10月28日 04点10分
楼主,2.4.5版本的js是不是不配合Violentmonkey扩展就不能使用了?
2012年12月18日 11点12分
level 9
不错支持。此贴当精啊。好东东。原来博主也是用OP的,幸会。
2012年10月28日 00点10分 7
level 9
      来测试一下。
青春不会消逝,除非承认自己老去。
外星人和超能力者一直存在,除非你否认他们。
                                          我们能够做到,除非失去信心。
试试格式。
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 8
怎么这么多 啊,不用分号吗?
2012年12月25日 06点12分
回复@雪见仙尊 :这是电脑党利用bug保留空格的方法,只有手机党才看得到 …不过手机党向来是被无视的。。
2012年12月25日 06点12分
回复 寂寞的原子 :做为电脑党我也看见 了,求破
2012年12月25日 09点12分
回复 寂寞的原子 :原来如此~谢谢
2012年12月25日 09点12分
level 9
<span class="at">@Jeff6634
吧求当精啊,
唯一给OP写的贴吧脚本,激动啊<img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"> <img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0008.gif" width="40" height="40">
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 10
level 9
<span class="at"><span class="at">@Jeff6634 
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 11
level 9
<img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0011.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0011.gif" width="40" height="40"><img pic_type="" class="BDE_Smiley" src="http://static.tieba.baidu.com/tb/editor/images/jd/j_0011.gif" width="40" height="40">
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 12
level 9
发现问题了,呵呵。表情和@TA功能语法错误,看上边两个回复效果就明白了,等楼主修复。
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 13
level 9
//***********************************************************头像美化************************************************************************
(function() {
var css = "";
if (false    (document.domain == "tieba.baidu.com"    document.domain.substring(document.domain.indexOf(".tieba.baidu.com") + 1) == "tieba.baidu.com"))
css += ".d_avatar_frame {\nbackground-image:none !important; \n}\n.d_author img.icon{\nborder:1px gray solid !important;\n}\nimg.icon{\npadding:0 !important;\nborder-radius: 12px !important;\n}\n.p_author_face > img {\nborder-radius: 12px !important;\nborder:1px gray solid !important;\n}\ndiv.userlike_info_head{\n    border-radius: 8px !important;\n}\nimg#userlike_info_head_img{\n    border-radius: 6px !important;\n}\np.aside_userface_border{\n    border-radius: 8px !important;\n}\n#aside_person_info > DIV:nth-child(2) > DIV:first-child > P > A > IMG{\n    border-radius: 8px !important;\n}\n\n.portr{\n    border-radius: 8px !important;\n}\nimg.head_img{\n    border-radius: 8px !important;\n}\n#topUserfaceTd > IMG{\n    border-radius: 10px !important;\n    padding-top:1px !important;\n}\n#topUserfaceTd{\n   border-radius: 12px !important;\n    width:97% !important;\n    border:1px solid gray !important;\n}\n.face_link,\n#concerned > DIV:nth-child(2) > DIV:last-child > TABLE > TBODY > TR > TD:first-child > P:first-child > A > IMG,\n#concerned > DIV:nth-child(2) > DIV:last-child > TABLE > TBODY > TR > TD:nth-child(2) > P:first-child > A > IMG,\n#concerned > DIV:nth-child(2) > DIV:last-child > TABLE > TBODY > TR > TD:last-child > P:first-child > A > IMG{\n    border-radius: 8px !important;\n}\nimg.bakan_pic{\n    border-radius: 8px !important;\n}\n.uFace_link{\n    border-radius: 8px !important;\n}";
if (false    (document.domain == "www.baidu.com"    document.domain.substring(document.domain.indexOf(".www.baidu.com") + 1) == "www.baidu.com"))
css += "img.user_portrait{\n    border-radius: 6px !important;\n}";
if (false    (document.domain == "hi.baidu.com"    document.domain.substring(document.domain.indexOf(".hi.baidu.com") + 1) == "hi.baidu.com"))
css += ".msg-user-img > A > IMG\n{\n    border-radius: 8px !important;\n}";
if (false    (document.location.href.indexOf("https://tieba.baidu.com/manager-apply/view/list?kw=http://tieba.baidu.com/manager-apply/view/list?kw=") == 0))
css += "td > a > img{\n    border-radius: 12px !important;\n    border:1px gray solid !important;\n}";
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
  var node = document.createElement("style");
  node.type = "text/css";
  node.appendChild(document.createTextNode(css));
  heads[0].appendChild(node);
 }
}
})();
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 14
头像圆角
2012年10月28日 01点10分
level 9
//********************************************************蓝字发表功能******************************************************************
 $('.pt_submit').append("<input id='lanzi' class='subbtn_bg' type='button' value='发蓝字' />");
$('#lanzi').click(function()
{     
        var str = $('.tb-editor-editarea').text();
  str = str.replace(/<\/?a[^>]*>/gi, "");
  var temps = new Array();
  var i = 0;
  while (/<[^>]*>   @\S*/.test(str)) {
   temps[i] = /<[^>]*>   @\S*/.exec(str);
   str = str.replace(temps[i], "㊣");
   i++;
  }
  var out = "";
  for (var i = 0; i < str.length; i++)
  {
   out += "&#" + str.charCodeAt(i) + ";";
  }
  for (var i = 0; i < temps.length; i++) {
   var temp = temps[i] + "";
   out = out.replace(/㊣/, temp);
  }
 
 
var   tieba=unsafeWindow.rich_postor._getData();
       var a='<a href="http://';
    var b='/" target="_blank" class="entrance_rank_index">';
    var d="< /a>";
    tieba.content=a+out+b+out+d;
unsafeWindow.PostHandler.post(unsafeWindow.rich_postor._option.url,tieba,function(I){unsafeWindow.rich_postor.showAddResult(I)},function(I){});
}
);
 
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 15
蓝字发表
2012年10月28日 01点10分
level 9
https://tieba.baidu.com/p/1946671538
和这个扩展功能类似,不过没必要用扩展,JS方便。
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 16
level 9
https://tieba.baidu.com/p/1938719430
这个帖子的脚本都是只能在油猴下执行,并且OP基本不能用,楼主可以参考参考。
——来自无敌的Opera浏览器 Opera/9.80 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.10.289 Version/12.02
2012年10月28日 01点10分 17
level 11
楼上层主好激动\(≥▽≤)/的样子……
2012年10月28日 02点10分 18
必须的啊,贴吧JS啊,第一次发现啊。有木有啊
2012年10月28日 04点10分
2012年10月28日 04点10分
level 9
谢谢,测试下。
——来自无敌的Opera浏览器 Mozilla/5.0 (Windows NT 5.1; Edition Next; Edition IBIS) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11
2012年10月28日 03点10分 19
level 9
感谢分享!楼主,我不想要UA尾巴,是不是删掉“function wrapContent(c)”一整段啊?还是说只删除“c+='<br><br>——来自无敌的Opera浏览器 '+navigator.userAgent;
return c;”这行?
——来自无敌的Opera浏览器 Mozilla/5.0 (Windows NT 5.1; Edition Next; Edition IBIS) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11
2012年10月28日 03点10分 20
删除“function wrapContent(c)”整段的话按“发表”没反应,要用快捷键CTRL+回车
2012年10月28日 03点10分
回复 penguin001 :删除UA内容就行了,不自己添加。或者你改成别的内容也行,不一定非是UA.
2012年10月28日 04点10分
level 9
楼主,这个新脚本很多问题。我插表情识别出来变成这样。而且这个版本在使用AntiBrowsniffer扩展识别是chrome后无法回车。
【我使用
AntiBrowsniffer扩展是因为可以解决12.10版本插入表情符会跳到段首的问题
】现在已经退回原来的脚本了。<img pic_type="0" class="BDE_Image" src="https://imgsrc.baidu.com/forum/pic/item/7dddd933c895d143ff8e8ad673f0820258af07c0.jpg" width="560" height="163.0
13698630137
" changedsize="true">
——来自无敌的Opera浏览器 Mozilla/5.0 (Windows NT 5.1; Edition Next; Edition IBIS) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11
2012年10月28日 04点10分 21
我晕了,这样识别成链接根本插不了图片。
2012年10月28日 04点10分
回复 penguin001 :好吧,我错了。。我光考虑空格和回车去了,导致其他功能都用不了了。。
2012年10月28日 04点10分
回复 penguin001 :我也发现这个问题了,等楼主更新2。0版本。
2012年10月28日 04点10分
level 9
不过老脚本也有问题。老脚本输入文字以后用“剪切”剪掉部分文字不能用CTRL+z倒回来。
[揉脸]而且老脚本插表情后光标会离表情很远。(和使用AntiBrowsniffer‎识别成firefox出现的bug一样)
【这些都是在使用AntiBrowsniffer‎扩展CHROME模式下测试的】
2012年10月28日 04点10分 22
level 6
[顶]
2012年10月28日 04点10分 23
1 2 3 4 5 6 尾页