阅读:7103回复:24
在Firefox 4.0的扩展右键菜单中添加”打开文件夹“(uc.js 脚本)
以前有一个扩展extension manager extended 可以在附加组件的右键菜单中添加”打开文件夹“菜单项,不过在 firefox 4.0 下失效了。今天花了好长时间,参考了好多资料,终于写出了一个uc.js脚本。这个功能,用扩展可能反而好写,用单纯的脚本反而不好写。这个脚本和我以前写的脚本,有本质区别,虽然代码并不多,但是却费了很长时间。
2012/10/15 ver 1.2 1. 修正了和扩展 https everywhere 的冲突 2. 这个脚本本身不支持“插件”和“脚本”,“插件”和“脚本”页面的右键菜单,现在隐藏这个菜单项了。 |
|
|
1楼#
发布于:2010-07-18 00:06
非常不错,多谢楼主了!
|
|
2楼#
发布于:2010-07-18 00:06
菜单oncommand居然给你绕出来了,哈哈,不容易啊
我试了半天不行,就改写成扩展了,的确方便很多 nsIFile.append好用,不用考虑平台差异.... 不过好像 reveal()在*nix-ish系统上没反应,有Bug-_- Note: launch() and reveal() are currently (as of 2007/03/14, FX3.0, Gecko 1.9) only implemented for Windows, MacOS X, BeOS, and OS/2. On *nix-ish systems like Linux, BSDs, Solaris, or similar, both of these functions have no effect; instead they immediately return NS_ERROR_FAILURE. See bug 67001 for further information. To cover these systems as well you might want to consider the workaround from the Firefox Download Manager. For some "inspiration" see downloads.js in SeaMonkey. To run an executable you can use nsIProcess instead. |
|
|
3楼#
发布于:2010-07-18 00:06
辛苦啦 脚本确实比较方便啦 感谢!!
|
|
|
4楼#
发布于:2010-07-18 00:06
Win7正常
XP下似乎不起作用 |
|
5楼#
发布于:2010-07-18 00:06
xp下的确不起作用
|
|
6楼#
发布于:2010-07-18 00:06
刚刚在虚拟机的WinXP下试了一下,没有问题。不会是楼上二位的UserChrome.JS扩展有问题吧。
|
|
7楼#
发布于:2010-07-18 00:06
XP下 通过"工具"->"附加组件"打开 脚本不起作用
而通过"about:addons"直接在地址栏打开 脚本起作用 |
|
8楼#
发布于:2010-07-18 00:06
呃 刚发现Win7下也一样
只能通过"about:addons"直接在地址栏打开 脚本才起作用 |
|
9楼#
发布于:2010-07-18 00:06
我都是选择菜单“工具”、“附加组件”打开的,没有发现问题啊。不起作用,指的是右键菜单中没有“打开文件夹”这个菜单项,还是点了“打开文件夹”没反应?
|
|
10楼#
发布于:2010-07-18 00:06
右键菜单中没有“打开文件夹”菜单项
|
|
11楼#
发布于:2010-07-18 00:06
刚刚在隔壁论坛,看到有人提起 all in one sidebar。楼上的不会也是安装了 all in one sidebar 吧。这个脚本拦截的是网页内容,all in one sidebar 中的附加组件,已经不是网页了,所以会有冲突,脚本会无效。
|
|
12楼#
发布于:2010-07-18 00:06
我在Win7下都正常-_-
可能是userChrome.js不同造成的 |
|
|
13楼#
发布于:2010-07-18 00:06
|
|
|
14楼#
发布于:2010-07-18 00:06
pcxfirefox:我用了这个版本 HTTPS Everywhere 在 AMO 上沒有耶 NoScript 也有強制和不強制 HTTPS 的功能 |
|
|
上一页
下一页