Coder Social home page Coder Social logo

strogo / ipfs-firefox-addon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipfs/ipfs-companion

0.0 2.0 0.0 472 KB

Firefox addon that provides transparent access to IPFS resources via local HTTP2IPFS gateway

Home Page: https://addons.mozilla.org/en-US/firefox/addon/ipfs-gateway-redirect/

License: Creative Commons Zero v1.0 Universal

JavaScript 96.67% Shell 3.33%

ipfs-firefox-addon's Introduction

ipfs-firefox-addon

Latest release Build Status

Firefox addon that provides transparent access to IPFS resources via local HTTP2IPFS gateway.

If you are using Chrome or Chromium, check ipfs-chrome-extension instead.

screenshot v1.2.0

Features

  • Clicking on the addon icon toggles redirection
  • Requests to https?://<public_gateway>/(ipfs|ipns)/$RESOURCE
    are replaced with http://127.0.0.1:8080/(ipfs|ipns)/$RESOURCE
  • Custom gateway host and port can be changed at
    about:addons → Extensions → IPFS Gateway Redirect → Preferences
  • List of public gateways can be customized too,
    default is ipfs.io with second being the legacy gateway.ipfs.io
  • Requests made via custom protocols are routed to the active gateway (public or custom):
    • (ipfs|ipns):/*$RESOURCE
    • fs:/*(ipfs|ipns)/$RESOURCE
  • Context menu under right click on a page from custom gateway:
    • Copy canonical IPFS address
    • Copy shareable URL to resource at a default public gateway (first one on public gateway list)

How to install

The easiest way is to install from addons.mozilla.org.
It will guarantee automatic updates to version reviewed by Mozilla community.

It is also possible to manually build XPI from the latest relase sources, however offical Firefox builds do not accept unsigned XPIs anymore.

Please read SECURITY.md if you want to perform quick security audit BEFORE installation.

TROUBLESHOOTING

Rule to work with NoScript with ABE enabled

By default NoScript breaks this addon by blocking assets loaded from IPFS Gateway running on localhost.
To make it work, one needs to extend the SYSTEM Rulset and prepend it with IPFS whitelist:

# Enable IPFS redirect to LOCAL
Site ^http://127.0.0.1:8080/(ipfs|ipns)*
Anonymize

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny

Feel free to modify it, but get familiar with ABE rule syntax first.

LICENSE

IPFS logo belongs to The IPFS Project and is licensed under a CC-BY-SA 3.0.

The add-on itself is released under CC0: to the extent possible under law, the author has waived all copyright and related or neighboring rights to this work, effectively placing it in the public domain.

ipfs-firefox-addon's People

Contributors

lidel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.