This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN,ns.itunes.apple.com,REJECT | |
DOMAIN,appldnld.apple.com,REJECT | |
DOMAIN,mesu.apple.com,REJECT | |
DOMAIN,xp.apple.com,REJECT | |
DOMAIN,gdmf.apple.com,REJECT | |
DOMAIN-SUFFIX,iadsdk.apple.com,REJECT | |
DOMAIN-SUFFIX,ads.internal.unity3d.com,REJECT | |
DOMAIN-SUFFIX,ads.prd.ie.internal.unity3d.com,REJECT | |
DOMAIN-SUFFIX,unityads.unity3d.com,REJECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Loon response body rewrite: remove Douyin aweme_list ads | |
* 说明:把这个脚本绑定到对应的 response 脚本规则上(匹配 https://www.douyin.com/aweme/v1/web/tab/feed* 的 response)。 | |
*/ | |
console.log("[douyin-remove-ads] script start"); | |
try { | |
// $response 由 Loon 提供(响应场景),body 通常是已解码的字符串 | |
if (typeof $response === "undefined" || typeof $response.body === "undefined") { |