搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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.