You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Companion will detect presence of [DNSLink](https://docs.ipfs.io/guides/concepts/dnslink/) in DNS records of visited websites and redirect HTTP request to a local gateway.
51
+
52
+
> `http://docs.ipfs.io`
53
+
> → `http://127.0.0.1:8080/ipns/docs.ipfs.io`
54
+
55
+
This means if you visit websites with a valid DNSLink (eg. http://docs.ipfs.io, http://ipld.io, http://libp2p.io, http://tr.wikipedia-on-ipfs.org) browser will load them from IPFS.
56
+
57
+
More details: [DNSLink Support in IPFS Companion](https://github.com/ipfs-shipyard/ipfs-companion/blob/master/docs/dnslink.md)
58
+
59
+
#### X-Ipfs-Path
60
+
61
+
Companion will upgrade transport to IPFS if the header is found in any HTTP response headers. This is a fallback for edge cases when IPFS path is not present in URL.
62
+
63
+
More details: [`x-ipfs-path` Header Support in IPFS Companion](https://github.com/ipfs-shipyard/ipfs-companion/blob/master/docs/x-ipfs-path-header.md)
64
+
65
+
#### Redirect Opt-Out
66
+
46
67
It is possible to opt-out from redirect by
47
68
a) suspending extension via global toggle
48
69
b) including `x-ipfs-companion-no-redirect` in the URL (as a [hash](https://ipfs.io/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR#x-ipfs-companion-no-redirect) or [query](https://ipfs.io/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR?x-ipfs-companion-no-redirect) parameter).
49
70
50
-
####IPFS API as `window.ipfs`
71
+
### IPFS API as `window.ipfs`
51
72
52
73
Your IPFS node is exposed as `window.ipfs` on every webpage.
53
74
Websites can detect if `window.ipfs` exists and opt-in to use it instead of creating their own `js-ipfs` node.
54
75
It saves system resources and battery (on mobile), avoids the overhead of peer discovery/connection, enables shared repository access and more!
55
76
Make sure to read our [notes on `window.ipfs`](https://github.com/ipfs-shipyard/ipfs-companion/blob/master/docs/window.ipfs.md), where we explain it in-depth and provide examples on how to use it your own dapp.
56
77
57
-
####Toggle IPFS Integrations
78
+
### Toggle IPFS Integrations
58
79
59
80
> 
60
81
61
82
The Browser Action pop-up provides a toggle for suspending all active IPFS integrations with a single click.
62
83
63
-
####IPFS Status and Context Actions
84
+
### IPFS Status and Context Actions
64
85
65
86
- IPFS API and Gateway status
66
87
- Add local (quick upload) or remote files (context menu) to IPFS with option to preserve filename
@@ -71,7 +92,7 @@ The Browser Action pop-up provides a toggle for suspending all active IPFS integ
71
92
- Copy canonical IPFS address
72
93
- Copy shareable URL to resource at preferred public gateway
73
94
74
-
####Experiments!
95
+
### Experiments!
75
96
76
97
_(some are disabled by default, use Preferences screen to enable)_
77
98
@@ -80,9 +101,7 @@ _(some are disabled by default, use Preferences screen to enable)_
80
101
-`ipns://$cid_or_fqdn`
81
102
-`dweb:/ipfs/$cid`
82
103
-`dweb:/ipns/$cid_or_fqdn`
83
-
- Detect domains with [dnslink](https://github.com/jbenet/go-dnslink) in DNS TXT record and load them from IPFS
84
104
- Make plaintext IPFS links clickable ([demo](https://ipfs.io/ipfs/bafybeidvtwx54qr44kidymvhfzefzxhgkieigwth6oswk75zhlzjdmunoy/linkify-demo.html))
85
-
- Mirror to IPFS by right click on any image or video
86
105
- Switch between _External_ HTTP API and _Embedded_ js-ipfs node. Read about differences at [docs/node-types](docs/node-types.md).
87
106
> [](https://github.com/ipfs-shipyard/ipfs-companion/blob/master/docs/node-types.md)
0 commit comments