VidHub iOS正式版上线了,欢迎下载体验。下载地址: https://apps.apple.com/cn/app/id1659622164
完全免费,欢迎体验在store留言点赞。
完全免费,欢迎体验在store留言点赞。
- 👍11
- ❤️2
- 🥰1
/root/lite-test/global/config/default.js 里 doh endpoints 为国内 DNS中国->美国 [UDP][200M][11159][vmess][ws][免流骚] 1
#!name=Reddit
#!desc=过滤推广, 关 NSFW 提示 @xream
[General]
force-http-engine-hosts = %APPEND% gql.reddit.com, gql-fed.reddit.com
[Script]
Reddit = type=http-response,pattern=^https?:\/\/gql(-fed)?\.reddit\.com,requires-body=1,max-size=0,timeout=30,script-path=reddit.js
[MITM]
hostname = %APPEND%, gql.reddit.com, gql-fed.reddit.com
② reddit.jslet body;
try {
body = JSON.parse($response.body.replace(/"isNsfw":true/g, '"isNsfw":false'))
if (body.data?.children?.commentsPageAds) {
body.data.children.commentsPageAds = []
}
for (const [k, v] of Object.entries(body.data)) {
if (v?.elements?.edges) {
body.data[k].elements.edges = v.elements.edges.filter(
i =>
!['AdPost'].includes(i?.node?.__typename) &&
!i?.node?.cells?.some(j => j?.__typename === 'AdMetadataCell') &&
!i?.node?.adPayload
);
}
}
} catch (e) {
console.log(e);
} finally {
$done(body ? { body: JSON.stringify(body) } : {});
}gql-fed.reddit.com 接口
现在知道也不算晚 的资讯#${encodeURIComponent(JSON.stringify({arg1: "1"}))}