dylanPowers / ipfs-chrome-extension

Access gateway.ipfs.io urls the way they were meant: from your locally running ipfs daemon
BSD 3-Clause "New" or "Revised" License
68 stars 9 forks source link

feature request: support `fs:/ipfs/...` URL scheme #7

Open Mithgol opened 8 years ago

Mithgol commented 8 years ago

URLs in form ipfs:Qme3pKkedCfcebDmkZz5tU2suMjHP4EPi29NMNNxQrQzwy/done seem useful because they are relatively short (51 characters plus the length of the path such as /done).

For example, they won't be broken in the middle to be forcibly wrapped to the next line on a traditional (80 characters per line) terminal unless the path (after the hash) exceeds ≈28 characters. That's at least twice as good as the old 8.3 character limit.

They are also less likely to cause horizontal scrollbars in modern editors or HTML textareas.

Unfortunately, such short URLs are supported, as far as I can tell, only by the addon for Firefox.

Would this Chrome extension also support them? (In addition to the support of current http://gateway.ipfs.io/ipfs/ URLs are 23 characters longer than ipfs:.)

jbenet commented 8 years ago

see also https://github.com/ipfs/go-ipfs/issues/1678

Mithgol commented 8 years ago

Posted https://github.com/ipfs/go-ipfs/issues/1678#issuecomment-140153918 and https://github.com/ipfs/go-ipfs/issues/1678#issuecomment-140158406 there.

dylanPowers commented 8 years ago

Note that this extension does support inputting urls in the form /ipfs/Qme3pKkedCfcebDmkZz5tU2suMjHP4EPi29NMNNxQrQzwy/done. You just have to click the "Allow access to file URLs" option on the chrome://extensions page

Mithgol commented 8 years ago

The results of the discussion ipfs/go-ipfs#1678 seem to be the fs:/ipfs/... form, and thus I'll rename.