Troubleshoot Block «Remember password» element on Facebook

Mr.X

Level 9
Thread author
Verified
Well-known
Forum Veteran
Aug 2, 2014
406
1,080
768
57
Mexico
Briefly explain your current issue(s)
How to block it using Adguard Adblocker Extension (Chrome).
Steps taken to resolve, but have been unsuccessful
I tried "Block ads manually" (context menu). It works until I refresh the page, it reappears again.
Your current Antivirus
None
2935.png
 
@Bot , now make a generic rule out of these four lines:
Code:
<div class="box_a"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-ddnotamexicoZA_box_a"></div></div></div></div>
<div class="box_b"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-ddnotamexicoZA_box_b" data-google-query-id="COnlzsjquZMDFRk4RAgdS3AjPA"><div id="google_ads_iframe_/21624040141/ddnotamexicoZA_box_b_0__container__" style="border: 0pt none; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""><iframe id="google_ads_iframe_/21624040141/ddnotamexicoZA_box_b_0" name="google_ads_iframe_/21624040141/ddnotamexicoZA_box_b_0" title="3rd party ad content" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" aria-label="Advertisement" tabindex="0" allow="private-state-token-redemption;attribution-reporting" data-google-container-id="3" style="border: 0px; vertical-align: bottom; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left="" data-load-complete="true"></iframe></div></div></div></div></div>
<div class="box_c"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-ddnotamexicoZA_box_c"></div></div></div></div>
<div class="box_e"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-ddnotamexicoZA_box_e" data-google-query-id="CIrFz5HruZMDFeSsOgUdQS0HAA"><div id="google_ads_iframe_/21624040141/ddnotamexicoZA_box_e_0__container__" style="border: 0pt none; margin: auto; text-align: center; width: 336px; height: 280px;"><iframe frameborder="0" src="https://c82ff7a65a305c4ca050876b245bf4f8.safeframe.googlesyndication.com/safeframe/1-0-45/html/container.html" id="google_ads_iframe_/21624040141/ddnotamexicoZA_box_e_0" title="Contenido de anuncios de terceros" name="" scrolling="no" marginwidth="0" marginheight="0" width="336" height="280" data-is-safeframe="true" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" allow="private-state-token-redemption;attribution-reporting" aria-label="Anuncio" tabindex="0" data-google-container-id="6" style="border: 0px; vertical-align: bottom;" data-load-complete="true"></iframe></div></div></div></div></div>
Generic rule for all four

Use this:

Code:
##div[class^="box_"]:has(.adspot > [id^="div-gpt-ad-"])

Simpler version

If you only want to hide the ad container itself and not the outer box:

Code:
##div.adspot:has(> [id^="div-gpt-ad-"])

Why this works
  • div[class^="box_"] matches wrappers like box_a, box_b, box_c, box_e.
  • [id^="div-gpt-ad-"] generically matches GPT ad slot IDs.
  • This avoids hardcoding each individual box letter.

Best overall choice

For your four examples, the most complete generic rule is:

Code:
##div[class^="box_"]:has(.adspot > [id^="div-gpt-ad-"])
 
  • Like
Reactions: Mr.X
Upvote 0
@Bot , thanks, this one worked:
Code:
##div[class^="box_"]:has(.adspot > [id^="div-gpt-ad-"])
Glad that worked.

Why it worked well
  • It does not depend on the exact box name like box_a or box_e.
  • It keys off the more stable GPT ad slot pattern: id^="div-gpt-ad-".
  • It hides the full wrapper, so you usually do not get leftover blank space.

Working rule

Code:
##div[class^="box_"]:has(.adspot > [id^="div-gpt-ad-"])

If you want, I can keep helping with the next element and keep the selectors as generic as possible.
 
  • Like
Reactions: Mr.X
Upvote 0
@Bot and @harlan4096 @Jack
I can't post here the code found in the attached screenshots.
The spoiler is empty

There is no HTML/code in your post, so I cannot safely derive a generic rule from it.

What to do instead
  • Paste the element HTML directly in a
    Code:
     block.
    [*]Or paste just the key part around the unique container, attributes, and nearby text.
    [*]If the forum blocks the full snippet, split it into 2–3 smaller [CODE] blocks.
    [/LIST]
    
    [B]Important[/B]
    
    A screenshot alone is usually not enough for a reliable cosmetic rule. The selector should be based on actual DOM attributes or structure, not appearance.
    
    Once the HTML is posted, I can turn it into a generic rule.
 
  • Like
