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
# 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."

@ -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+<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
js/wappalyzer.js
js/apps.js

@ -10,17 +10,14 @@
<style type="text/css">
body {
color: #333;
color: #000;
font-family: Verdana, Arial, sans-serif;
font-size: 14px;
}
#bookmarklet {
background: #f8f8f8;
border: 1px solid #ccc;
border-radius: 2px;
color: #333;
font-weight: bold;
border: 1px solid #333;
color: #000;
display: inline-block;
padding: 10px 25px;
text-decoration: none;
@ -36,18 +33,15 @@
<a id="bookmarklet" href="javascript: void(0);">Wappalyzer</a>
</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">
(function() {
var
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
u = 'https://wappalyzer.com/bookmarklet/',
@ -55,8 +49,7 @@
c = d.createElement('div'),
p = d.createElement('div'),
l = d.createElement('link'),
s = d.createElement('script')
;
s = d.createElement('script');
c.setAttribute('id', 'wappalyzer-container');

File diff suppressed because it is too large Load Diff