dilpreetsio / know-your-frontend

Chrome extension to detect frontend framework of web-apps
MIT License
3 stars 5 forks source link

Added support for vue.js #2 #9

Open opw0011 opened 6 years ago

opw0011 commented 6 years ago

Detect websites that are made with vue.js

Example website for testing: https://madewithvuejs.com/

dilpreetsio commented 6 years ago

@opw0011 Instead of injecting we can take care of the vue case in the else statement

opw0011 commented 6 years ago
[...document.querySelectorAll("*")].some(n => n.__vue__)

This line of code must be injected into the page context. I tried to use it directly in the else case, but it does not work.

today- commented 6 years ago

To execute your code in page context, you should inject script like this https://github.com/geekyd/know-your-frontend/pull/10/files#diff-7a9076d6d94e62c13d641aa71f19ae8eR11

dilpreetsio commented 6 years ago

@opw0011 @today- Many websites do not allow to inject scripts and might consider it as an attack. Can you suggest alternative approach here?