An efficient blocker add-on for various browsers. Fast, potent, and lean.
Soap2day.ac unblocked popups (and solution)
uBO ver. 1.45.2 Firefox ver: 101.0.1
Steps to reproduce:
Go to http://soap2day.ac
Attempt to watch any media there
On page with the video player, click literally anywhere
A popup will appear. This will happen for 3 clicks before ceasing. Then it will not happen again until a new URL is loaded. It for some reason will NOT happen again on page refresh.
Current solution:
soap2day.ac##+js(aeld.js, click, _0x90b0be)
Add this to your filters list. It seems the site just developed a new method its popup delivery and this stops the click event listener that does so. Its existed for a few days so I developed the solution myself. Figured I'd help get this solution onto uBlock's list.
Interesting.. can you explain the three arguments in your function, I guess the first is the js file name, second is the action that triggers the desired behavior to be blocked and the last one is the function name to be blocked or
https://github.com/uBlockOrigin/uBlock-issues/wiki/Resources-Library#aeldjs-
I'm still learning about all of it myself, but essentially the site was creating an event listener for clicks on the head of the page itself. I discovered this by opening console and clicking "event" next to <head> in the HTML. Assumedly the event listener was a click event or a mousedown event, so I just toggled each one until eventually when I clicked, it didn't happen. Once I found the section that did it, I used the function listed above. You can, alternatively, use https://github.com/uBlockOrigin/uBlock-issues/wiki/Resources-Library#addeventlistener-loggerjs- to find event listeners created by the site.
When you add +js() to a rule, what goes inside depends on the function you're trying to achieve, however the first part is always the function from that list I linked. aeld stands for addEventListener-defuser, which essentially defuses an event listener you specify. The second parameter is specifying the type of event it is, and the last one is a string in the script that creates the event you're trying to defuse. I don't mean a string var, I mean anything that's contained in the script itself. In this case, the event listener creation I wanted to block started with
so I had it look for that strange hexidecimal as the third parameter.
Perfect explanation , you're really a good teacher even if it's new to you too.. I'll look into the console for the "event" that you found that string content and how you figured which one exactly (and I'll re-comment if I've issues figuring it out) but other than that it's very clear thanks again !
I just tested it, first for me ublock block all pop ups by default (unless I turn it off) , secondly, I couldn't find the 'event' you mentioned in the <head> even when I turned off the ublock there was no 'even't anywhere near the <head> element.. if you could help me find it and where you toggled the different ones to find it out which one responsible for pop ups.. thanks again
Make sure to have ublock completely turned off. It seems that they have fixed it on the official list so now it doesn't show up in the event list unless unblocked.
I see.. but where does it show up to you? in the console on the head element I see no event icon maybe its in another tab not the console tab? I disabled the ublock and I get the pop up but don't see any 'event'
guys have you tried updating filters???
Yep! Repeatedly!
i can't reproduce anything
Is there a secondary method to updating other than purging the caches and redownloading? Because if not, then I've been doing it right.
Scratch the previous response, it seems that it finally was put onto the main list so it no longer happens. No wonder why you weren't experiencing it!
so i call it solved for you?
Thanks for this.
Would this help too? https://addons.mozilla.org/en-US/firefox/addon/popup-blocker/