This is a simple filter for uBlock Origin to require any third-party iframe
s to be clicked to load. Here's a screenshot from the MDN page on the iframe element:
This only works with uBlock Origin - other blockers might not have the click2load.html
resource.
Paste the filter code below into your "My filters" settings to use it.
*$third-party,subdocument,redirect=click2load.html
Explanation:
*
- run this filter on every page$
- separates the URL from the optionsthird-party
- only match if it's "third-party" (the base domain is different from the root document)subdocument
- only match on embedded pages, such as iframes and framesredirect=click2load.html
- redirect anything that matches to uBlock Origin's
To allow frames on a specific site, use the code below, replacing example.com
with the site you want to allow.
@@||*$subdocument,domain=example.com