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

132
Visualizações
How to close popup.html for my google extension?

How can I visibly hide my popup.html whenever I click a button on that popup. I want to keep my scripts running but minimize the popup off the page. The reason i'm doing this is because i'm making an eye dropper extension that can get the color under your cursor and perhaps that color is being blocked by the popup hence why I want to get hide it when I'm looking for a color. Once I've picked my color the popup reappears.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You'll have to resize the popup e.g. by hiding everything inside. The minimum size is still 16x16.

popup.js should call start() inside some event listener:

function start() {
  Object.assign(document.documentElement, {
    className: 'hidden',
    title: 'Click to cancel',
    onclick: stop,
  });
}
function stop() {
  Object.assign(document.documentElement, {
    className: '',
    title: '',
    onclick: null,
  });
}

popup.css:

html.hidden * {
  display: none !important
}

html.hidden::after {
  content: 'x';
  text-align: center;
  display: block;
  cursor: pointer;
}
about 4 years ago · Juan Pablo Isaza Relatório
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