This is a prototype browser extension which makes dat://
urls function in Firefox using a slightly
modified dat-gateway as a bridge to the dat network.
It aims to implement native-like dat support possible in Firefox. This means:
dat://
addresses and sites should work directly. While Webextensions protocol handlers are limited - we cannot show dat://
in the address bar on a loaded page - we can at least properly process the initial URL or link.http://localhost:3000/{hash}/path
. This has the effect of potentially breaking relative URLs on the page, and also preventing the web's cross-origin policies from preventing data leakage between sites. To fix this we have to make {hash}
the origin.Install dat-fox-helper
Install the extension from the Mozilla Addon Store
Visit a dat://
URL.
You can also build and run the extension locally. You will need a version of node greather that 7. nvm is recommended for installing node.
git clone https://github.com/sammacbeth/dat-fox.git
cd dat-fox
# install build dependencies
npm install
# build
npm run build
# if you want to watch for file changes
npm run serve
You can now load the addon
folder as a temporary addon in Firefox:
about:debugging
in Firefox.Load Temporary Addon
.addon
folder and chose any file in this folder.dat://{hash}
http://{hash}
dat://{hostname}
(using Dat Discovery)https
to dat
protocol for Dat-enabled sites.DatArchive
APIdat://
urls to a special handler domain (dat.redirect
), passing the full url.http://
URL with the dat key or hostname as the origin.