Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jaybrown/ipredirect
- Owner: JayBrown
- License: mit
- Created: 2017-05-09T21:28:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T20:14:09.000Z (over 7 years ago)
- Last Synced: 2024-10-29T05:34:32.510Z (17 days ago)
- Topics: browser, chrome, firefox, go-ipfs, greasemonkey, ipfs, ipns, javascript, localhost, opera, redirect, safari, tampermonkey, userscript
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
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.