Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

268
Views
How to check if an image was blocked by a browser extension?

Following Scenario

  • I'm using an Instagram Widgets, which shows the latest images of my Instagram Account
  • Some users may use the Facebook Container Add-On for Firefox
  • When using this extension, I get in my Dev Console: https://scontent-frt3-1.cdninstagram.com/v/t51.29350-15/289266284_164217016088926_3628290502802444200_n.jpg?_nc_cat=106.... Blocked By Extension - which is of course correct

How can I check if the images were blocked by an extension, so I can show the user fallback images?

Thanks for any advice.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found a solution for the Facebook Container. I contacted the Instagram Widget Support and they were so kind to provide a solution:

const button = document.createElement('button');
button.classList.add('FacebookConnectButton');
button.style.display = 'none';
document.body.appendChild(button);
const observer = new MutationObserver((mutationList) => {
    if(button.classList.contains('fbc-has-badge')){
        // hide the iframe or show the instructions how to add exception to facebook container
    }
});
observer.observe(button, {attributes: true});

Works in my case!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!