Reactions: harlan4096 and Mr.X
Upvote 0
@Bot , now these ones:
Code:
<div id="iframedazn"><div class="AV698648d5527b2c4dd1051178" style="width: 100%; margin: 0px auto; max-width: 640px;"><div id="aniBox" style="width: 100%;">

<div id="aniplayer_AV698648d5527b2c4dd1051178-1774400666684" style="width: 100%;"></div></div></div><x-script async="" id="AV698648d5527b2c4dd1051178"

type="text/x-javascript" src="hxxps://tg1[.]stoic-media[.]com/api/adserver/spt?AV_TAGID=698648d5527b2c4dd1051178&amp;AV_PUBLISHERID=6986481f79a586c8500319c4">

</x-script></div>

<div id="iframedazn"><div class="AV698648d5527b2c4dd1051178" style="width: 100%; margin: 0px auto; max-width: 640px;"><div id="aniBox" style="width: 100%;">

<div id="aniplayer_AV698648d5527b2c4dd1051178-1774400669385" style="width: 100%;"></div></div></div><x-script async="" id="AV698648d5527b2c4dd1051178"

type="text/x-javascript" src="hxxps://tg1[.]stoic-media[.]com/api/adserver/spt?AV_TAGID=698648d5527b2c4dd1051178&amp;AV_PUBLISHERID=6986481f79a586c8500319c4">

</x-script></div>
 
Upvote 0
@Bot , now these ones:
Code:
<div id="iframedazn"><div class="AV698648d5527b2c4dd1051178" style="width: 100%; margin: 0px auto; max-width: 640px;"><div id="aniBox" style="width: 100%;">

<div id="aniplayer_AV698648d5527b2c4dd1051178-1774400666684" style="width: 100%;"></div></div></div><x-script async="" id="AV698648d5527b2c4dd1051178"

type="text/x-javascript" src="hxxps://tg1[.]stoic-media[.]com/api/adserver/spt?AV_TAGID=698648d5527b2c4dd1051178&amp;AV_PUBLISHERID=6986481f79a586c8500319c4">

</x-script></div>

<div id="iframedazn"><div class="AV698648d5527b2c4dd1051178" style="width: 100%; margin: 0px auto; max-width: 640px;"><div id="aniBox" style="width: 100%;">

<div id="aniplayer_AV698648d5527b2c4dd1051178-1774400669385" style="width: 100%;"></div></div></div><x-script async="" id="AV698648d5527b2c4dd1051178"

type="text/x-javascript" src="hxxps://tg1[.]stoic-media[.]com/api/adserver/spt?AV_TAGID=698648d5527b2c4dd1051178&amp;AV_PUBLISHERID=6986481f79a586c8500319c4">

</x-script></div>
Generic rule

Use this:

Code:
##div#iframedazn:has([id^="aniplayer_"]):has(x-script[src*="stoic-media.com/api/adserver/spt"])

Simpler variant

If that site always uses the same wrapper:

Code:
##div#iframedazn

Why the first rule is better
  • #iframedazn targets the wrapper you showed.
  • [id^="aniplayer_"] matches the generated player container generically.
  • x-script[src*="stoic-media.com/api/adserver/spt"] keys on the adserver source, which is more specific and safer.

Best choice

The most generic but still anchored selector from your snippet is:

Code:
##div#iframedazn:has([id^="aniplayer_"]):has(x-script[src*="stoic-media.com/api/adserver/spt"])
 
  • Like
Reactions: Mr.X
Upvote 0
@Bot
Now make a generic rule for this one
Code:
<div class="topleader homepage__topleader_1 pb-3" id="topleader"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-homepage__topleader_1" data-google-query-id="CLKNwt6hxZMDFQIATwgdYv8hHQ"><div id="google_ads_iframe_/21624040141/homepage__topleader_1_0__container__" style="border: 0pt none; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""><iframe id="google_ads_iframe_/21624040141/homepage__topleader_1_0" name="google_ads_iframe_/21624040141/homepage__topleader_1_0" title="Contenido de anuncios de terceros" width="970" height="90" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" aria-label="Anuncio" tabindex="0" allow="private-state-token-redemption;attribution-reporting" data-google-container-id="1" style="border: 0px; vertical-align: bottom; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left="" data-load-complete="true"></iframe></div></div></div></div></div>
 
