[DLC] 更优雅地屏蔽指定用户发布的帖子 - 矿工茶馆 - Minecraft(我的世界)中文论坛 - (mcbbs.net)这个脚本在屏蔽指定用户的帖子时会把评分给一起屏蔽,如果有多个评分还会把该楼层会把所有评分都弄消失,如下图
需求:
1.只屏蔽对应用户的帖子,不屏蔽评分
2.将“展开、隐藏”按钮移到右边显示,因为如果被屏蔽者是楼主的话,移到那个条子上就会弹出“倒序浏览”“只看大图”的按钮
如果此时我正好要点“展开”,就会点错成“倒序浏览”,因此希望把展开和隐藏按钮移到右边显示,或者用其他方法减少误操作。

需求:
1.只屏蔽对应用户的帖子,不屏蔽评分
2.将“展开、隐藏”按钮移到右边显示,因为如果被屏蔽者是楼主的话,移到那个条子上就会弹出“倒序浏览”“只看大图”的按钮


如果此时我正好要点“展开”,就会点错成“倒序浏览”,因此希望把展开和隐藏按钮移到右边显示,或者用其他方法减少误操作。
好家伙,算定制吗
复制代码
- (function() {
- var u = [
- '4698991',
- '3634097',
- ];
- for(let i=0; i<u.length; i++){
- jq('a[href="home.php?mod=space&uid='+ u[i] +'"]').closest('td.pls').next('td.plc').css("background", "#f9ae9c");
- jq('a[href="home.php?mod=space&uid='+ u[i] +'"]').closest('table').parent().css({"height":"37px", "overflow-y":"hidden", "transition":"height 0.4s ease"});
- jq('a[href="home.php?mod=space&uid='+ u[i] +'"]').closest('td.pls').next('td.plc').find('div.authi').append('<span style="float:right;margin-right:8px;cursor:pointer;" onclick="jq(this).parents(\'table:first\').parent().css({\'height\':\'37\'});">隐藏</span><span style="float:right;margin-right:8px;cursor:pointer;" onclick="jq(this).parents(\'table:first\').parent().css({\'height\':jq(this).parents(\'table:first\').height()});">展开</span>')
- jq('a[href="home.php?mod=space&uid='+ u[i] +'"]').closest('table.ratl').parent().css({"height":"auto", "overflow-y":"auto", "transition":"height 0.4s ease"});
- }
- })();