How to include Local htm pages in a Tampermonkey script?

后端 未结 1 839
我寻月下人不归
我寻月下人不归 2021-01-23 06:07

The script below works on a normal webpage, but how I can make it work on local .htm files too? (When opened in the Chrome browser)

// ==UserSc         


        
相关标签:
1条回答
  • 2021-01-23 06:48

    First, on Chrome's extensions setting page (chrome://extensions/), make sure Tampermonkey has access to file URLs:

    Second, format the @include (or @match) with the correct number of slashes. It should almost always start with file:///.
    For example:

    // @include    file:///C:/Users/*.htm
    
    0 讨论(0)
提交回复
热议问题