AdguardTeam / AdguardTeam/Scriptlets

Improve 'prevent-fetch' — allow adding arbitrary delay before returning response

オープン
#526 コメント 6 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
enhancement Priority: P4
主要言語
JavaScript
スター
195
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

説明

A few sites started to exploit `performance.now` to see the timing difference with real ad requests. First spotted by @stephenhawk8054
on `https://kio.ac/c/ashM-l6lE_IvX2v9QxR5Gb` with following code
```
const i = e.now();
const s = await fetch(M(0), {
cache: M(4),
mode: M(3)
});
if (e.now() - i < 50) {
t(true);
return;
}
```

and now `pvpoke-re.com` too (skipping pasting the code as it's heavily obfuscated and long). uBO has addressed this by https://github.com/gorhill/uBlock/commit/d2bce26e7d537f156b6a5484efbba2ea0bbff24c

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。