您必须使用noscript作者称为“ ABE”的功能,可通过以下方式访问 noscript options->advanced->ABE
语法如下所示:
# comment
# .example.com includes example.com and subdomains of example.com
# example.com includes example.com but excludes its subdomains
#Allow akamaihd scripts and objects to be included only from select hosts
Site .akamaihd.net
Accept from .twitter.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
Site .akamai.net
Accept from github.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
Site .googleusercontent.com
Accept from .picasaweb.google.com .translate.google.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
在您的情况下,您可能需要以下内容:
Site .youtube.com .ytimg.com
Accept from .youtube.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
如果您还想启用Youtube的评论和其他社交功能,则需要:
Site .google.com .googleapis.com .youtube.com .ytimg.com
Accept from .youtube.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
有关更多信息,请参见Noscript:ABE文档: