mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
update weibo_ads
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author fmz200
|
* @author fmz200
|
||||||
* @function 微博去广告
|
* @function 微博去广告
|
||||||
* @date 2025-07-30 14:30:17
|
* @date 2025-09-23 15:15:17
|
||||||
*/
|
*/
|
||||||
|
|
||||||
let url = $request.url;
|
let url = $request.url;
|
||||||
@ -12,6 +12,7 @@ try {
|
|||||||
// 1、首次点击发现按钮
|
// 1、首次点击发现按钮
|
||||||
if (url.includes("/search/finder?")) {
|
if (url.includes("/search/finder?")) {
|
||||||
console.log('进入发现页...');
|
console.log('进入发现页...');
|
||||||
|
resp_data.channelInfo.channels[0].titleInfo.style.selectTextColor = "#333333";
|
||||||
processPayload(resp_data.channelInfo.channels[0].payload);
|
processPayload(resp_data.channelInfo.channels[0].payload);
|
||||||
removeChannelsTabs(resp_data.channelInfo.channels);
|
removeChannelsTabs(resp_data.channelInfo.channels);
|
||||||
if (resp_data.header?.data?.items) {
|
if (resp_data.header?.data?.items) {
|
||||||
@ -181,6 +182,12 @@ function processPayload(payload) {
|
|||||||
if (!payload) {
|
if (!payload) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 删除搜索栏的“大家正在搜”
|
||||||
|
if (payload.loadedInfo?.searchBarContent) {
|
||||||
|
delete payload.loadedInfo.searchBarContent;
|
||||||
|
}
|
||||||
|
|
||||||
if (payload.items[0].items) {
|
if (payload.items[0].items) {
|
||||||
removeCommonAds(payload.items[0].items);
|
removeCommonAds(payload.items[0].items);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user