From 3f87a027581b3fccad24ccc4a802cd639423f74f Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 22 Feb 2015 16:07:13 +1100 Subject: [PATCH] Added bookmarklet build script --- bin/wappalyzer-build | 11 + src/apps.json | 2 +- src/drivers/bookmarklet/.gitignore | 1 + src/drivers/bookmarklet/index.html | 23 +- src/drivers/bookmarklet/js/apps.js | 3839 ---------------------------- 5 files changed, 21 insertions(+), 3855 deletions(-) delete mode 100644 src/drivers/bookmarklet/js/apps.js diff --git a/bin/wappalyzer-build b/bin/wappalyzer-build index d544d05c4..ebe9fbfbd 100755 --- a/bin/wappalyzer-build +++ b/bin/wappalyzer-build @@ -23,4 +23,15 @@ zip -qr $WAPPALYZER_ROOT/build/wappalyzer_chrome.zip . popd > /dev/null +# Bookmarklet +echo "Building Bookmarklet driver..." + +echo "var json =" > /tmp/bookmarklet + +cat $WAPPALYZER_ROOT/src/apps.json >> /tmp/bookmarklet + +echo -e ";\n\nwappalyzer.apps = json.apps;\nwappalyzer.categories = json.categories;" >> /tmp/bookmarklet + +mv /tmp/bookmarklet $WAPPALYZER_ROOT/src/drivers/bookmarklet/js/apps.js + echo "Done. Builds have been created in $WAPPALYZER_ROOT/build." diff --git a/src/apps.json b/src/apps.json index ca09d6598..caa0f2286 100755 --- a/src/apps.json +++ b/src/apps.json @@ -348,7 +348,7 @@ }, "Atlassian Jira": { "website": "www.atlassian.com/software/jira/overview/", - "cats": [ 13, 47 ], + "cats": [ 13 ], "meta": { "application-name": "JIRA", "ajs-version-number": "([\\d\\.]+)\\;version:\\1" }, "env": "^jira$", "html": "Powered by\\s+]+atlassian\\.com/(?:software/jira|jira-bug-tracking/)[^>]+>Atlassian\\s+JIRA(?:[^v]*v(?:ersion: )?(\\d+\\.\\d+(\\.\\d+)?))?\\;version:\\1", diff --git a/src/drivers/bookmarklet/.gitignore b/src/drivers/bookmarklet/.gitignore index 07c4db124..0d9a93f5c 100644 --- a/src/drivers/bookmarklet/.gitignore +++ b/src/drivers/bookmarklet/.gitignore @@ -1,2 +1,3 @@ images/icons/*.png js/wappalyzer.js +js/apps.js diff --git a/src/drivers/bookmarklet/index.html b/src/drivers/bookmarklet/index.html index 78bfee9d8..f15dffed1 100644 --- a/src/drivers/bookmarklet/index.html +++ b/src/drivers/bookmarklet/index.html @@ -10,17 +10,14 @@