uBlock/assets/resources
Raymond Hill 11ca4a3923
Add `trusted-set-attr` scriptlet
@trustedScriptlet trusted-set-attr

@description
Sets the specified attribute on the specified elements. This scriptlet runs
once when the page loads then afterward on DOM mutations.

Reference: https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-trusted-scriptlets.md#-%EF%B8%8F-trusted-set-attr

@param selector
A CSS selector for the elements to target.

@param attr
The name of the attribute to modify.

@param value
The new value of the attribute. Since the scriptlet requires a trusted
source, the value can be anything.

=====

Additionally, start to move scriptlets into their own source files
for easier maintenance and code review.
2024-10-25 19:12:08 -04:00
..
run-at.js Add `trusted-set-attr` scriptlet 2024-10-25 19:12:08 -04:00
safe-self.js Add `trusted-set-attr` scriptlet 2024-10-25 19:12:08 -04:00
scriptlets.js Add `trusted-set-attr` scriptlet 2024-10-25 19:12:08 -04:00
set-attr.js Add `trusted-set-attr` scriptlet 2024-10-25 19:12:08 -04:00