So recently I wanted to block the comments section on a website however the element blocking was not working as they used random strings at the end of the div ID.
In this case the element appeared as:
Which when blocking will only block that page’s iframe and leave all the others appearing on other pages.
So to block the iframe properly, we have to use a wildcard, which normally would be *, meaning that
Would be blocked, however that doesn’t work since Adblock, Ublock etc use CSS selectors, so instead we have to use
Which allow us to block everything after “iframe_”.
For more info on CSS selectors please see: