mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
update weibo
This commit is contained in:
@ -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,不附带任何额外内容
|
||||||
|
|||||||
@ -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,不附带任何额外内容
|
||||||
|
|||||||
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断首页流 感兴趣的超话
|
// 判断首页流 感兴趣的超话
|
||||||
@ -197,49 +194,50 @@ function removeRepost(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function removeMain(data) {
|
function removeMain(data) {
|
||||||
if (!data.items) {
|
if (!data.items) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
let newItems = [];
|
let newItems = [];
|
||||||
for (let item of data.items) {
|
for (let item of data.items) {
|
||||||
if (checkJunkTopic(item)) {
|
if (checkJunkTopic(item)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!isAd(item.data)) {
|
|
||||||
// 无水印图片,但画质较低
|
const src = item.data ?? item.status; // ⭐ 关键新增
|
||||||
if (item.data?.pic_infos) {
|
|
||||||
for (let key in item.data.pic_infos) {
|
if (!isAd(src)) {
|
||||||
let picture = item.data.pic_infos[key];
|
// 无水印图片,但画质较低
|
||||||
let high_url = picture.original.url.replace("orh1080", "oslarge");
|
if (src?.pic_infos) {
|
||||||
// console.log('set high_url ' + high_url);
|
for (let key in src.pic_infos) {
|
||||||
picture.largest.url = high_url;
|
let picture = src.pic_infos[key];
|
||||||
picture.thumbnail.url = high_url;
|
let high_url = picture.original.url.replace("orh1080", "oslarge");
|
||||||
picture.large.url = high_url;
|
picture.largest.url = high_url;
|
||||||
picture.middleplus.url = high_url;
|
picture.thumbnail.url = high_url;
|
||||||
picture.mw2000.url = high_url;
|
picture.large.url = high_url;
|
||||||
picture.bmiddle.url = high_url;
|
picture.middleplus.url = high_url;
|
||||||
// console.log('set high_url success');
|
picture.mw2000.url = high_url;
|
||||||
}
|
picture.bmiddle.url = high_url;
|
||||||
}
|
}
|
||||||
// 删除一条微博下面的图片广告(测试功能)
|
}
|
||||||
if (item.data?.extend_info?.shopwindow_cards) {
|
// 删除一条微博下面的图片广告(测试功能)
|
||||||
delete item.data.extend_info.shopwindow_cards
|
if (src?.extend_info?.shopwindow_cards) {
|
||||||
}
|
delete src.extend_info.shopwindow_cards;
|
||||||
if (item.data?.extend_info?.ad_semantic_brand) {
|
}
|
||||||
delete item.data.extend_info.ad_semantic_brand
|
if (src?.extend_info?.ad_semantic_brand) {
|
||||||
}
|
delete src.extend_info.ad_semantic_brand;
|
||||||
if (item.data?.semantic_brand_params) {
|
}
|
||||||
delete item.data.semantic_brand_params;
|
if (src?.semantic_brand_params) {
|
||||||
}
|
delete src.semantic_brand_params;
|
||||||
if (item.data?.common_struct) {
|
}
|
||||||
delete item.data.common_struct;
|
if (src?.common_struct) {
|
||||||
}
|
delete src.common_struct;
|
||||||
newItems.push(item);
|
}
|
||||||
}
|
newItems.push(item);
|
||||||
}
|
}
|
||||||
data.items = newItems;
|
}
|
||||||
log('removeMain success');
|
data.items = newItems;
|
||||||
return data;
|
log('removeMain success');
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
function topicHandler(data) {
|
function topicHandler(data) {
|
||||||
|
|||||||
@ -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]
|
||||||
# 收集用户信息,上传用户日志的请求
|
# 收集用户信息,上传用户日志的请求
|
||||||
|
|||||||
Reference in New Issue
Block a user