May need some help to create a complex rule

Roccobot

New Member
Hello,

I'm trying to write a rule to block the following iframe on a specific domain, let's say mydomain.com:

<iframe id="EU3rWhhcDTy" scrolling="no" style="position: fixed; display: block; z-index: 2147483647; margin: 0px; padding: 0px; outline: none; border: none; background-color: transparent; width: 320px; height: 134px; box-sizing: border-box; top: 0px; bottom: auto; left: 50px; transform: scale(1); transform-origin: left top 0px;"></iframe>

I'd like to block anything that matches size, scrolling type, position and left border, with no too specific (ID) or too generic (background color or so) attributes.

Is there a way to do it?

Thanks!
 

Blaz

Moderator & Translator
Staff member
Moderator
mydomain.com##iframe[scrolling="no"][style*="position: fixed;"][style*="left: 50px;"]
 

Blaz

Moderator & Translator
Staff member
Moderator
It is based on your snippet. Please post source url.
 

Roccobot

New Member
I was about to post another reply (probably my fault, I had whitelisted the whole domain); solved now, thanks a lot.
As a side question: what about whitelisting an entire website EXCEPT an element blocked by such a rule? Is this possible?
 

Blaz

Moderator & Translator
Staff member
Moderator
You can whitelist url blocks from that domain, but other elemhide rules are applied, but you can work around to only allow domain-specific rules.

@@||mydomain.com^$urlblock,generichide
 

Roccobot

New Member
You can whitelist url blocks from that domain, but other elemhide rules are applied, but you can work around to only allow domain-specific rules.

@@||mydomain.com^$urlblock,generichide
Thanks as always for your kind reply to a n00b.. but I'm not sure I understood completely.
What's the meaning of urlblock and generichide?

I usually use the rule
||example.org^$empty,important as a blocking rule for a domain.

If I also have
@@||example.org^$urlblock,generichide will the element hiding work (I mean blocking a specific element on a page hosted on example.org)?
 

Blaz

Moderator & Translator
Staff member
Moderator
$Generichide disables all generic elem hide rules, like ###ad. example.org###ad will work as it is specific to the domain.
$Urlblock will disable all url blocks, generic and defined.
 

Roccobot

New Member
$Generichide disables all generic elem hide rules, like ###ad. example.org###ad will work as it is specific to the domain.
$Urlblock will disable all url blocks, generic and defined.
What about the opposite? I mean blocking a whole website/domain but allowing just the scripts from that domain (or a specific element)? Is that possible?
 

T3rm1

New Member
Doesn't work. There will still be blocked content. He just said it in another thread.
Adguard is not able to ALLOW ALL and apply custom filter rules. Imo this is a huge problem. No idea why this hasn't caused severe problems yet.
 

Blaz

Moderator & Translator
Staff member
Moderator
What about the opposite? I mean blocking a whole website/domain but allowing just the scripts from that domain (or a specific element)? Is that possible?
@@||domain-name.com^$script
 
Top