Closed AdamWr closed 1 month ago
Steps to reproduce:
example.org#%#//scriptlet('set-attr', 'h1', 'data-ad-status', '0')
https://example.org/
h1 element should has data-ad-status attribute, but if value is 0 then it doesn't work (it works fine if it's set to 1).
h1
data-ad-status
0
1
Probably problem is here: https://github.com/AdguardTeam/Scriptlets/blob/ce952deb39d278816be12ffcc902a5b281c7641f/src/scriptlets/set-attr.js#L131 Previously it was possible to use 0 as value, but now it doesn't work.
Steps to reproduce:
https://example.org/
h1
element should hasdata-ad-status
attribute, but if value is0
then it doesn't work (it works fine if it's set to1
).Probably problem is here: https://github.com/AdguardTeam/Scriptlets/blob/ce952deb39d278816be12ffcc902a5b281c7641f/src/scriptlets/set-attr.js#L131 Previously it was possible to use
0
as value, but now it doesn't work.