How to include Local htm pages in a Tampermonkey script?

蓝咒 提交于 2019-12-02 02:24:14

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!