Run Greasemonkey on html files located on the local filesystem?

前端 未结 2 1609
孤街浪徒
孤街浪徒 2020-12-24 12:43

I have an API documentation lying around on my Harddrive and to ease my workflow, I have written a simple script that modifies the page for my needs. I\'ve developed it usin

相关标签:
2条回答
  • 2020-12-24 12:58

    Since a couple of releases there are two new 'hidden' preferences:

    greasemonkey.aboutIsGreaseable
    greasemonkey.fileIsGreaseable

    The default value is "false". If you want Greasemonkey to run on file:/// urls, you have to set the second one to "true" (in about:config).

    Quoted from here:

    http://groups.google.com/group/greasemonkey-users/browse_thread/thread/ad67ee03ae92e3f0/1dc4075bdb53438a

    0 讨论(0)
  • 2020-12-24 13:00

    tampermonkey

    If you're here for the same reason I am, which is -> looking for the tampermonkey equivalent, (and you're using Chrome)... go to Chrome Preferences -> Extensions, aka chrome://extensions/, and you'll see Allow access to file URLs

    Allow access to file URLs

    0 讨论(0)
提交回复
热议问题