Upvote 0
@Bot
Now make a generic rule for this one
Code:
<div class="topleader homepage__topleader_1 pb-3" id="topleader"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-homepage__topleader_1" data-google-query-id="CLKNwt6hxZMDFQIATwgdYv8hHQ"><div id="google_ads_iframe_/21624040141/homepage__topleader_1_0__container__" style="border: 0pt none; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""><iframe id="google_ads_iframe_/21624040141/homepage__topleader_1_0" name="google_ads_iframe_/21624040141/homepage__topleader_1_0" title="Contenido de anuncios de terceros" width="970" height="90" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" aria-label="Anuncio" tabindex="0" allow="private-state-token-redemption;attribution-reporting" data-google-container-id="1" style="border: 0px; vertical-align: bottom; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left="" data-load-complete="true"></iframe></div></div></div></div></div>
Generic rule

Use this:

Code:
##div#topleader:has(.adspot > [id^="div-gpt-ad-"])

More generic site-wide version

If the site uses the same pattern in multiple places:

Code:
##div[class*="leader"]:has(.adspot > [id^="div-gpt-ad-"])

Safer container-level option

If you only want to hide the ad block itself:

Code:
##div.adspot:has(> [id^="div-gpt-ad-"])

Best choice for your snippet

The most direct generic selector from what you posted is:

Code:
##div#topleader:has(.adspot > [id^="div-gpt-ad-"])

That should remove the whole top leader wrapper, not just the iframe inside it.
 
  • Like
Reactions: Mr.X
Upvote 0
@Bot
Code:
<div class="col-md-12 homepage__box_4"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-homepage__box_4" data-google-query-id="COiVy_CjxZMDFawfRAgdY78Y-A"><div id="google_ads_iframe_/21624040141/homepage__box_4_0__container__" style="border: 0pt none; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""><iframe id="google_ads_iframe_/21624040141/homepage__box_4_0" name="google_ads_iframe_/21624040141/homepage__box_4_0" title="3rd party ad content" width="468" height="60" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" aria-label="Advertisement" tabindex="0" allow="private-state-token-redemption;attribution-reporting" data-google-container-id="3" style="border: 0px; vertical-align: bottom; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left="" data-load-complete="true"></iframe></div></div></div></div></div>
 
Upvote 0
@Bot
Code:
<div class="col-md-12 homepage__box_4"><div><div class="adspot"><span class="placeholder"></span><div id="div-gpt-ad-homepage__box_4" data-google-query-id="COiVy_CjxZMDFawfRAgdY78Y-A"><div id="google_ads_iframe_/21624040141/homepage__box_4_0__container__" style="border: 0pt none; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""><iframe id="google_ads_iframe_/21624040141/homepage__box_4_0" name="google_ads_iframe_/21624040141/homepage__box_4_0" title="3rd party ad content" width="468" height="60" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" aria-label="Advertisement" tabindex="0" allow="private-state-token-redemption;attribution-reporting" data-google-container-id="3" style="border: 0px; vertical-align: bottom; --darkreader-inline-border-top: 0px; --darkreader-inline-border-right: 0px; --darkreader-inline-border-bottom: 0px; --darkreader-inline-border-left: 0px;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left="" data-load-complete="true"></iframe></div></div></div></div></div>
Generic rule

Use this:

Code:
##div[class*="box_"]:has(.adspot > [id^="div-gpt-ad-"])

More specific version for this exact block type

Code:
##div.homepage__box_4:has(.adspot > [id^="div-gpt-ad-"])

Why this works
  • class*="box_" matches wrappers like homepage__box_4 without hardcoding the full class string.
  • .adspot > [id^="div-gpt-ad-"] targets the GPT ad slot pattern you already confirmed on the same site.
  • Hiding the outer wrapper helps avoid leftover spacing.

Best choice

For consistency with the earlier working rules on this site, the best generic selector is:

Code:
##div[class*="box_"]:has(.adspot > [id^="div-gpt-ad-"])
 
  • Thanks
Reactions: Mr.X
Upvote 0