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

133
Visualizações
How to get website's logo and name by javascript

I am working on a browser WebExtension, one feature of my extension is to get the icon image and name of the website which user is browsing. I found some ways to get the icon, e.g

  1. https://<some domain>/favicon.ico
  2. link and metadata in header, such as <meta property="og:image" content="<some image link>" />, <link rel="apple-touch-icon" href="<some image link>".

As for the website name, I can use

  1. document.title
  2. metadata in header, such as <meta name="application-name" content="some name">
  3. the second level domain name

However, that is still not enough, I found the result is not satisfying on quite a lot websites.

I am wondering is there some list of those heuristics or routines to cover most of the cases.

Or is there any advice or better approach to get the site's logo/icon and name?

Thank you

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