Skip to content

Add visible placeholders for blocked elements #2688

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

Closed
Hyundy opened this issue Jun 8, 2017 · 9 comments
Closed

Add visible placeholders for blocked elements #2688

Hyundy opened this issue Jun 8, 2017 · 9 comments

Comments

@Hyundy
Copy link

Hyundy commented Jun 8, 2017

Trying to use ublock without umatrix, I miss the visible placeholders for blocked images and frames.

Was particularly useful to spot an embedded youtube video and copy its url to open in mpv.

@lewisje
Copy link

lewisje commented Jun 8, 2017

You can get most of that effect by unchecking "Parse and enforce cosmetic filters"; anyway, you should use the logger to find blocked resources.

@OneOfMany07
Copy link

Was going to say the same here 😄

There are settings and lists for cosmetic fixes, and you'd want to turn them off. In the main settings page there is a Default behavior section near the bottom. Add a checkmark to Disable cosmetic filter.

@gorhill
Copy link
Owner

gorhill commented Jun 9, 2017

What he is asking is unrelated to cosmetic filtering. He is talking about the placeholders of blocked resources. By default it's collapsed (see Settings pane in dashboard), it can be set to not be collapsed, and in such case the browser's default placeholder is used.

@Hyundy
Copy link
Author

Hyundy commented Jun 9, 2017

Correct gorhill. For an embedded youtube video, when using uBO (firefox), there is nothing there, whereas with umatrix, you see the box, the url and clickable arrow. With images, the default browser placeholder (firefox) does not always show in places that the umatrix placeholder does.

For anyone that wants to check the behaviour for themselves, this link has images where the placeholder does not show when using just ublock and it has an embedded youtube video. http://www.wikihow.com/Embed-YouTube-Flash-Videos-in-Your-PowerPoint-Presentations

@lewisje
Copy link

lewisje commented Jun 9, 2017

I had failed to notice the relevant setting in the Settings pane; I vaguely remembered seeing something like that, but I didn't want to mention such a thing unless I was sure.

With that said, I had thought that the only "placeholders" in uBO would be the empty space that a blocked resource would have taken up, and that uBO did not specifically mark where a blocked resource would have gone in the page, and only mentioned what the URL was in the logger.

@gitut2007
Copy link

gitut2007 commented Jul 25, 2017

Ok, my post was closed as duplicated, but it was more specific about right-click options, so I'll paste that as a comment here (without the things mentioned already here):

for not having to ... exit full-screen to click the uBO icon..., it would be very useful to have right-click options in the placeholder (like in 'Policeman' Addon -which worked in FireFox 47 but not now in FF 54-; it has a 'shield' icon in the placeholder to hint it's right-clickeable) :

'load this image', 'load all images in this tab', 'load temporarily all images from ---.---', 'load permanently all images from ---.---' (this 'permanently' applies only to current page domain) OR
'load this frame', 'load all frames in this tab', 'load temporarily all frames from ---.---', 'load permanently all frames from ---.---'.
... In case of images one chooses exactly which ones to see.

Other than this, great ergonomy in both this and uMatrix, (I'm using both because some security options are only available in one or the other).
Thanks.

@d0mf1g
Copy link

d0mf1g commented Dec 9, 2017

This would be a great feature. It would make using medium mode much easier for users by allowing them to easily identify the elements that are being blocked.

@Atavic
Copy link

Atavic commented Dec 27, 2017

It could solve #2334

gorhill added a commit that referenced this issue Oct 9, 2020
Additionally, as a requirement to support click-to-load
feature, redirected resources will from now on no
longer be collapsed.

Related issues:
- #2688
- #3619
- #1899

This new feature should considered in its draft
stage and it needs to be fine-tuned as per
feedback.

Important: Only embedded frames can be converted
into click-to-load widgets, as only these can be
properly shieded from access by page content.

Examples of usage:

    ||youtube.com/embed/$3p,frame,redirect=clicktoload
    ||scribd.com/embeds/$3p,frame,redirect=clicktoload
    ||player.vimeo.com/video/$3p,frame,redirect=clicktoload
@gorhill
Copy link
Owner

gorhill commented Dec 6, 2020

Closing as no longer an issue since uBO supports:

  • the no-large-media-elements per-site switch
  • the redirect-rule=click2load directive

@gorhill gorhill closed this as completed Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants