- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在制作一个内容脚本,它对谷歌搜索结果网页做一些事情。
manifest.json
中的以下行无效。
"matches": [ "https://www.google.*/*" ]
由于 manifest.json 中的上述行导致的错误是:
Invalid value for 'content_scripts[0].matches[0]': Invalid host wildcard.
我想在 google.com、google.co.in、google.de 等各种域上运行脚本。我该如何实现?
最佳答案
match pattern 的 TLD 中不允许使用通配符.
Google 已发布 a list of supported domains .每个域都放在单独的行中,看起来像 .google.com
。您可以使用此列表生成有效的匹配模式,例如(例如,我使用 www
作为子域):
"matches": [
"http://www.google.com/*", "https://www.google.com/*",
"http://www.google.ad/*", "https://www.google.ad/*",
"http://www.google.ae/*", "https://www.google.ae/*",
"http://www.google.com.af/*", "https://www.google.com.af/*",
"http://www.google.com.ag/*", "https://www.google.com.ag/*",
"http://www.google.com.ai/*", "https://www.google.com.ai/*",
"http://www.google.am/*", "https://www.google.am/*",
"http://www.google.co.ao/*", "https://www.google.co.ao/*",
"http://www.google.com.ar/*", "https://www.google.com.ar/*",
"http://www.google.as/*", "https://www.google.as/*",
"http://www.google.at/*", "https://www.google.at/*",
"http://www.google.com.au/*", "https://www.google.com.au/*",
"http://www.google.az/*", "https://www.google.az/*",
"http://www.google.ba/*", "https://www.google.ba/*",
"http://www.google.com.bd/*", "https://www.google.com.bd/*",
"http://www.google.be/*", "https://www.google.be/*",
"http://www.google.bf/*", "https://www.google.bf/*",
"http://www.google.bg/*", "https://www.google.bg/*",
"http://www.google.com.bh/*", "https://www.google.com.bh/*",
"http://www.google.bi/*", "https://www.google.bi/*",
"http://www.google.bj/*", "https://www.google.bj/*",
"http://www.google.com.bn/*", "https://www.google.com.bn/*",
"http://www.google.com.bo/*", "https://www.google.com.bo/*",
"http://www.google.com.br/*", "https://www.google.com.br/*",
"http://www.google.bs/*", "https://www.google.bs/*",
"http://www.google.co.bw/*", "https://www.google.co.bw/*",
"http://www.google.by/*", "https://www.google.by/*",
"http://www.google.com.bz/*", "https://www.google.com.bz/*",
"http://www.google.ca/*", "https://www.google.ca/*",
"http://www.google.cd/*", "https://www.google.cd/*",
"http://www.google.cf/*", "https://www.google.cf/*",
"http://www.google.cg/*", "https://www.google.cg/*",
"http://www.google.ch/*", "https://www.google.ch/*",
"http://www.google.ci/*", "https://www.google.ci/*",
"http://www.google.co.ck/*", "https://www.google.co.ck/*",
"http://www.google.cl/*", "https://www.google.cl/*",
"http://www.google.cm/*", "https://www.google.cm/*",
"http://www.google.cn/*", "https://www.google.cn/*",
"http://www.google.com.co/*", "https://www.google.com.co/*",
"http://www.google.co.cr/*", "https://www.google.co.cr/*",
"http://www.google.com.cu/*", "https://www.google.com.cu/*",
"http://www.google.cv/*", "https://www.google.cv/*",
"http://www.google.com.cy/*", "https://www.google.com.cy/*",
"http://www.google.cz/*", "https://www.google.cz/*",
"http://www.google.de/*", "https://www.google.de/*",
"http://www.google.dj/*", "https://www.google.dj/*",
"http://www.google.dk/*", "https://www.google.dk/*",
"http://www.google.dm/*", "https://www.google.dm/*",
"http://www.google.com.do/*", "https://www.google.com.do/*",
"http://www.google.dz/*", "https://www.google.dz/*",
"http://www.google.com.ec/*", "https://www.google.com.ec/*",
"http://www.google.ee/*", "https://www.google.ee/*",
"http://www.google.com.eg/*", "https://www.google.com.eg/*",
"http://www.google.es/*", "https://www.google.es/*",
"http://www.google.com.et/*", "https://www.google.com.et/*",
"http://www.google.fi/*", "https://www.google.fi/*",
"http://www.google.com.fj/*", "https://www.google.com.fj/*",
"http://www.google.fm/*", "https://www.google.fm/*",
"http://www.google.fr/*", "https://www.google.fr/*",
"http://www.google.ga/*", "https://www.google.ga/*",
"http://www.google.ge/*", "https://www.google.ge/*",
"http://www.google.gg/*", "https://www.google.gg/*",
"http://www.google.com.gh/*", "https://www.google.com.gh/*",
"http://www.google.com.gi/*", "https://www.google.com.gi/*",
"http://www.google.gl/*", "https://www.google.gl/*",
"http://www.google.gm/*", "https://www.google.gm/*",
"http://www.google.gp/*", "https://www.google.gp/*",
"http://www.google.gr/*", "https://www.google.gr/*",
"http://www.google.com.gt/*", "https://www.google.com.gt/*",
"http://www.google.gy/*", "https://www.google.gy/*",
"http://www.google.com.hk/*", "https://www.google.com.hk/*",
"http://www.google.hn/*", "https://www.google.hn/*",
"http://www.google.hr/*", "https://www.google.hr/*",
"http://www.google.ht/*", "https://www.google.ht/*",
"http://www.google.hu/*", "https://www.google.hu/*",
"http://www.google.co.id/*", "https://www.google.co.id/*",
"http://www.google.ie/*", "https://www.google.ie/*",
"http://www.google.co.il/*", "https://www.google.co.il/*",
"http://www.google.im/*", "https://www.google.im/*",
"http://www.google.co.in/*", "https://www.google.co.in/*",
"http://www.google.iq/*", "https://www.google.iq/*",
"http://www.google.is/*", "https://www.google.is/*",
"http://www.google.it/*", "https://www.google.it/*",
"http://www.google.je/*", "https://www.google.je/*",
"http://www.google.com.jm/*", "https://www.google.com.jm/*",
"http://www.google.jo/*", "https://www.google.jo/*",
"http://www.google.co.jp/*", "https://www.google.co.jp/*",
"http://www.google.co.ke/*", "https://www.google.co.ke/*",
"http://www.google.com.kh/*", "https://www.google.com.kh/*",
"http://www.google.ki/*", "https://www.google.ki/*",
"http://www.google.kg/*", "https://www.google.kg/*",
"http://www.google.co.kr/*", "https://www.google.co.kr/*",
"http://www.google.com.kw/*", "https://www.google.com.kw/*",
"http://www.google.kz/*", "https://www.google.kz/*",
"http://www.google.la/*", "https://www.google.la/*",
"http://www.google.com.lb/*", "https://www.google.com.lb/*",
"http://www.google.li/*", "https://www.google.li/*",
"http://www.google.lk/*", "https://www.google.lk/*",
"http://www.google.co.ls/*", "https://www.google.co.ls/*",
"http://www.google.lt/*", "https://www.google.lt/*",
"http://www.google.lu/*", "https://www.google.lu/*",
"http://www.google.lv/*", "https://www.google.lv/*",
"http://www.google.com.ly/*", "https://www.google.com.ly/*",
"http://www.google.co.ma/*", "https://www.google.co.ma/*",
"http://www.google.md/*", "https://www.google.md/*",
"http://www.google.me/*", "https://www.google.me/*",
"http://www.google.mg/*", "https://www.google.mg/*",
"http://www.google.mk/*", "https://www.google.mk/*",
"http://www.google.ml/*", "https://www.google.ml/*",
"http://www.google.mn/*", "https://www.google.mn/*",
"http://www.google.ms/*", "https://www.google.ms/*",
"http://www.google.com.mt/*", "https://www.google.com.mt/*",
"http://www.google.mu/*", "https://www.google.mu/*",
"http://www.google.mv/*", "https://www.google.mv/*",
"http://www.google.mw/*", "https://www.google.mw/*",
"http://www.google.com.mx/*", "https://www.google.com.mx/*",
"http://www.google.com.my/*", "https://www.google.com.my/*",
"http://www.google.co.mz/*", "https://www.google.co.mz/*",
"http://www.google.com.na/*", "https://www.google.com.na/*",
"http://www.google.com.nf/*", "https://www.google.com.nf/*",
"http://www.google.com.ng/*", "https://www.google.com.ng/*",
"http://www.google.com.ni/*", "https://www.google.com.ni/*",
"http://www.google.ne/*", "https://www.google.ne/*",
"http://www.google.nl/*", "https://www.google.nl/*",
"http://www.google.no/*", "https://www.google.no/*",
"http://www.google.com.np/*", "https://www.google.com.np/*",
"http://www.google.nr/*", "https://www.google.nr/*",
"http://www.google.nu/*", "https://www.google.nu/*",
"http://www.google.co.nz/*", "https://www.google.co.nz/*",
"http://www.google.com.om/*", "https://www.google.com.om/*",
"http://www.google.com.pa/*", "https://www.google.com.pa/*",
"http://www.google.com.pe/*", "https://www.google.com.pe/*",
"http://www.google.com.ph/*", "https://www.google.com.ph/*",
"http://www.google.com.pk/*", "https://www.google.com.pk/*",
"http://www.google.pl/*", "https://www.google.pl/*",
"http://www.google.pn/*", "https://www.google.pn/*",
"http://www.google.com.pr/*", "https://www.google.com.pr/*",
"http://www.google.ps/*", "https://www.google.ps/*",
"http://www.google.pt/*", "https://www.google.pt/*",
"http://www.google.com.py/*", "https://www.google.com.py/*",
"http://www.google.com.qa/*", "https://www.google.com.qa/*",
"http://www.google.ro/*", "https://www.google.ro/*",
"http://www.google.ru/*", "https://www.google.ru/*",
"http://www.google.rw/*", "https://www.google.rw/*",
"http://www.google.com.sa/*", "https://www.google.com.sa/*",
"http://www.google.com.sb/*", "https://www.google.com.sb/*",
"http://www.google.sc/*", "https://www.google.sc/*",
"http://www.google.se/*", "https://www.google.se/*",
"http://www.google.com.sg/*", "https://www.google.com.sg/*",
"http://www.google.sh/*", "https://www.google.sh/*",
"http://www.google.si/*", "https://www.google.si/*",
"http://www.google.sk/*", "https://www.google.sk/*",
"http://www.google.com.sl/*", "https://www.google.com.sl/*",
"http://www.google.sn/*", "https://www.google.sn/*",
"http://www.google.so/*", "https://www.google.so/*",
"http://www.google.sm/*", "https://www.google.sm/*",
"http://www.google.st/*", "https://www.google.st/*",
"http://www.google.com.sv/*", "https://www.google.com.sv/*",
"http://www.google.td/*", "https://www.google.td/*",
"http://www.google.tg/*", "https://www.google.tg/*",
"http://www.google.co.th/*", "https://www.google.co.th/*",
"http://www.google.com.tj/*", "https://www.google.com.tj/*",
"http://www.google.tk/*", "https://www.google.tk/*",
"http://www.google.tl/*", "https://www.google.tl/*",
"http://www.google.tm/*", "https://www.google.tm/*",
"http://www.google.tn/*", "https://www.google.tn/*",
"http://www.google.to/*", "https://www.google.to/*",
"http://www.google.com.tr/*", "https://www.google.com.tr/*",
"http://www.google.tt/*", "https://www.google.tt/*",
"http://www.google.com.tw/*", "https://www.google.com.tw/*",
"http://www.google.co.tz/*", "https://www.google.co.tz/*",
"http://www.google.com.ua/*", "https://www.google.com.ua/*",
"http://www.google.co.ug/*", "https://www.google.co.ug/*",
"http://www.google.co.uk/*", "https://www.google.co.uk/*",
"http://www.google.com.uy/*", "https://www.google.com.uy/*",
"http://www.google.co.uz/*", "https://www.google.co.uz/*",
"http://www.google.com.vc/*", "https://www.google.com.vc/*",
"http://www.google.co.ve/*", "https://www.google.co.ve/*",
"http://www.google.vg/*", "https://www.google.vg/*",
"http://www.google.co.vi/*", "https://www.google.co.vi/*",
"http://www.google.com.vn/*", "https://www.google.com.vn/*",
"http://www.google.vu/*", "https://www.google.vu/*",
"http://www.google.ws/*", "https://www.google.ws/*",
"http://www.google.rs/*", "https://www.google.rs/*",
"http://www.google.co.za/*", "https://www.google.co.za/*",
"http://www.google.co.zm/*", "https://www.google.co.zm/*",
"http://www.google.co.zw/*", "https://www.google.co.zw/*",
"http://www.google.cat/*", "https://www.google.cat/*"
]
可以使用*://
代替http://
和https://
。请注意,存在更多搜索门户:
“https://encrypted.google.com/*”
“https://ipv6.google.com/*”
关于javascript - 支持内容脚本中的所有谷歌域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11069644/
我的 processmaker 安装遇到了一些问题。我正在尝试使用本指南 [url]http://wiki.processmaker.com/index.php/ProcessMaker_Ubuntu
我正在使用 ShareKit。发送 SMS 消息使用 MFMessageComposeViewController,用户看到标题“文本”。我想将该标题更改为更能反射(reflect)实际可用内容的内容
我需要在我的一个针对 Gingerbread 的 Android 应用程序中使用操作栏和 fragment 的组合。所以我使用了 v7 支持库中的操作栏和 v4 支持库中的 fragment ,并使用
我明白为什么浏览器 vendor 不想帮助我阻止他们的 UI 线程。但是,我不明白为什么会有: Web Workers 中没有 sleep (2) 没有同步 WebSockets API 有一个syn
最近我的组织正在考虑使用 Docker。我们组使用的是cloudera CDH 5.1.2。 1) cloudera 是否与 Docker 容器兼容?2) docker 和cloudera 组合是否存
我正在尝试通过编译在 Mac 上安装 rsync 3.2.3。但是,我想安装所有功能。为此,它需要一些库,此处 ( https://download.samba.org/pub/rsync/INSTA
我一直在使用 PyDev 成功运行 nose 测试,并想试试 nose2。 所以我安装了它 pip install nose2 复制/粘贴来自 http://nose2.info/ 的示例代码进入名为
我想知道 LLVM 中是否有任何函数/方法可以在 LLVM IR 中添加 Open-MP 构造。 llvm-3.0 是否仍然支持 OpenMP 指令? 最佳答案 OpenMP 是一种高级语言扩展。因此
我对 CUDA 编程非常陌生。我正在浏览 SDK 附带的示例。我能够编译代码,但是当我运行它时,出现以下错误: "clock.cu(177) : CUDA Runtime API error 38:
RStudio 是用于 R 开发的出色 IDE。我想知道是否有任何方法可以很好地支持 HiDPI 分辨率? 我目前有 13 英寸显示器和 3200x1800 分辨率,甚至很难阅读 RStudio 选项
我正在寻找一种有助于为 Django 项目提供 RDF 支持的工具。 到目前为止,我发现了两个: django-rdf - 最后一次修改是在 4 年前,所以它看起来像是一个死项目。 djubby -
我刚刚尝试了一些 JS 核心原则,发现引擎评估链接的关系运算符而不会引发错误。相反,他们以我自己无法理解的方式进行评估。 console.log(1 4 > 3 > 2 > 1); //false,
我知道 etexteditor 和 vim/emacs。 是否有任何其他 Windows 编辑器支持类似 textmate 的片段(例如,您编写触发词,按 Tab,它更改为某些内容,再次按 Tab,它
我正在尝试找出验证给定集群的网络策略配置的最佳方法。 According to the documentation Network policies are implemented by the ne
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
Z3 会支持 AUFBV 吗? 对于以下脚本: (set-logic AUFBV) (declare-fun x () (_ BitVec 16)) (declare-const t (Array (
使用分部类编写 NUnit 测试的优缺点是什么? 我要开始了: 亲:可以测试私有(private)方法 缺点:TDD 不再可能了 还有什么? 最佳答案 缺点:要么您必须测试与您发布的版本不同的构建,要
它很容易(对于 90% 的 aop 特性)在没有任何语言本身支持的情况下做到这一点,就像大多数动态语言如 python 和 ruby 一样。然而,Dojo在 1.3.2 上直接支持它.最新版本发生
我在我的 android 应用程序中使用亚洲字符,我已经了解到某些字符无法显示,因为系统字体不支持它们。我查询了一个包含亚洲字符的数据库,并且经常检索到无法显示的标志。这些情况对我的应用程序来说通常不
你好,我想实现一个控件,我想在用户键入@字符时启用该控件,直到未填充运行文本中的空格为止,它应该显示用户列表,@符号后键入的文本应该显示基于键盘字符的建议,就像我们在上面看到的那样Twitter 或
我是一名优秀的程序员,十分优秀!