A
A
Andrey2011-10-20 00:46:07
JavaScript
Andrey, 2011-10-20 00:46:07

Javascript - define page/site JS framework?

Actually, the whole question is in the title: is there a ready-made algorithm for determining the JS framework that is loaded on this page (and is there any loaded at all)?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
G
Grigory Peretyaka, 2011-10-20
@reaferon

If I understand the task correctly, then for jQuery something like this:
if (type of jQuery != 'undefined')
For other frameworks, similarly.
For those that only use the "original" $ variable, unique methods and properties can be checked.

A
Andrey Yantsen, 2011-10-20
@zvirusz

Try to see how Wappalyzer works , maybe it will help.

S
Sergey, 2011-10-20
Protko @Fesor

Well, I would do this - Opera DragonFly - would open the scripts, see what is being used ... and in most cases, you can already determine by the first lines of code. either through firebug... or chrome dev panel...

A
aakhmerov, 2013-01-18
@aakhmerov

var knownFrameworks = [];
knownFrameworks.push('$','_','Handlebars' ...);

for (name in window) { 
    if (knownFrameworks.indexOf(name) >= 0 ) {
            console.log('detected ' + name )
    }
}

V
Vsevolod Rodionov, 2013-10-27
@Jabher

Try this chrome
extension chrome.google.com/webstore/detail/library-detector/cgaocdmhkmfnkdkbnckgmpopcbpaaejo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question