You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rule: example.com#%#//scriptlet('prevent-addEventListener', 'click', 'window.open')
With the above rule, I want to block the click event when it contains window.open inside.
Rule: example.com#%#//scriptlet('prevent-addEventListener', 'click', 'adsdomain.com')
With the above rule, I want to block the click event when it contains adsdomain.com inside.
However, both of the above filter rules are inactive, the click event is still activated when it is clicked on the #btn-download.
Rule: example.com#%#//scriptlet('prevent-addEventListener', 'click', 'countdownDownload')
With the above rule, I want to block the click event when it contains countdownDownload inside.
Rule: example.com#%#//scriptlet('prevent-addEventListener', 'click', 'btn-download')
With the above rule, I want to block the click event when it contains btn-download inside.
The same situation is the same as the above case, they are not working, unable to prevent the click event added.
The text was updated successfully, but these errors were encountered:
The issue arises because the actual function provided inside of the addEventListener doesn't contain the text specified in the scriptlet. I believe this can't be resolved unless a separate scriptlet for jQuery is created, though the likelihood of this happening seems low.
I wrote two rules to prevent the
click
event below:Code 1:
Rule:
example.com#%#//scriptlet('prevent-addEventListener', 'click', 'window.open')
With the above rule, I want to block the
click
event when it containswindow.open
inside.Rule:
example.com#%#//scriptlet('prevent-addEventListener', 'click', 'adsdomain.com')
With the above rule, I want to block the
click
event when it containsadsdomain.com
inside.However, both of the above filter rules are inactive, the
click
event is still activated when it is clicked on the#btn-download
.Code 2:
Rule:
example.com#%#//scriptlet('prevent-addEventListener', 'click', 'countdownDownload')
With the above rule, I want to block the
click
event when it containscountdownDownload
inside.Rule:
example.com#%#//scriptlet('prevent-addEventListener', 'click', 'btn-download')
With the above rule, I want to block the
click
event when it containsbtn-download
inside.The same situation is the same as the above case, they are not working, unable to prevent the
click
event added.The text was updated successfully, but these errors were encountered: