搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Associate the .js filetype with Firefox Scratchpad

more options

I've been trying to look for the scratchpad executable so that when I double click a .js file, it opens the scratchpad with that file in it. I've looked in "%PROGRAMFILES%/Mozilla/Firefox" and "%APPDATA%/../local/Mozilla Firefox", but there were no useful .exe files.

I'm on Firefox 64 bit version 53.0, on Windows 10.

I know I can do "Shift+F4" to open the scratchpad when firefox is open, but then I have to navigate to the file in the open menu.

I've been trying to look for the scratchpad executable so that when I double click a .js file, it opens the scratchpad with that file in it. I've looked in "%PROGRAMFILES%/Mozilla/Firefox" and "%APPDATA%/../local/Mozilla Firefox", but there were no useful .exe files. I'm on Firefox 64 bit version 53.0, on Windows 10. I know I can do "Shift+F4" to open the scratchpad when firefox is open, but then I have to navigate to the file in the open menu.

所有回复 (1)

more options

The internal address of the Scratchpad is

chrome://devtools/content/scratchpad/scratchpad.xul

And you can launch a new Scratchpad from the command line using

firefox.exe -chrome "chrome://devtools/content/scratchpad/scratchpad.xul"

So possibly there is a way to pass the path to file using "%1" with that, but I'm not aware of a way to get Firefox to open it in the Scratchpad rather than in a separate window or tab.

Probably it needs to work the other way: send the .js files to Firefox, but somehow set Firefox to open .js files from disk in a new Scratchpad rather than a tab.