Added bookmarklet build script

main
Elbert Alias 10 years ago
parent e4a534869a
commit 3f87a02758

@ -23,4 +23,15 @@ zip -qr $WAPPALYZER_ROOT/build/wappalyzer_chrome.zip .
popd > /dev/null 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." echo "Done. Builds have been created in $WAPPALYZER_ROOT/build."

@ -348,7 +348,7 @@
}, },
"Atlassian Jira": { "Atlassian Jira": {
"website": "www.atlassian.com/software/jira/overview/", "website": "www.atlassian.com/software/jira/overview/",
"cats": [ 13, 47 ], "cats": [ 13 ],
"meta": { "application-name": "JIRA", "ajs-version-number": "([\\d\\.]+)\\;version:\\1" }, "meta": { "application-name": "JIRA", "ajs-version-number": "([\\d\\.]+)\\;version:\\1" },
"env": "^jira$", "env": "^jira$",
"html": "Powered by\\s+<a href=[^>]+atlassian\\.com/(?:software/jira|jira-bug-tracking/)[^>]+>Atlassian\\s+JIRA(?:[^v]*v(?:ersion: )?(\\d+\\.\\d+(\\.\\d+)?))?\\;version:\\1", "html": "Powered by\\s+<a href=[^>]+atlassian\\.com/(?:software/jira|jira-bug-tracking/)[^>]+>Atlassian\\s+JIRA(?:[^v]*v(?:ersion: )?(\\d+\\.\\d+(\\.\\d+)?))?\\;version:\\1",

@ -1,2 +1,3 @@
images/icons/*.png images/icons/*.png
js/wappalyzer.js js/wappalyzer.js
js/apps.js

@ -10,17 +10,14 @@
<style type="text/css"> <style type="text/css">
body { body {
color: #333; color: #000;
font-family: Verdana, Arial, sans-serif; font-family: Verdana, Arial, sans-serif;
font-size: 14px; font-size: 14px;
} }
#bookmarklet { #bookmarklet {
background: #f8f8f8; border: 1px solid #333;
border: 1px solid #ccc; color: #000;
border-radius: 2px;
color: #333;
font-weight: bold;
display: inline-block; display: inline-block;
padding: 10px 25px; padding: 10px 25px;
text-decoration: none; text-decoration: none;
@ -36,18 +33,15 @@
<a id="bookmarklet" href="javascript: void(0);">Wappalyzer</a> <a id="bookmarklet" href="javascript: void(0);">Wappalyzer</a>
</p> </p>
<p>
<em>Note: this is a beta version and may stop working at some point. Check back here for a new version if this happens.</em>
</p>
<div id="bookmarklet-code" style="display: none"> <div id="bookmarklet-code" style="display: none">
(function() { (function() {
var var
d = document, d = document,
e = d.getElementById('wappalyzer-container') e = d.getElementById('wappalyzer-container');
;
if ( e !== null ) { d.body.removeChild(e); } if ( e !== null ) {
d.body.removeChild(e);
}
var var
u = 'https://wappalyzer.com/bookmarklet/', u = 'https://wappalyzer.com/bookmarklet/',
@ -55,8 +49,7 @@
c = d.createElement('div'), c = d.createElement('div'),
p = d.createElement('div'), p = d.createElement('div'),
l = d.createElement('link'), l = d.createElement('link'),
s = d.createElement('script') s = d.createElement('script');
;
c.setAttribute('id', 'wappalyzer-container'); c.setAttribute('id', 'wappalyzer-container');

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save