This is a Webextension which enables websites to be loaded over the dat:// protocol on Firefox.
It uses the libdweb protocol handler to register the dat:// protocol,
and polyfills for node's net and dgram APIs using libdweb's TCPSocket and UDPSocket in order
to bundle the dat network implementation with the extension. More on how this works in this post
Install dependencies and build:
npm install
npm run build
Run with web-ext (requires Firefox Developer Edition or Firefox Nightly installed):
npm run start
You will need Firefox Developer Edition or Nightly. Other Firefox releases do not allow unsigned extensions to be installed.
- Go to
about:configand set the prefxpinstall.signatures.requiredtofalseandextensions.experiments.enabledtotrue. - Download the latest version of the extension.
- Go to
about:addonsand choose 'Install addon from file' from the cog menu in the top right, then browse to zip file you just downloaded. The browser will ask for permissions to install.
MIT.