Skip to content

微博广告新url #115

@ZhiyuanMa2017

Description

@ZhiyuanMa2017

https://api.weibo.cn/2/profile/container_timeline
在浏览用户主页时插入到该用户微博timeline中,json样式如下:
image

同样有"mblogtype" : 1的标记,所以可以使用已有的方法来处理。

surge/wb_ad.js

Lines 279 to 285 in 613f9b2

function is_timeline_ad(mblog) {
if (!mblog) return false;
let promotiontype =
mblog.promotion && mblog.promotion.type && mblog.promotion.type == "ad";
let mblogtype = mblog.mblogtype && mblog.mblogtype == 1;
return promotiontype || mblogtype ? true : false;
}

Quantumult X里的用法:
^https://api.weibo.cn/2/profile/container_timeline url script-response-body https://raw.githubusercontent.com/ZhiyuanMa2017/Scripts/master/wb_ad_test_2.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions