-
Notifications
You must be signed in to change notification settings - Fork 76
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
URL support for disable-newtab-links #2251
Comments
Real world case? |
A scriptlet cannot close another tab. It can maybe prevent it from being opened but then you might as well use a cosmetic filter to hide the target link. |
Then the website can detect "hiding" that link.
Thanks. |
If you don't want to hide, you can style with |
Unfortunately can/will be detected too, the only thing uncircumventable¹ is ====
|
AdGuard's |
Did you test uBO's https://github.com/gorhill/uBlock/wiki/Resources-Library#window-close-ifjs- ? |
That works for most of my need, thanks. @mapx- Can it also close tabs from |
Some real example ? |
AdGuard uses |
example:
to close it: |
Even better prevent the tab from being opened:
The whole conversation here is pointless if I am not given a specific (and representative) cases of what we are trying to solve. When I see the problem, then I will consider all sort of solutions. |
Prerequisites
I tried to reproduce the issue when...
Description
There are filters like these in the main uBlock Filters:
So it'd be useful to have the same functionality for the disable-newtab-links scriptlet where uBO would check the link
href
and close the new tab if it matched the href specified by the filter.The purpose could be the same as the reason why
window.open-defuser
has a URL parameter.##+js(nowoif, !/^https:\/\/sendvid\.com\/[0-9a-z]+$/)
<=>
##+js(disable-newtab-links, !/^https:\/\/sendvid\.com\/[0-9a-z]+$/)
A specific URL where the issue occurs
.
Steps to Reproduce
.
Expected behavior
.
Actual behavior
.
uBlock Origin version
1.44.2
Browser name and version
Firefox
Operating System and version
.
The text was updated successfully, but these errors were encountered: