modify-attr? #3069
-
I don't know if this is possible, but would it be possible to add the ability to modify the attribute of an element, instead of simply removing it? For example |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Doing something like that is possible, but it's not supported by uBO. Do you have use cases where that would be useful? |
Beta Was this translation helpful? Give feedback.
-
I will post it here since it is related, but for the case of the OP since that should be done through Few uses for this could be how a link opens if _blank, _self, etc etc, so setting that attribute would be important, Another most useful usage is about the Input HTML element and how anything you 'input' gets added to the autocomplete. My solution is to take the set-attr and remove the restriction for the value and call it it 'trusted-set-attr', and done, but it would be nice to have it officially and not just for me, in case I need to help someone, or so Brave adblocker can have it without resources having to be 'hacked', especially on mobile where only rooted phones have access to the resources file. |
Beta Was this translation helpful? Give feedback.
-
We don't add scriplets because people ask us to do so, we add scriptlets when we determine they would solve filtering issues on many websites, not solvable otherwise. Any code we add to uBO is future technical debt, code which needs to be maintained and tested, so it has to be fully justified, and only actual, real world cases justify adding new scriptlets. |
Beta Was this translation helpful? Give feedback.
The solution for this is usually to override the blurring with CSS declaration such as
...##*:style(filter: none !important)