Skip to content

Instantly share code, notes, and snippets.

@cute
Last active August 8, 2019 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cute/b9508378c53234fc5b9a71202afff29d to your computer and use it in GitHub Desktop.
Save cute/b9508378c53234fc5b9a71202afff29d to your computer and use it in GitHub Desktop.
weibo intl launch screen ad filter
/*
* 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