AdguardTeam / CoreLibs

Core Adguard libraries
https://adguard.com/
Apache License 2.0
40 stars 7 forks source link

Content script is not injected on www.huya.com #1897

Closed AdamWr closed 1 month ago

AdamWr commented 3 months ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

7.18.0 nightly 11 (4784) (CL 1.15.63, DL 2.5.38 )

Browser version

Chrome 127

OS version

Windows 11

Issue Details

Steps to reproduce:

  1. Add this rule:
    www.huya.com#%#alert(1);
  2. Go to - https://www.huya.com/
  3. Refresh website (few times, but it might be not necessary)

Expected Behavior

Alert should be displayed.

Actual Behavior

There is no local.adguard.org so rules are not applied.

Screenshots

No response

Additional Information

It doesn't occur every time, sometimes it works, but sometimes doesn't. If you cannot reproduce try to refresh website or click on the website logo few times.

Alex-302 commented 3 months ago

@AdamWr On my end injection works

Details ![image](https://github.com/user-attachments/assets/87c56a96-0212-45b9-9673-36846b317b64)

Maybe is it caused by failed Popup Blocker?

AdamWr commented 3 months ago

This problem occurs only sometimes, I have to reload website few/several times and it's not related to Popup Blocker. When it happens then there is no local.adguard.org in page source.

https://github.com/user-attachments/assets/c8b77a40-7162-4cd1-85d7-d723e22f1b70