小编Sol*_*Sol的帖子

Greasemonkey可以使用file:// protocol吗?

我有一个简单的Greasemonkey脚本:

// ==UserScript== 
// @name hello
// @namespace http://www.webmonkey.com 
// @description A test of accessing documents using file:// protocol
// @include     http* file*
// @grant       none
// ==/UserScript==

alert("hi");
Run Code Online (Sandbox Code Playgroud)

只要URL具有以下形式,它就可以正常工作http://...如何让脚本在表单的URL上运行file://...

在"用户设置"部分中,我有http://*file://*作为包含的页面,在"脚本设置"部分中,我http* file*在"包含的页面"框中.

greasemonkey url-scheme filepath

8
推荐指数
1
解决办法
2362
查看次数

标签 统计

filepath ×1

greasemonkey ×1

url-scheme ×1