Zeronet: Register handler for Zeronet (`zeronet:`)

Created on 22 Feb 2018  路  9Comments  路  Source: HelloZeroNet/ZeroNet

Has Zeronet an URI scheme defined ?

I don't seem to have anything register on my system. Could be a nice feature to have. It would behave like magnet link for Bittorrent and start zeronet automatically when clicking on a zeronet:ADDRESS link.

Most helpful comment

It'd be nice to have urls finally standardized. I tried making some tools for the variety of methods people use: zero://, http://zero/, etc. Having something built in would be perfect.

All 9 comments

most of the custom scripts floating around for that use zero: as the scheme name. i have a .desktop file and shell script floating around somewhere for use on freedesktop systems; i'll see if i can't find it

EDIT: the scripts are linked in this thread on zerome: http://localhost:43110/Me.ZeroNetwork.bit/?Post/12h51ug6CcntU2aiBjhP8Ns2e5VypbWWtv/1NWh3WAty57FH8at1WtrZigMrdhrDkuPzh/1500274650
You'll need to have KaffieHub downloaded to see the thread

It'd be nice to have urls finally standardized. I tried making some tools for the variety of methods people use: zero://, http://zero/, etc. Having something built in would be perfect.

thinking about it, it should be possible for 0net to just replace links in-place when serving them so no external tools are needed. probably possible to make it user-configurable, too.

AFAIK replacing links doesn't really work that well, especially on dynamic sites and such that generate URLs through javascript. A few sites already do the adjustment, but it isn't clear what it adjusts and detects, making it even more of a pain.

The problem I see with standardizing zero:// is how would proxies work. If local, addresses use zero://[address], would proxies have to use zero://[proxy url]/[address] or keep what they are currently doing? For both of those, urls are still going to be messed up for proxies. Unless there's a way to capture any url change from a website to detect whether they are going to a url prefixed with "zero://", and then convert it to the correct url for the proxy.

It would work like this:
If you visit a proxy or open 127.0.0.1:43110 for the first time, then it will have a button, notification or anything that allow you to make that site as a handler of zero://

Problems:

  • Works in Firefox, but it's just a redirect to the proxy / local client
  • For some reason it does not works in chrome. (not even web+zero://)
  • Need no modify the OS to make it system wide
  • Forums and other places does not turns it to clickable links

Well if it's built into zeronet itself it should be able to be selected to open with. That's how stuff is usually done. Kind of like how steam links open the page within steam itself.

There are a few related issues about URL scheme and handler (#83, #266, #1295). I posted my idea about this in https://github.com/HelloZeroNet/ZeroNet/issues/83#issuecomment-489426817.

i think zeronet:// is deprecated and zero:// is the main one - close the issue?
@rllola @HelloZeroNet

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wigy-opensource-developer picture wigy-opensource-developer  路  4Comments

yurkobb picture yurkobb  路  3Comments

DaniellMesquita picture DaniellMesquita  路  3Comments

mkg20001 picture mkg20001  路  3Comments

sergei-bondarenko picture sergei-bondarenko  路  3Comments