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 摘要。