Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fireprox

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireprox

A simple proxy for MozRepl over HTTP GET using express/nodejs

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

A simple proxy for MozRepl over HTTP GET using express/nodejs, to control Firefox:

Any browser/client <--> fireprox <--> MozRepl <--> Firefox

I threw this together because I needed an easy way to programatically read the current url from Firefox into my javascript web application WhoDoTheyServe.com, but was unable to workaround browser security restrictions or get Firefox WebDriver to work reliably.

To Install and Run

To install globally:

npm install -g fireprox

To configure (optional):

export MOZREPL_HOST=<your MozRepl host name or ip, default=localhost>
export MOZREPL_PORT=<your MozRepl port, default=4242>
export FIREPROX_PORT=<Fireprox port, default=8080>

To start:

cd /usr/lib    (or wherever your global node_modules lives)
npm start fireprox

If all goes well you should see the MozRepl welcome message.

Usage

Point any browser/client to http://fireprox:8080/exec/COMMAND where:

fireprox:8080 is the nodejs server running fireprox

COMMAND is any MozRepl command

Examples

To get the firefox current url, browse to:

http://fireprox:8080/exec/content.location.href

To show ‘foo’ in an alert box, browse to:

http://fireprox:8080/exec/alert('foo')

(note you’ll need to manually close this alert before fireprox returns).

To configure for hosting MozRepl at sweep:5050 and fireprox on port 8181:

export MOZREPL_HOST=sweep
export MOZREPL_PORT=5050
export FIREPROX_PORT=8181

Credits

Inspired by codediesel.

License

MIT

Keywords

FAQs

Package last updated on 23 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc