AdguardTeam / AdguardTeam/Scriptlets

Fix 'href-sanitizer' — performance issue

Aperta
#466 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug Priority: P4
Lingua principale
JavaScript
Stelle
195
Fork
33
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

AdGuard 4.4.41
Scriptlets v1.12.1

### Details

https://hentai-id.tv/ uses URL shortener for analytics

![image](https://github.com/user-attachments/assets/33c87a67-b69b-44c8-b0d5-fb7028025aaf)

Following rule removes redirection
`hentai-id.tv#%#//scriptlet('href-sanitizer', 'a[href*="://ouo.io/"]', '?s')`

Example
```
https://ouo.io/s/lbH3iXRW?s=https://hentai-id.tv/my-weekend-sex-buddy-my-female-boss-only-i-know-the-other-side-of-julia/
```
changed to
```
https://hentai-id.tv/my-weekend-sex-buddy-my-female-boss-only-i-know-the-other-side-of-julia/
```

### Problem details

I need to wait until the page will be loaded completely.
It can be reproduce with throttling as 3G using the DevTools.

Details

![image](https://github.com/user-attachments/assets/9926b7bb-ee1b-4d48-ac5d-d7c752cc72fb)

### Proposed solution

Probably mutation observer can be used to scan elements, or just scan every 0.5-1 second.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.