AdguardTeam / AdguardTeam/Scriptlets

Add new scriptlet — 'trusted-add-class'

未关闭
#430 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Feature request Priority: P5
主要语言
JavaScript
星标
195
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

The `trusted-add-class` would provide an opportunity to add any class name to an element. For example, sometimes it happens that a script checks the body class list.
```
example.com#%#//scriptlet('trusted-add-class', selector, classNames[, applying])
```
where
- `classNames` can be a single class or multiple classes separated by commas, e.g. `foo` or `foo,bar`
- `applying` can be `asap`, `complete` and `stay` like in [remove-attr](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#-%EF%B8%8F-remove-attr)

- - -

Can be used on:
* myonlineradio.hu - bypass antiadblock.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。