The Wayback Machine - https://web.archive.org/web/20211016191646/https://github.com/gorhill/uBlock/issues/1736
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide alternative way in picker to block by dimensions #1736

Open
grenzor opened this issue Jun 19, 2016 · 2 comments
Open

Provide alternative way in picker to block by dimensions #1736

grenzor opened this issue Jun 19, 2016 · 2 comments

Comments

@grenzor
Copy link

@grenzor grenzor commented Jun 19, 2016

Currently, when using the element picker it usually blocks cosmetic elements by the element names.

Is it possible to add an additional way in the element picker to block by automatically determining dimensions and block using the element selection methods e.g.

##div[style="width:300px;height:250px;"]
##table[height="100"][width="100"]

This would also help block most uniquely generated cosmetic elements

@elypter
Copy link

@elypter elypter commented Aug 10, 2016

i think its possible to do this with xpath but it doesnt work in the picker

@gorhill
Copy link
Owner

@gorhill gorhill commented Aug 11, 2016

There is no reason to use xpaths when plain CSS selectors can do the job:

When it comes to cosmetic filtering, preferably, always favor a plain old CSS3-based cosmetic filter, since they can be used in a declarative way, inside a style tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants