消息按钮列表显示我的回复
当前为
// ==UserScript==
// @name 百度贴吧添加我的回复按钮
// @namespace http://tampermonkey.net/
// @version 0.1.3
// @description 消息按钮列表显示我的回复
// @author AN drew
// @match https://tieba.baidu.com/*
// @license MIT
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
setTimeout(function(){
$('#com_userbar > ul > li.u_news > div.u_ddl > div > div.u_ddl_con_top > div > ul.sys_notify.j_sys_notify.j_category_list > li:nth-child(2)').after('<li class="category_item category_item_empty"> <a class="j_cleardata" href="http://tieba.baidu.com/i/i/my_reply" target="_blank" data-type="reply" se_prerender_url="complete">我的回复 </a> </li>');
$('#u_notify_item > li:nth-child(2)').after('<li class="category_item category_item_empty"> <a class="j_cleardata" href="http://tieba.baidu.com/i/i/my_reply" target="_blank" data-type="reply" se_prerender_url="complete">我的回复 </a> </li>');
},5000);
if(window.location.href.indexOf('tieba.baidu.com/p/') > -1)
{
let timer = setInterval(function(){
let fa_date
if($('#j_p_postlist > div.l_post.j_l_post.l_post_bright.noborder.wide > div.d_post_content_main.d_post_content_firstfloor > div.core_reply.j_lzl_wrapper > div.core_reply_tail > ul.p_tail > li:nth-child(2) > span').length>0)
{
fa_date=new Date($('#j_p_postlist > div.l_post.j_l_post.l_post_bright.noborder.wide > div.d_post_content_main.d_post_content_firstfloor > div.core_reply.j_lzl_wrapper > div.core_reply_tail > ul.p_tail > li:nth-child(2) > span').text());
}
else
{
fa_date=new Date($('#j_p_postlist > div:nth-child(1) > div.d_post_content_main.d_post_content_firstfloor > div.core_reply.j_lzl_wrapper > div.core_reply_tail.clearfix > div > span:nth-child(6)').text());
}
let now_date=new Date();
if(now_date-fa_date>7*24*60*60*1000)
{
$('#j_core_title_wrap, .core_title_theme_bright,.l_post_bright, .l_post_bright .d_post_content_main, .l_post_bright .d_post_content_main .p_content').css('background','red');
clearInterval(timer);
}
},1000);
}
$('.b_right_up nobr:nth-child(2) .b_reply').each(function(){
if(!$(this).hasClass('pic') && $(this).text()=='回复')
{
$(this).text('【图片回复】');
$(this).addClass('pic');
}
})
GM_addStyle(`body {overflow-x: auto;}
.af_container{overflow: auto;}
.tbui_aside_float_bar{display:none!important}`);
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址