【问题标题】:Matching just the root/home page in Tampermonkey / Greasemonkey?仅匹配 Tampermonkey / Greasemonkey 中的根/主页?
【发布时间】:2019-01-28 05:31:12
【问题描述】:

我只想匹配这个特定的链接https://google.com/,我不希望它匹配其他任何东西。

我试过了:

// @match       *https://google.com/*

例如,我不希望它匹配 https://google.com/images 之类的内容。

我该怎么做?

【问题讨论】:

    标签: greasemonkey userscripts tampermonkey


    【解决方案1】:

    请参阅the Match Patterns documentation

    只需使用:

    // @match    https://google.com
    

    【讨论】:

      猜你喜欢
      • 2014-01-08
      • 1970-01-01
      • 1970-01-01
      • 2013-12-26
      • 1970-01-01
      • 2018-05-15
      • 1970-01-01
      • 1970-01-01
      • 2019-06-19
      相关资源
      最近更新 更多