aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Prophitt <git@prophitt.me>2020-11-08 14:38:43 -0800
committerCorey Prophitt <git@prophitt.me>2020-11-08 14:38:43 -0800
commitcaed284babf353bdd54d1bbe4c8a743fecc3d1c4 (patch)
treebfd3e138958b79c1c8cdae7c6223782cbc377afe
parent75af85e9d29350d21bb40430d7dd7a773bacd434 (diff)
downloadnefarious-linkedin-caed284babf353bdd54d1bbe4c8a743fecc3d1c4.tar.gz
nefarious-linkedin-caed284babf353bdd54d1bbe4c8a743fecc3d1c4.zip
Updated the extension
-rw-r--r--extension/css/browser-action.css7
-rw-r--r--extension/html/index.html2
-rw-r--r--extension/images/icon.pngbin3724 -> 9803 bytes
-rw-r--r--extension/js/browser-action.js9
-rw-r--r--extension/manifest.json4
5 files changed, 20 insertions, 2 deletions
diff --git a/extension/css/browser-action.css b/extension/css/browser-action.css
index 4dedbd1..2f7b2a2 100644
--- a/extension/css/browser-action.css
+++ b/extension/css/browser-action.css
@@ -10,6 +10,7 @@ html, body {
10 font-size: 14px; 10 font-size: 14px;
11 font-weight: 200; 11 font-weight: 200;
12 font-family: "Helvetica Neue", arial, sans-serif; 12 font-family: "Helvetica Neue", arial, sans-serif;
13 overflow-y: auto;
13} 14}
14 15
15a { 16a {
@@ -52,6 +53,12 @@ a:focus {
52 * Custom list styles. 53 * Custom list styles.
53 */ 54 */
54 55
56.extension-data p {
57 text-align: center;
58 font-size: 14px;
59 padding: 0 15px;
60}
61
55ul { 62ul {
56 text-align: center; 63 text-align: center;
57} 64}
diff --git a/extension/html/index.html b/extension/html/index.html
index 40998d3..acc42c8 100644
--- a/extension/html/index.html
+++ b/extension/html/index.html
@@ -17,6 +17,8 @@
17 17
18 <!-- This view is for the extension data that is parsed from LinkedIn's local storage. --> 18 <!-- This view is for the extension data that is parsed from LinkedIn's local storage. -->
19 <div class="extension-data hidden"> 19 <div class="extension-data hidden">
20 <p>LinkedIn is scanning your browser for the following <span class="extension-count"></span> extensions:</p>
21
20 <ul class="striped-list"></ul> 22 <ul class="striped-list"></ul>
21 23
22 <a href="#" class="save-original button">Save Original</a> 24 <a href="#" class="save-original button">Save Original</a>
diff --git a/extension/images/icon.png b/extension/images/icon.png
index fe30ddf..1590ef8 100644
--- a/extension/images/icon.png
+++ b/extension/images/icon.png
Binary files differ
diff --git a/extension/js/browser-action.js b/extension/js/browser-action.js
index 3133362..02d8def 100644
--- a/extension/js/browser-action.js
+++ b/extension/js/browser-action.js
@@ -194,6 +194,7 @@ function showDataView(data) {
194 return false; 194 return false;
195 }); 195 });
196 196
197 var count = 0;
197 var added = {}; 198 var added = {};
198 199
199 data.Metadata.ext.sort(compare).forEach(function (e) { 200 data.Metadata.ext.sort(compare).forEach(function (e) {
@@ -210,6 +211,8 @@ function showDataView(data) {
210 link.href = "https://chrome.google.com/webstore/detail/" + extensionId; 211 link.href = "https://chrome.google.com/webstore/detail/" + extensionId;
211 212
212 li.appendChild(link); 213 li.appendChild(link);
214
215 count += 1;
213 } else { 216 } else {
214 // No extension ID is know, simply append the name. 217 // No extension ID is know, simply append the name.
215 li.innerText = decode(e.name); 218 li.innerText = decode(e.name);
@@ -222,6 +225,12 @@ function showDataView(data) {
222 added[key(li.innerText)] = true; 225 added[key(li.innerText)] = true;
223 }); 226 });
224 227
228 var countEl = document.querySelector('.extension-count');
229
230 if (countEl) {
231 countEl.innerText = count;
232 }
233
225 document.querySelector(".extension-data").classList.remove("hidden"); 234 document.querySelector(".extension-data").classList.remove("hidden");
226} 235}
227 236
diff --git a/extension/manifest.json b/extension/manifest.json
index 8cc0659..07514be 100644
--- a/extension/manifest.json
+++ b/extension/manifest.json
@@ -1,8 +1,8 @@
1{ 1{
2 "name": "Nefarious LI", 2 "name": "Nefarious LI",
3 "description": "This extension enables you to find out which extensions LinkedIn is scanning your browser for.", 3 "description": "This extension enables you to find out which extensions LinkedIn is scanning your browser for.",
4 "homepage_url": "https://github.com/Nymeria-LLC/nefarious-linkedin", 4 "homepage_url": "https://prophitt.me/a-look-at-how-linkedin-exfiltrates-extension-data-from-their-users",
5 "version": "2.2.0", 5 "version": "3.0.0",
6 "permissions": [ 6 "permissions": [
7 "*://*.linkedin.com/*" 7 "*://*.linkedin.com/*"
8 ], 8 ],