📜 ⬆️ ⬇️

Beeline Wi-Fi hits the tabs open before it

The other day, I visited one of the eateries, connected to the Internet via Beeline Wi-Fi, sat and left.
Then at home I already found out that, it turns out, when Beeline wanted me to click on the button “Enter the Internet”, he ... redirected all pages in tabs to addresses of the following type:
https://startwifi.beeline.ru/status?mode=partner&url=http%3A%2F%2Fhabrahabr.ru%2Fcompany%2Fintel%2Fblog%2F140965%2F&screen=normal&lang=ru
Yes, I didn’t want to return it back, but I’m sorry to edit the pens.
Probably many have come across this.
I had to sketch a small bookmarklet for this, because there were a lot of tabs.
Maybe someone else will come in handy.
javascript:location.href = decodeURIComponent(location.href.replace(/^.*url=(.[^&]+).*$/gi, '$1'))
I know that it was possible to write more optimally, but at that moment I was worried about something else. And I see no point in rewriting - it works, well, well.
PS I would put it in “I resent”, but karma was not enough. But maybe at least someone else will come in handy, so I post it all the same.
PPS In the form of the link it was not possible to lay out, Habr cut it.

')

Source: https://habr.com/ru/post/145584/


All Articles