Zhiyuan Ma
Zhiyuan Ma
一个暂时可行的方法是直接把json里ads这个list清空。 Quantumult X里的用法是:^https://bootpreload.uve.weibo.com/v1/ad/preload url script-response-body https://raw.githubusercontent.com/ZhiyuanMa2017/Scripts/master/wb_ad_test_3.js 06/27/2024 updte: ^https://bootpreload.uve.weibo.com/v2/ad/preload url script-response-body https://raw.githubusercontent.com/ZhiyuanMa2017/Scripts/master/wb_ad_test_3.js
这个和下面的两种同时存在,都需要 https://api.weibo.cn/2/searchall 搜索页面的广告 这个url现在对应的json样式如下: https://github.com/yichahucha/surge/blob/613f9b278aaf2386d81cf0aa06da75d7b7861d2f/wb_ad.js#L17 https://github.com/yichahucha/surge/blob/613f9b278aaf2386d81cf0aa06da75d7b7861d2f/wb_ad.js#L99-L108 所以这个判断方式不起作用了,需要直接判断`obj.items[i].mblogtype` Quantumult X里的用法: ^https://api.weibo.cn/2/searchall url script-response-body https://raw.githubusercontent.com/ZhiyuanMa2017/Scripts/master/wb_ad_test_2.js
https://api.weibo.cn/2/statuses/extend 单条微博看评论的界面 这个url现在对应的json样式如下: 所以 https://github.com/yichahucha/surge/blob/613f9b278aaf2386d81cf0aa06da75d7b7861d2f/wb_ad.js#L7 https://github.com/yichahucha/surge/blob/613f9b278aaf2386d81cf0aa06da75d7b7861d2f/wb_ad.js#L54-L57 应该改成`obj.head_cards`就可以了 Quantumult X里的用法: ^https://api.weibo.cn/2/statuses/extend url script-response-body https://raw.githubusercontent.com/ZhiyuanMa2017/Scripts/master/wb_ad_test_4.js
https://api.weibo.cn/2/statuses/repost_timeline 单条微博看转发的页面 对应json: ```js if (obj.reposts && obj.reposts.length > 0) { let i = obj.reposts.length; while (i--) { if (obj.reposts[i].mblogtype && obj.reposts[i].mblogtype == 1) { obj.reposts.splice(i, 1); } } }...
https://api.weibo.cn/2/searchall 搜索页面的广告 对应json: 现在需要判断 `obj.items[i].items[i].data`, 可参考我的js: https://github.com/ZhiyuanMa2017/Scripts/blob/master/wb_ad_test_6.js 我对`card_type` 和 `title_extra_text` 做判断,如果true就删掉最上层的items[i] 对于 https://api.weibo.cn/2/searchall ,这种样式的json和上面提到的json同时存在,有两种返回结果,现在我的做法: ```js if (obj.items && obj.items.length > 0) { let i = obj.items.length; while (i--) { if...