r/firefox•
xpopy

Opening some youtube links with middle mouse button and then changing the page to Masterani will close those tabs

Solved

Demonstration: https://streamable.com/wuu15

For some reason when I open any direkt link to a youtube video (from any site) in a new tab and then go to https://www.masterani.me/, those new tabs will close. If I visit these new tabs before changing first tab to masterani, then they won't close.

So far I've only had this happen with https://www.masterani.me/

Does anyone know why this is happening? How can https://www.masterani.me/ know what tabs I have open and then close them?

Posted Jun 21, 2018, 3:04 PM UTC

612
atlanto1979•

I can reproduce this odd behaviour with uBlock Origin + EasyList. Custom filter such as

@@||www.youtube.com/watch$popup,domain=www.masterani.me

seems to suppress to close the tab...

2
thistyoumsNightly | Mint KDE•

Easyilst RegEx filter:

 /http*.:\/\/.*[?|=|&|%|#|+].*/$popup,domain=0123movies.com|1337x.to|1movies.to|9anime.is|a-o.ninja|adsrt.com|ahlamtv.com|akvideo.stream|allmyvideos.netakvideo.stream|animeflv.net|animeid.io|asianvote.com|avgle.com|bittorrent.am|bmovies.to|clipconverter.cc|cloudtime.to|cruzing.xyz|dropapk.com|embed.nowvideo.sx|embed.videoweed.es|escdn.co|estream.to|extreme-board.com|eztv.ag|fastbay.net|fileone.tv|flash-x.tv|flashsx.tv|flashx.cc|flashx.me|flashx.run|flashx.sx|flashx.to|flashx.tv|flashx.ws|flashx1.tv|flashxx.tv|fmovies.is|fmovies.se|fmovies.to|fruithosted.net|fruitstreams.com|gogoanime.io|gorillavid.in|gowatchfreemovies.to|grammarist.com|ikwilthepiratebay.org|imagebam.com|imagefruit.com|imageporter.com|imagerar.com|img24.org|imgadult.com|imgbox.com|imgdrive.net|imgshots.com|imgsin.com|imgspice.com|imgtaxi.com|imgvip.net|imgwallet.com|indoxxi.tv|jkanime.net|katcr.host|katcr.party|kickass.cd|kickass.gg|kissasian.ch|kisscartoon.ac|lavamovies.se|m4ufree.com|m4ufree.tv|masterani.me|megaup.net|moecdn.io|monova.org|movie4k.is|movpod.in|mp3indirdur.mobi|myreadingmanga.info|mywebtv.info|newser.com|nosteam.ro|nowvideo.sx|oload.site|oload.stream|oload.win|oload.xyz|oloadcdn.net|onhax.me|onlinevideoconverter.com|openload.co|openloadmovies.tv|opentpb.com|otakustream.tv|piratebayblocked.com|pirateproxy.sh|pirateproxy.website|playercdn.net|pornparadise.org|povwideo.net|powvideo.net|proxydl.cf|putlockertv.se|putlockertv.to|rapidvideo.com|rarbgproxy.org|readcomiconline.to|repelis.net|rule34hentai.net|seehd.pl|sendvid.com|sexuria.com|solarmoviesc.com|speedvid.net|sportp2p.com|stream.moe|stream2watch.org|streamango.com|streamcherry.com|streamplay.to|streamshunter.tv|suprafiles.org|telepisodes.co|thehiddenbay.fi|thehiddenbay.ws|thekat.nz|thepiratebay.red|thepiratebay.rocks|thepirateproxy.ws|theproxybay.me|thevideo.cc|thevideo.ch|thevideo.me|thevideo.website|torrentz.to|tpb.zone|tpbmirror.ga|tpbship.org|uktpbmirror.pw|unblocker.cc|unblocktpb.pro|userscloud.com|vidgg.to|vidlox.me|vidlox.tv|vidoza.net|vidto.me|vidtod.me|vidtudu.com|vidup.me|vidz7.com|vidzi.tv|vipleague.mobi|vodlock.co|watchcartoononline.com|watchonline.to|watchonlinemovies.com.pk|wholecloud.net|youwatch.org|yts.am

Question is - why it works with such delay.

1
gorhill4•

Because popups can be triggered in so many different ways, the only approach which works to filter them all properly is to deal with any newly opened tab using as a popup candidate within a set period. Currently this period is set to 10s. After 10s, uBO will consider that a newly opened tab is definitely not a popup.

For example: clicking on a link on a site open a new tab. New tab does not appear to be a popup as per uBO filterset. However the newly opened tab eventually navigate to a nasty page using plain javascript, and this nasty page is supposed to be filtered as a popup. uBO must be able to deal with such cases, and thus the reason for the set period before a tab is cleared as a "popup candidate".

If OP waited more than 10s before opening the new page in the existing tab from which the two other tabs were opened, the tabs would not have been closed as popups.

The challenge for dealing with popups is to find the balance between un-filterable popups and false positives. Here is an edge case of false positive, due to the rather generic popup filter.

3
thistyoumsNightly | Mint KDE•

Thank you.

1
xpopyOP•

I see, but then why does uBO only close tabs which links directly to a youtube video and not other youtube links such as https://www.youtube.com/feed/subscriptions

Could it be because uBO detects an ad on the video and relates it to ad popups?

EDIT: Seems to be not only youtube videos, same thing is happening on https://d.tube/ Maybe it's related to autoplay videos?

1
thistyoumsNightly | Mint KDE•

Because this link does not match Regular Expression in EasyList $popup filter

You can test here https://regex101.com/ Paste http*.:\/\/.*[?|=|&|%|#|+].* in Regular expression field and your links in Text string box.

2
xpopyOP•

Ah I understand now. At first I wasn't sure what your first comment meant, but it all makes sense now. Thank you

1
gorhill4•

Because the popup filter involved is rather generic, it will end up matching a lot of various URLs, roughly any URL which contains one of the characters ?=&%#+| at any position.

2
thistyoumsNightly | Mint KDE•

Is this Nightly? I have problem reproducing on clean profiles.

1
xpopyOP•

It happens on both nightly and live, but thanks to you I tried disabling addons to see if any would cause this, turns out that uBlock Origin is the cause for this.

I tried u/atlanto1979 custom filter and it seems to work. So I guess uBlock thinks it's some sort of popup? Either way, thanks for the help

1
thistyoumsNightly | Mint KDE•

So it seems (per gorhill response) I just waited longer than 10s on new profile.

1
thistyoumsNightly | Mint KDE•

CC: u/gorhill4 weird popup behaviour

1