Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaybrown/ipredirect

Userscript to redirect IPFS and IPNS addresses to localhost in the browser
https://github.com/jaybrown/ipredirect

browser chrome firefox go-ipfs greasemonkey ipfs ipns javascript localhost opera redirect safari tampermonkey userscript

Last synced: 9 days ago
JSON representation

Userscript to redirect IPFS and IPNS addresses to localhost in the browser

Awesome Lists containing this project

README

        

![ipredirect-platform-cross](https://img.shields.io/badge/platform-cross--platform-lightgrey.svg)
![ipredirect-code-js](https://img.shields.io/badge/code-JavaScript-yellow.svg)
[![ipredirect-ipfs](https://img.shields.io/badge/dependency-ipfs%200.4.9-green.svg)](https://ipfs.io)
[![ipredirect-license](http://img.shields.io/badge/license-MIT+-blue.svg)](https://github.com/JayBrown/IPRedirect/blob/master/license.md)

# IPRedirect
**IPRedirect** (short for **interplanetary redirect**), a JavaScript to redirect IPFS and IPNS addresses to localhost in your browser.

Install the userscript with e.g. [**Tampermonkey**](http://tampermonkey.net).

The script presupposes that your localhost IPFS port has been set to 8080. If not, you need to manually edit the port number in line 17 of the script.

The script determines, if your IPFS node is running. If not, it won't redirect, and instead open the URL as is.

You will need at least **ipfs v0.4.9** for redirects to work on e.g. the [snapshot of the **Turkish Wikipedia**](https://ipfs.io/ipns/QmVH1VzGBydSfmNG7rmdDjAeBZ71UVeEahVbNpFQtwZK8W/wiki/Anasayfa.html).

You should also keep an eye on the evolving [IPFS browser extensions project](https://github.com/ipfs/in-web-browsers); a userscript solution like this is only necessary, as long as no full-fledged browser extensions have been released.