Skip to content

Instantly share code, notes, and snippets.

View jissereitsma's full-sized avatar

Jisse Reitsma jissereitsma

View GitHub Profile
@rambabusaravanan
rambabusaravanan / detect-js-framework.js
Last active September 14, 2024 03:06
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 || Object.keys(e).some(k => k.startsWith('__reactContainer')))
)
console.log('React.js');
if(!!document.querySelector('script[id=__NEXT_DATA__]'))
console.log('Next.js');