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

385
Visualizações
Get VueJS __vue__ in chrome extension

Good afternoon.

I try to do a chrome extension that need to access the main vue object on a Vue.js website. To do that, I type let vue=document.getElementById('app').__vue__ in chrome's console, and I can well read its values. In my chrome extension I have a script that contains exactly the same code but vue is undefined. I tried to debug like that.

let app=document.getElementById('app')
let vue=app.__vue__
console.log(app, vue)

the result is 'app=<div...> vue=undefined'. When I right click on app -> store as global variable (its often called temp1), and I do temp1.__vue__ then the result is not undefined and contains the object I was looking for (as if I wrote let vue=document.getElementById('app').__vue__).

Since my skills in web technologies are very bad, I would greatly appreciate a little help in figuring out what is going on and solving this problem. Thanks in advance !

Best

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