Last active
August 8, 2019 08:18
-
-
Save cute/b9508378c53234fc5b9a71202afff29d to your computer and use it in GitHub Desktop.
weibo intl launch screen ad filter
This file contains 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
/* | |
* weibo intl launch screen ad filter | |
* @author Li Guangming | |
* | |
* add rule: DOMAIN,weibointl.api.weibo.com,DIRECT,script-filter | |
* | |
*/ | |
function scriptFilterExecute(args) { | |
if (args.url.indexOf('get_coopen_ads') > 0) { | |
var body = '{"data": {"ad_list": [], "display_ad": 0, }, "info": "", "retcode": 0 }'; | |
args.response('HTTP/1.1 200 OK\r\nContent-Type: application/json;chatset=utf-8\r\nContent-Length: ' + body.length + '\r\n\r\n' + body); | |
return false; | |
} | |
return null; | |
} | |
function scriptFilterFree(uuid) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment