تلاش سپورٹ

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

مزید سیکھیں

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.