ycxhs01 发表于 2023-12-6 15:01:06

油猴加载本地js问题

本帖最后由 ycxhs01 于 2023-12-6 15:09 编辑

![谷歌浏览器.png](data/attachment/forum/202312/06/145855fhvhhhm61mocsh7h.png)

![火狐浏览器.png](data/attachment/forum/202312/06/145910ik44ykqsv4wn2kd8.png)

在谷歌浏览器中可以成功加载本地js, 火狐中没有"允许脚本访问本地文件"选项,加载不成功,
我想在火狐浏览器中加载本地的js有办法吗?
```
// ==UserScript==
// @name         Your Script Name
// @namespace    http://your.namespace.com
// @version      0.1
// @descriptionYour script description
// @author       Your Name
// @match      http://*/*
// @match      https://*/*
// @require      file:///C:/local/1.js
// @grant      none
// ==/UserScript==
```

李恒道 发表于 2023-12-6 15:52:03

FF我也一直没找出来方案
哥哥可以研究一下尝试出一个....
页: [1]
查看完整版本: 油猴加载本地js问题