AdguardTeam / AdguardTeam/Scriptlets

Improve 'spoof-css ' — mock 'checkVisibility()' method

未關閉
#503 0 則留言 0 個 reaction 已指派 1 人 已被 @maximtop 認領 在 GitHub 檢視
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。