iorate / ublacklist

Blocks specific sites from appearing in Google search results
https://iorate.github.io/ublacklist/
MIT License
5.53k stars 279 forks source link

Exist unhidden divs #270

Closed SunBK201 closed 2 years ago

SunBK201 commented 2 years ago
image

Specifications

iorate commented 2 years ago

WON'T FIX: The fix would be complicated and fragile while it is not a serious problem. Thank you for your report.

SunBK201 commented 2 years ago

I have used userscript to hide the div:

.FxLDp:has(.MYVUIe .XN9cAe > div[data-ub-blocked]) {
    display: none;
}

It works, but still has flaws. When clicking to display an item that has been hidden by ublacklist, the div controlled by my userscript is not displayed.

iorate commented 2 years ago

@SunBK201 To hide only results hidden by uBlacklist, you can use [data-ub-blocked="hidden"]:

.FxLDp:has(.MYVUIe .XN9cAe > div[data-ub-blocked="hidden"]) {
    display: none;
}

:has() is a good idea. Thank you.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 8.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

SunBK201 commented 1 year ago

@iorate It seems that the first nested result item of search results has different behaviors. Space still exists for the first result.

image

I solved it temporarily:

.g:has(div > div[data-ub-blocked="hidden"]) {
    display: none;
}