🧣 feat: 优化微博相关内容
This commit is contained in:
parent
d10c35bf2a
commit
991aefdfbb
|
@ -6,11 +6,11 @@
|
|||
// @TgChannel https://t.me/ddgksf2021
|
||||
// @Contribute https://t.me/ddgksf2013_bot
|
||||
// @Feedback 📮 ddgksf2013@163.com 📮
|
||||
// @UpdateTime 2023-06-02
|
||||
// @UpdateTime 2023-07-03
|
||||
// @Attention 微博、微博国际版净化,现已二合一,使用中若有问题请发邮件!
|
||||
// @Suitable 自行观看“# > ”注释内容
|
||||
// @Attention 如需引用请注明出处,谢谢合作!
|
||||
// @Version V2.0.85
|
||||
// @Version V2.0.86
|
||||
// @ScriptURL https://github.com/ddgksf2013/Rewrite/raw/master/AdBlock/Weibo.conf
|
||||
// ==/UserScript==
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const version = 'V2.0.113';
|
||||
const version = 'V2.0.115';
|
||||
|
||||
const mainConfig = {
|
||||
isDebug: !1,
|
||||
|
@ -334,11 +334,9 @@ function removeCards(e) {
|
|||
if ((e.hotwords && (e.hotwords = []), !e.cards)) return;
|
||||
let t = [];
|
||||
for (let o of e.cards) {
|
||||
if (
|
||||
e.cardlistInfo?.containerid == '232082type=1' &&
|
||||
(17 == o.card_type || 58 == o.card_type || 11 == o.card_type)
|
||||
)
|
||||
continue;
|
||||
e.cardlistInfo?.containerid == '232082type=1' &&
|
||||
(17 == o.card_type || 58 == o.card_type || 11 == o.card_type) &&
|
||||
(o = { card_type: o.card_type + 1 });
|
||||
let i = o.card_group;
|
||||
if (i && i.length > 0) {
|
||||
let a = [];
|
||||
|
@ -411,6 +409,7 @@ function itemExtendHandler(e) {
|
|||
}
|
||||
mainConfig.removeFollow && e.follow_data && (e.follow_data = null),
|
||||
mainConfig.removeRewardItem && e.reward_info && (e.reward_info = null),
|
||||
e.head_cards && delete e.head_cards,
|
||||
e.page_alerts && (e.page_alerts = null);
|
||||
try {
|
||||
e.trend.extra_struct.extBtnInfo.btn_picurl.indexOf(
|
||||
|
@ -514,7 +513,9 @@ function removeComments(e) {
|
|||
let r = a.adType || '';
|
||||
-1 == t.indexOf(r) && 6 != a.type && i.push(a);
|
||||
}
|
||||
log('remove 评论区相关和推荐内容'), (e.datas = i);
|
||||
log('remove 评论区相关和推荐内容'),
|
||||
(e.datas = i),
|
||||
e.tip_msg && delete e.tip_msg;
|
||||
}
|
||||
function containerHandler(e) {
|
||||
mainConfig.removeInterestFriendInTopic &&
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue