update weibo

This commit is contained in:
king
2025-12-16 21:36:03 +08:00
parent 0c8cfce6fe
commit 4369e99cab
4 changed files with 49 additions and 51 deletions

View File

@ -10,7 +10,7 @@
#!system = iOS, iPadOS #!system = iOS, iPadOS
#!system_version = #!system_version =
#!loon_version = #!loon_version =
#!date=2025-12-08 20:15:00 #!date=2025-12-16 21:33:23
############################################# #############################################
# > "reject" 策略返回 HTTP 状态码 404,不附带任何额外内容 # > "reject" 策略返回 HTTP 状态码 404,不附带任何额外内容
# > "reject-200" 策略返回 HTTP 状态码 200,不附带任何额外内容 # > "reject-200" 策略返回 HTTP 状态码 200,不附带任何额外内容

View File

@ -10,7 +10,7 @@
#!system = iOS, iPadOS #!system = iOS, iPadOS
#!system_version = #!system_version =
#!loon_version = #!loon_version =
#!date=2025-12-08 20:15:00 #!date=2025-12-16 21:33:23
############################################# #############################################
# > "reject" 策略返回 HTTP 状态码 404,不附带任何额外内容 # > "reject" 策略返回 HTTP 状态码 404,不附带任何额外内容
# > "reject-200" 策略返回 HTTP 状态码 200,不附带任何额外内容 # > "reject-200" 策略返回 HTTP 状态码 200,不附带任何额外内容

View File

@ -1,7 +1,7 @@
/** /**
* @auther @fmz200 * @auther @fmz200
* @function 微博去广告 * @function 微博去广告
* @date 2025-06-05 15:33:23 * @date 2025-12-16 21:33:23
* @quote zmqcherish * @quote zmqcherish
*/ */
@ -152,10 +152,7 @@ function isAd(data) {
if (data.ads_material_info?.is_ads) { if (data.ads_material_info?.is_ads) {
return true; return true;
} }
if (data.is_ad === 1) { return data.is_ad === 1;
return true;
}
return false;
} }
// 判断首页流 感兴趣的超话 // 判断首页流 感兴趣的超话
@ -205,34 +202,35 @@ function removeMain(data) {
if (checkJunkTopic(item)) { if (checkJunkTopic(item)) {
continue; continue;
} }
if (!isAd(item.data)) {
const src = item.data ?? item.status; // ⭐ 关键新增
if (!isAd(src)) {
// 无水印图片,但画质较低 // 无水印图片,但画质较低
if (item.data?.pic_infos) { if (src?.pic_infos) {
for (let key in item.data.pic_infos) { for (let key in src.pic_infos) {
let picture = item.data.pic_infos[key]; let picture = src.pic_infos[key];
let high_url = picture.original.url.replace("orh1080", "oslarge"); let high_url = picture.original.url.replace("orh1080", "oslarge");
// console.log('set high_url ' + high_url);
picture.largest.url = high_url; picture.largest.url = high_url;
picture.thumbnail.url = high_url; picture.thumbnail.url = high_url;
picture.large.url = high_url; picture.large.url = high_url;
picture.middleplus.url = high_url; picture.middleplus.url = high_url;
picture.mw2000.url = high_url; picture.mw2000.url = high_url;
picture.bmiddle.url = high_url; picture.bmiddle.url = high_url;
// console.log('set high_url success');
} }
} }
// 删除一条微博下面的图片广告(测试功能) // 删除一条微博下面的图片广告(测试功能)
if (item.data?.extend_info?.shopwindow_cards) { if (src?.extend_info?.shopwindow_cards) {
delete item.data.extend_info.shopwindow_cards delete src.extend_info.shopwindow_cards;
} }
if (item.data?.extend_info?.ad_semantic_brand) { if (src?.extend_info?.ad_semantic_brand) {
delete item.data.extend_info.ad_semantic_brand delete src.extend_info.ad_semantic_brand;
} }
if (item.data?.semantic_brand_params) { if (src?.semantic_brand_params) {
delete item.data.semantic_brand_params; delete src.semantic_brand_params;
} }
if (item.data?.common_struct) { if (src?.common_struct) {
delete item.data.common_struct; delete src.common_struct;
} }
newItems.push(item); newItems.push(item);
} }

View File

@ -8,7 +8,7 @@
#!tg-channel=https://t.me/inaisi #!tg-channel=https://t.me/inaisi
#!tag=去广告, 微博, fmz200 #!tag=去广告, 微博, fmz200
#!system=ios #!system=ios
#!date=2025-12-08 20:15:00 #!date=2025-12-16 21:33:23
[Rule] [Rule]
# 收集用户信息,上传用户日志的请求 # 收集用户信息,上传用户日志的请求