Skip to content

Instantly share code, notes, and snippets.

View janumejia's full-sized avatar
👨‍💻

Julián A. Núñez janumejia

👨‍💻
View GitHub Profile
@janumejia
janumejia / detect-js-framework.js
Last active November 18, 2022 23:12 — forked from rambabusaravanan/detect-js-framework.js
Detect JS Framework used in a Website
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I)
if(!!window.React ||
!!document.querySelector('[data-reactroot], [data-reactid]') ||
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined))
console.log('React.js');
if(!!document.querySelector('script[id=__NEXT_DATA__]')){
console.log('Next.js' + " v" + next.version);
}