Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
Prevent content-scripts from running for a chrome extension with login when user is not authorised

I am working on a chrome extension that will extract keywords from a particular website(x) and search for those keywords in another website's(y) search page. I am using iframes to load the search page(of y) and it will be added as a modal/div to the first page(x) ,this funcationality is added in content-scripts of chrome extension. But I want to make sure the website x is logged in and chrome extension has to be authenticated by SSO based on website X's login. Can anyone help me to prevent the content-script from injecting div to the website x if website y is not authenticated in extensi. Find the code below that is used in content-script to inject the div

$("body").append("<div id = \"slider\" style=\"position: fixed;top: 0px;right: 0px;z-index: 9999;\"><div id=\"iframe\" style=\"position: fixed;top: 0px;right: 0px;z-index: 9999;\"><iframe style=\"border:1px solid #868686;-webkit-box-shadow: 2px 2px 20px 1px rgba(0, 0, 0, 0.5);\" src=\" https:abc.com/search \" width=580 HEIGHT=740></iframe></div><button id=\"button\">PushMe!</button></div>");```
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda