Skip to content

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

License

Notifications You must be signed in to change notification settings

JayBrown/IPRedirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipredirect-platform-cross ipredirect-code-js ipredirect-ipfs ipredirect-license

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.

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.

You should also keep an eye on the evolving IPFS browser extensions project; a userscript solution like this is only necessary, as long as no full-fledged browser extensions have been released.