Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Change how "Preview" works (when blocking element manually) #286
Currently we simply hide selected element. The problem is that rule can cover more than one element and you can't see it in preview.
We should add a style instead, something like that:
Remove that style when user clicks "cancel preview" or selects another element.
For "URL" blocking rules use the old way with hiding an element at first. Add one more step after that: hide all elements with the same "src" as in selected element. Something like that:
This logic should be used for both "Assistant" module and dev tools.