-
Notifications
You must be signed in to change notification settings - Fork 29
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
Implement set-attr scriptlet #147
Comments
Maybe let's consider |
Indeed. Thought it might be unsafe. |
With a limited set of values it should be okay. |
so let's start with only one predefined value — empty string |
@slavaleleka yup, sounds reasonable. @AdguardTeam/filters-maintainers are there any rules where other values might be needed? |
If I understand correctly, it sounds like one of the points from this issue - #106
So maybe adding numbers will be useful. |
And what about |
@AdamWr @Alex-302 tbh I don't see why we cannot allow setting arbitrary height or width for an element. This is not the same as allowing an arbitrary string. For instance, we could allow doing something like this: |
Okay. |
@AdamWr yep, you're right, it only supports |
@AdamWr, percent is supported by height/width attributes but is only viable if the element's parent has correlated attribute set explicitly (in px), therefore i don't see much sense in supporting
We may also make |
@stanislav-atr works for me, thank you! |
https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#-%EF%B8%8F-remove-attr
For example here when
data-fc
attribute is removed, download is not working. But works, when removed value of attribute. It seems oprional parameter can be added -1
remove attr,0
remove value only.The text was updated successfully, but these errors were encountered: