From baf7aa98c22331682bf93de6c249ddb7fbf25879 Mon Sep 17 00:00:00 2001
From: Peter
Date: Mon, 6 Mar 2017 09:12:15 +0200
Subject: [PATCH 01/10] CloudCart logo updated
---
src/icons/cloudcart.svg | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/src/icons/cloudcart.svg b/src/icons/cloudcart.svg
index a97253618..9d608655b 100644
--- a/src/icons/cloudcart.svg
+++ b/src/icons/cloudcart.svg
@@ -1 +1,24 @@
-
\ No newline at end of file
+
+
+
+
From 44b4d2a6260e2149e4b97def8249fe1c71bcfa06 Mon Sep 17 00:00:00 2001
From: AlexByte
Date: Sat, 11 Mar 2017 03:47:59 +0300
Subject: [PATCH 02/10] FIx false positive env detection of Nette Framework
---
src/apps.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/apps.json b/src/apps.json
index 975530295..8f299f0f9 100755
--- a/src/apps.json
+++ b/src/apps.json
@@ -5280,7 +5280,7 @@
"cats": [
18
],
- "env": "Nette",
+ "env": "^Nette$",
"headers": {
"Set-Cookie": "nette-browser=",
"X-Powered-By": "Nette Framework"
From 8d8e7dd9a32fd644a01b7282ce7d9db7bfcc175d Mon Sep 17 00:00:00 2001
From: Elbert Alias
Date: Mon, 13 Mar 2017 11:54:19 +1100
Subject: [PATCH 03/10] Add Go
---
src/apps.json | 41 ++++++++++++++++++++++++-----------------
src/icons/Go.svg | 1 +
2 files changed, 25 insertions(+), 17 deletions(-)
create mode 100644 src/icons/Go.svg
diff --git a/src/apps.json b/src/apps.json
index 975530295..e36664ac0 100755
--- a/src/apps.json
+++ b/src/apps.json
@@ -2218,23 +2218,6 @@
"icon": "ESERV-10.png",
"website": "http://www.violasystems.com"
},
- "Etherpad": {
- "cats": [
- 24
- ],
- "headers": {
- "Server": "^Etherpad"
- },
- "env": [
- "^pad(?:editbar|impexp)$"
- ],
- "script": [
- "/ep_etherpad-lite/"
- ],
- "icon": "etherpad.png",
- "implies": "Node.js",
- "website": "https://etherpad.org"
- },
"EWS-NIC4": {
"cats": [
22
@@ -2368,6 +2351,23 @@
"icon": "Erlang.png",
"website": "http://www.erlang.org"
},
+ "Etherpad": {
+ "cats": [
+ 24
+ ],
+ "env": [
+ "^pad(?:editbar|impexp)$"
+ ],
+ "headers": {
+ "Server": "^Etherpad"
+ },
+ "icon": "etherpad.png",
+ "implies": "Node.js",
+ "script": [
+ "/ep_etherpad-lite/"
+ ],
+ "website": "https://etherpad.org"
+ },
"Exagon Concept": {
"cats": [
1
@@ -2867,6 +2867,13 @@
"icon": "Glyphicons.png",
"website": "http://glyphicons.com"
},
+ "Go": {
+ "cats": [
+ 27
+ ],
+ "icon": "Go.svg",
+ "website": "https://golang.org"
+ },
"GoAhead": {
"cats": [
22
diff --git a/src/icons/Go.svg b/src/icons/Go.svg
new file mode 100644
index 000000000..8b0b1af64
--- /dev/null
+++ b/src/icons/Go.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
From 92fbcbd6e5d9b48879de80020d77f5cb15beb027 Mon Sep 17 00:00:00 2001
From: Elbert Alias
Date: Mon, 13 Mar 2017 13:15:43 +1100
Subject: [PATCH 04/10] Move onMessage to separate function in WebExtension
---
src/drivers/webextension/css/options.css | 2 +-
src/drivers/webextension/css/popup.css | 19 -----
src/drivers/webextension/js/driver.js | 91 ++++++++++++------------
src/drivers/webextension/js/popup.js | 5 --
src/drivers/webextension/popup.html | 4 --
5 files changed, 47 insertions(+), 74 deletions(-)
diff --git a/src/drivers/webextension/css/options.css b/src/drivers/webextension/css/options.css
index bd6096f5f..a5398318c 100644
--- a/src/drivers/webextension/css/options.css
+++ b/src/drivers/webextension/css/options.css
@@ -84,7 +84,7 @@ a:active {
#about {
border-top: 1px solid #dbdbdb;
margin-top: 2.5rem;
- padding: 1.5rem 0 1.5rem 0;
+ padding: 1.5rem 0 0 0;
}
#about img {
diff --git a/src/drivers/webextension/css/popup.css b/src/drivers/webextension/css/popup.css
index 6c91d5888..b95650b77 100644
--- a/src/drivers/webextension/css/popup.css
+++ b/src/drivers/webextension/css/popup.css
@@ -75,22 +75,3 @@ img {
font-style: italic;
text-align: center;
}
-
-#footer {
- border-top: 1px solid #ccc;
- margin-top: 17px;
- overflow: hidden;
- padding-top: 11px;
-}
-
-#footer a {
- text-decoration: none;
-}
-
-#footer a:hover {
- border-bottom: 1px solid #dbdbdb;
-}
-
-#options {
- float: right;
-}
diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js
index 77a9b71cd..9519d680d 100644
--- a/src/drivers/webextension/js/driver.js
+++ b/src/drivers/webextension/js/driver.js
@@ -64,52 +64,10 @@
localStorage['version'] = version;
} catch(e) { }
- function newMsg(message, sender, sendResponse) {
- var
- hostname,
- a = document.createElement('a');
-
- if ( typeof message.id != 'undefined' ) {
- w.log('message: ' + message.id);
-
- switch ( message.id ) {
- case 'log':
- w.log(message.message);
-
- break;
- case 'analyze':
- tab = sender.tab;
-
- a.href = tab.url.replace(/#.*$/, '');
-
- hostname = a.hostname;
-
- if ( headersCache[a.href] !== undefined ) {
- message.subject.headers = headersCache[a.href];
- }
-
- w.analyze(hostname, a.href, message.subject);
-
- break;
- case 'ad_log':
- w.adCache.push(message.subject);
-
- break;
- case 'get_apps':
- sendResponse({
- tabCache: tabCache[message.tab.id],
- apps: w.apps,
- categories: w.categories
- });
-
- break;
- }
- }
- }
- if (typeof chrome === "undefined") {
- browser.runtime.onMessage.addListener(newMsg);
+ if ( typeof chrome === 'undefined' ) {
+ browser.runtime.onMessage.addListener(w.driver.onMessage);
} else {
- chrome.runtime.onMessage.addListener(newMsg);
+ chrome.runtime.onMessage.addListener(w.driver.onMessage);
}
browser.tabs.query({}).then(function(tabs) {
@@ -168,6 +126,49 @@
}
},
+ onMessage: function(message, sender, sendResponse) {
+ var
+ hostname,
+ a = document.createElement('a');
+
+ if ( typeof message.id != 'undefined' ) {
+ w.log('message: ' + message.id);
+
+ switch ( message.id ) {
+ case 'log':
+ w.log(message.message);
+
+ break;
+ case 'analyze':
+ tab = sender.tab;
+
+ a.href = tab.url.replace(/#.*$/, '');
+
+ hostname = a.hostname;
+
+ if ( headersCache[a.href] !== undefined ) {
+ message.subject.headers = headersCache[a.href];
+ }
+
+ w.analyze(hostname, a.href, message.subject);
+
+ break;
+ case 'ad_log':
+ w.adCache.push(message.subject);
+
+ break;
+ case 'get_apps':
+ sendResponse({
+ tabCache: tabCache[message.tab.id],
+ apps: w.apps,
+ categories: w.categories
+ });
+
+ break;
+ }
+ }
+ },
+
goToURL: function(args) {
var url = args.url + ( typeof args.medium === 'undefined' ? '' : '?pk_campaign=chrome&pk_kwd=' + args.medium);
diff --git a/src/drivers/webextension/js/popup.js b/src/drivers/webextension/js/popup.js
index 4293aed21..14e6fb162 100644
--- a/src/drivers/webextension/js/popup.js
+++ b/src/drivers/webextension/js/popup.js
@@ -10,11 +10,6 @@ document.addEventListener('DOMContentLoaded', function() {
popup = {
init: function() {
-
- d.getElementById('options').addEventListener('click', function() {
- window.open(browser.extension.getURL('options.html'));
- });
-
browser.tabs.query({ active: true }).then(function(tabs) {
if ( tabs[0].url.match(/https?:\/\//) ) {
detectedApps.innerHTML = '' + browser.i18n.getMessage('noAppsDetected') + '
';
diff --git a/src/drivers/webextension/popup.html b/src/drivers/webextension/popup.html
index 35c1ea3e5..1548d426e 100644
--- a/src/drivers/webextension/popup.html
+++ b/src/drivers/webextension/popup.html
@@ -13,9 +13,5 @@
-
-