-
Notifications
You must be signed in to change notification settings - Fork 77
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
Extend addEventListenerDefuser to support defusing based on the element #3061
Comments
It's may also be useful in the annoyances list to be able to limit the scope of zippyupload.com##+js(aeld, contextmenu, preventDefault)
streamvid.net##+js(aeld, contextmenu) |
If present, `elements` vararg must be a valid CSS selector, which will be used to apply the scriptlet to only elements matching the selector. Related issue: uBlockOrigin/uBlock-issues#3061 Example of usage: [...]##+js(aeld, click, return"undefined", elements, a.indirect)
Can uBO report the respective element when using the |
Doesn't defuse the event listener here:
Add to test (first one is to disable the filter in ublock-annoyances): comikey.com#@#+js(aeld, contextmenu, undefined)
comikey.com##+js(aeld, contextmenu, undefined, elements, #br-book) p.s: mentioning just in case you haven't received the notification. |
Many quirks which should be fixed in next dev build:
|
Can |
Worth to add, that when the scriptlet gets broken by an invalid selector, the whole page gets broken, empty and black, at least with this example filter: |
Prerequisites
I tried to reproduce the issue when...
Description
Go to:
https://subkade.ir/%D8%AF%D8%A7%D9%86%D9%84%D9%88%D8%AF-%D8%B2%DB%8C%D8%B1%D9%86%D9%88%DB%8C%D8%B3-%D8%B3%D8%B1%DB%8C%D8%A7%D9%84-prison-break/
Click on "دانلود زیرنویس" (
##a.indirect
), you'll get another page where you have to click on "برای ادامه اینجا کلیک کنید" (##a.sk-dl
), then you'll get a 6 seconds timer to download the subtitles.The main download link looks like this:
Add this to fix the link:
The download link is still not working, because of the following "click" event listener:
Add this to fix it:
The download link is working, but now the "زیرنویس انگلیسی" (
##.lock.sk-download-list
) section is broken because it used the same "click" event listener.Solution:
Maybe add a forth optional positional argument?
The text was updated successfully, but these errors were encountered: