AdguardTeam / AdguardTeam/Scriptlets
Improve 'spoof-css ' — mock 'checkVisibility()' method
未關閉
enhancement
Priority: P4
- 主要語言
- JavaScript
- 星號
- 195
- 分支
- 33
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Steps to reproduce:
1. Add to user rules:
```adblock
example.org##h1
example.org#%#//scriptlet('spoof-css', 'h1', 'display', 'block')
```
2. Go to - https://example.org/
3. In console run:
```js
document.querySelector('h1').checkVisibility()
```
It returns `false` if element is not visible, so we could mock `checkVisibility` to fix it.
https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。