Skip to content

Instantly share code, notes, and snippets.

@hasanuzzamanbe
Created July 16, 2020 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasanuzzamanbe/4ff4090a80ce0570a3d6550c4f589a90 to your computer and use it in GitHub Desktop.
Save hasanuzzamanbe/4ff4090a80ce0570a3d6550c4f589a90 to your computer and use it in GitHub Desktop.
This is how vue devtool detect vue js. Just paste this snippet on the console.
const allDom = document.querySelectorAll('*')
let el
for (let i = 0; i < all.length; i++) {
if (allDom[i].__vue__) {
el = allDom[i]
console.log(el, "This is the vue element")
break
}
}
if (el) {
console.log('Vue exists!')
} else {
console.log('Vue does not exist !')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment