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 using express/nodejs

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

cd to where you want it installed, then:

npm install 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:

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')

Credits

Inspired by codediesel.

License

MIT

Keywords

FAQs

Package last updated on 22 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