-
-
Save Kyo628/e86576f5d83d5d779b542d34148f807f to your computer and use it in GitHub Desktop.
weibo intl launch screen ad filter
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
| /* | |
| * 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