lbryio / open.lbry.com

A simple page that allows hotlinking content on the LBRY blockchain
https://open.lbry.io
3 stars 5 forks source link

Auto close tab/window feature? #16

Open tzarebczan opened 5 years ago

tzarebczan commented 5 years ago

After clicking on a open.lbry.io link, the browser tab stays open. This becomes more annoying when clicking multiple links (i.e. from subscription emails). Would it be possible to allow a setting to auto close the tab/window, or prompt the user to?

finer9 commented 5 years ago

I just determined this is also causing GA session stats to be inflated for open.lbry.com - the page staying open in the background is the cause. Simply closing it would solve this.

ICTman1076 commented 4 years ago

Is this still needed?

tzarebczan commented 4 years ago

Would be awesome, but some brief research into this recently showed it may not be possible to close the window. Feel free to dig around to see if there's a way!

ICTman1076 commented 4 years ago

I’ve found something in Javascript that may be able to do as required. What behaviour are you looking for exactly – just exit as soon as it’s redirected, or wait a bit and let the user cancel it, or something else...?

From: Thomas Zarebczan Sent: 01 October 2019 18:23 To: lbryio/open.lbry.com Cc: ICTman1076; Comment Subject: Re: [lbryio/open.lbry.com] Auto close tab/window feature? (#16)

Would be awesome, but some brief research into this recently showed it may not be possible to close the window. Feel free to dig around to see if there's a way! — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

tzarebczan commented 4 years ago

I think the JS script method would only work if it's the script opened the tab.

I'd prefer this to be an option on the page, with default on.

ICTman1076 commented 4 years ago

Ah, yeah, it seems you're right. /shrug