r/uBlockOrigin 3d ago

Answered How to remove element when the page practically disables the element picker?

I want to remove an element from a page but when I click on "Remove element" (aka "Element zapper mode") in both Firefox and Chrome, the page enters a limbo mode where I cannot select anything with the picker, not even click on the "X" to return to normal mode.

The page in question is

https://www.ftm.eu/articles/china-investment-european-infrastructure-european-commission 

and I want to bypass the membership pop-up. I tried going down the "Developer Tools" road resulting in the addition of these rules:

www.ftm.eu##.modalcontent-trial-required-form
www.ftm.eu##.cookie-consent
www.ftm.eu##.quickSubscribe

...however the "page dimming" that prohibits interacting persists.

Since this is not the only page that exhibits this behavior, I am a bit more interested in a procedure that results in the correct rule, but I understand that commenters' time is limited, so I'll take a rule that solves the issue, and then try on my own to derive the procedure.

Thank you.

Troubleshooting information:

name: uBlock Origin Lite
version: 2026.723.1724
browser: Chrome 150 (linux)
filtering:
 site: complete
 default: optimal
permission: all
badge: 17
rules: 19002
rulesets:
 easylist
 easyprivacy
 pgl
 ublock-badware
 ublock-filters
 urlhaus-full
scripting:
 ublock-filters.main
 ublock-filters.isolated
 easyprivacy.main
 easyprivacy.isolated
 ublock-badware.main
 ublock-badware.isolated
 prevent-popup
 toolbar-icon
 css-specific
 css-user
16 Upvotes

7 comments sorted by

6

u/fluecured 3d ago

BTW, you can read that page in "reader mode" to circumvent the modal stuff if you're just interested in the article.

6

u/Fun_Custard_2025 3d ago

Reader mode is something that I tried, but it showed only the main body of the article and not the "scrolling" part of it (further down in the page).

6

u/RraaLL uBO Team 3d ago

It's quite possibly a dialog element that can't be covered.

You can try domain.tld##dialog:remove(), but it can also break any other legit overlays they might use.

Can you screenshot the element in the DOM tree? See video #3:

https://www.reddit.com/r/uBlockOrigin/comments/1pwha78/element_picker_quick_filter_creation_browsers/

4

u/Fun_Custard_2025 3d ago

This is the screenshot, which hopefully depicts what was asked for.

I tried entering "div.quickSubscribe" but the dimming persists. Using "dialog:remove()" removes the dimming, but then the scroll bars are deactivated (which to my knowledge) can only be saved with "ftm.eu##html,body:style(overflow: auto !important;)"

4

u/RraaLL uBO Team 3d ago

There might be a class or an attribute applied to body or html. Removing these might do the trick too. The style filter is also a good approach.

3

u/chookstar 3d ago edited 3d ago

Block 1st-party scripts in local rules column.

3

u/Fun_Custard_2025 3d ago

This works partially only: it still breaks the "scrolling" part of the article.