-
Notifications
You must be signed in to change notification settings - Fork 728
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
m.acestream.net popup #10323
Comments
|
OP's popup is created by acestream app, only another app (AG for windows in this case) can block (kill) it |
OP could try
|
You cannot stop it, it's launched by acestream player. read here too: |
The script code works fine when using Violentmonkey, therefore there is no reason to refuse the scriptlet in uBlock Origin either. |
@fakelok76 Add |
Great, but it doesn't work, because it doesn't close the window, even if it's not opened by a program, but simply by clicking on a link. |
How do you launch ACE Stream program ? List all the steps involved. |
|
You don't need an account. Install the program and select any broadcast. Videoa1846qX.mp4 |
|
In my opinion, everything is very simple. Now there is no way to close open windows. A new scriptlet is required. |
|
@P0Rtvine is the popup coming from |
|
|
@dimisa-RUAdList No popups whatsoever, also that page is the signup page for people who're not logged in. |
@gorhill can you reproduce ? |
@uBlock-user |
@dimisa-RUAdList You mean the tab itself ? |
@uBlock-user |
Tab closes fine. |
@ mapx |
@gorhill You can add its analog for uBlock Origin? |
Yes, will do. |
Related feedback: - uBlockOrigin/uAssets#10323 (comment) AdGuard's rationale: - AdguardTeam/Scriptlets#158
@gorhill Rule Rule |
What do I need to do to trigger the filter? |
Open |
Ugh, typo in scriptlet, will fix asap |
In version uBlock Origin development build 1.39.3b11, the rule works great! |
Does not work? Tried:
https://developer.mozilla.org/en-US/docs/Web/API/Window/close
This trick: https://github.com/gorhill/uBlock/blob/18ae79cdf25be59831c295ea7c90afbcd5a70ce8/platform/common/vapi-common.js#L140 ? |
Really. When using the AceStreamMedia program at the address: At the same time, the script:
uploaded to Tampermonkey or Violentmonkey, works as intended. Probably, these extensions have more rights than uBlock Origin. However, the added scriptlet is not useless at all. It allows you to force the window to close using this rule: easylist/ruadlist@d8d3d65 |
OK, it seems to work in Firefox when launched from command line or even when opening from bookmarks as new tab.
|
What is supposed to happen when I navigate there? Nothing happens on my side in neither Chromium nor Firefox. |
First you need to install: |
Ok I won't be able to reproduce this case. I see the popup navigates to Maybe |
Currently, the only scriptlet that can solve this problem is This is exactly what is described here: AdguardTeam/Scriptlets#170 |
With Chromium, with your filter |
Yes that's right. When using an application, this rule does not work. |
I feel like the fact that the new window is not detected as a popup candidate is what should be investigated. |
Ok, though I can't reproduce using the Windows application, I can reproduce similar scenario using the command line:
Which allows me to put breakpoints in uBO's code. So it turns out uBO has code to detect popups opened in a separate window, which was added because of uBlockOrigin/uBlock-issues#1659 (comment). In the current case though, I see the added code bails out at https://github.com/gorhill/uBlock/blob/1.39.2/platform/chromium/vapi-background-ext.js#L70, because the |
Will that make |
Yes, when I add |
So we don't need |
Not if the change I can make has no bad side effect. I just tested what would happen if the browser is launch with that command line -- i.e. there are no existing instance, and the browser window in such case is not closed, which is a good thing, it would be bad if a false positive prevented the browser from launching at all. |
Related discussion: - uBlockOrigin/uAssets#10323 (comment) Synthesize a onCreatedNavigationTarget event for new browser windows created as a result of an external application triggering a navigation event.
When using uBlock Origin development build 1.39.3b12, the following rules work and close the new window:
|
So Session restored tabs are closed in Firefox. So, if you have for example two
Chrome seems to remember how tab was opened. After restore, calling OK, so I was wrong again 🙄
This is also true in Firefox, so bug from second paragraph can only happen on pages opened directly in tabs - does not affect pages opened from navigation. |
No bug in Chrome - on next browser start "New tab" is opened. |
Prerequisites
I tried to reproduce the issue when...
Description
Please add a scriptlet to close already open windows. Ace Stream opens a browser tab with ads. Add the ability to close already open windows. I beg your pardon for poor English.
A specific URL where the issue occurs
https://m.acestream.net/plan/select?popup=noads
Steps to Reproduce
Launch the ACE Stream program, which allows you to watch p2p broadcasts.
Expected behavior
// ==UserScript==
// @name Acestream close
// @Version 1
// @include
https://m.acestream.net/plan/select?popup=noads
// @grant window.close
// ==/UserScript==
window.close();
Actual behavior
ACE Stream program, which allows you to watch p2p broadcasts, but before showing, automatically opens a tab in the browser with ads
uBlock Origin version
uBlock Origin 1.38.6
Browser name and version
Google Chrome 95.0.4638.54 x64
Operating System and version
Windows 10 x64
The text was updated successfully, but these errors were encountered: