Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect to dat website if available #43

Open
wuniversales opened this issue Feb 18, 2020 · 2 comments
Open

Redirect to dat website if available #43

wuniversales opened this issue Feb 18, 2020 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@wuniversales
Copy link

For example, give the option to automatically redirect from

https://beakerbrowser.com/

To your Dat website

dat: //beakerbrowser.com/

@sammacbeth
Copy link
Owner

A simple version of this should be easy to implement. The availability of a dat version of a site is currently detected here: https://github.com/sammacbeth/dat-fox/blob/master/background/page-action.js#L12 . If a redirect is forced there to the dat url, it will be from then on loaded over dat. This feature could be toggled via a checkbox on the settings page.

We may also need to consider how to revert to HTTP if the dat version is unavailable. We could add a button in the page action to do that.

I'd take a PR for these changes if someone wanted to jump on it.

@sammacbeth sammacbeth added enhancement New feature or request good first issue Good for newcomers labels Feb 19, 2020
@da2x
Copy link
Contributor

da2x commented Mar 31, 2020

We may also need to consider how to revert to HTTP if the dat version is unavailable. We could add a button in the page action to do that.

Maybe do the reverse? Start loading it in the background and only redirect from HTTP to Dat when it’s verified that Dat is working. Sudden redirects while you’re busy reading a page isn’t a pleasant UX. Maybe wait until the next pageview and redirect only for cached dat-dns responses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants