AdguardBrowserExtension icon indicating copy to clipboard operation
AdguardBrowserExtension copied to clipboard

Element hiding rules can be removed by a website Brave/Opera

Open AdamWr opened this issue 3 years ago • 0 comments

Issue Details

  • AdGuard version:
    • AdGuard Version 4.1.1
  • Browser and version:
    • Brave Version 1.42.95 Chromium: 104.0.5112.81
    • Opera 89.0.4447.91

Steps to reproduce

  1. Add this rule:
example.org##body
  1. Go to - https://example.org/
  2. Run this script in console:
document.querySelectorAll('head style').forEach(e=>e.remove())

Expected Behavior

Website should be blank.

Actual Behavior

AdGuard injects style to head and it's removed by script, so element hiding rule stop working. It seems that this issue occurs only in Brave/Opera.

Screenshots

Screenshots:

image

image

image

AdamWr avatar Aug 16 '22 13:08 AdamWr