aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Prophitt <git@prophitt.me>2020-11-07 14:25:25 -0800
committerCorey Prophitt <git@prophitt.me>2020-11-07 14:25:25 -0800
commit75af85e9d29350d21bb40430d7dd7a773bacd434 (patch)
tree0dfff406b1aadb710a1f55fd8453d3fd9c61586b
parent44ca769ef358479d8f714de478ccc9abf6dfda95 (diff)
downloadnefarious-linkedin-75af85e9d29350d21bb40430d7dd7a773bacd434.tar.gz
nefarious-linkedin-75af85e9d29350d21bb40430d7dd7a773bacd434.zip
Updated extension
Removed any Nymeria references.
-rw-r--r--extension/css/browser-action.css8
-rw-r--r--extension/html/index.html8
-rw-r--r--extension/js/browser-action.js17
3 files changed, 17 insertions, 16 deletions
diff --git a/extension/css/browser-action.css b/extension/css/browser-action.css
index 14b7019..4dedbd1 100644
--- a/extension/css/browser-action.css
+++ b/extension/css/browser-action.css
@@ -9,6 +9,7 @@ html, body {
9 padding: 0; 9 padding: 0;
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} 13}
13 14
14a { 15a {
@@ -97,6 +98,7 @@ ul.striped-list > li:last-child {
97 position: relative; 98 position: relative;
98 width: 64px; 99 width: 64px;
99 height: 64px; 100 height: 64px;
101 margin-top: -64px;
100} 102}
101 103
102.loader:after { 104.loader:after {
@@ -160,9 +162,3 @@ ul.striped-list > li:last-child {
160.hidden { 162.hidden {
161 display: none !important; 163 display: none !important;
162} 164}
163
164.brought-by {
165 margin: 10px;
166 font-size: 12px;
167 color: #666;
168}
diff --git a/extension/html/index.html b/extension/html/index.html
index 49444ff..40998d3 100644
--- a/extension/html/index.html
+++ b/extension/html/index.html
@@ -8,7 +8,7 @@
8 8
9 <body> 9 <body>
10 <div class="header">Nefarious LI</div> 10 <div class="header">Nefarious LI</div>
11 <div class="subtitle">by <a href="https://www.nymeria.io" target="_blank">Nymeria</a></div> 11 <div class="subtitle">by <a href="https://prophitt.me" target="_blank">Corey Prophitt</a></div>
12 12
13 <!-- Loading view, remove when we have data or an error. --> 13 <!-- Loading view, remove when we have data or an error. -->
14 <div class="loading-container"> 14 <div class="loading-container">
@@ -21,12 +21,6 @@
21 21
22 <a href="#" class="save-original button">Save Original</a> 22 <a href="#" class="save-original button">Save Original</a>
23 <a href="#" class="save-csv button">Save Parsed</a> 23 <a href="#" class="save-csv button">Save Parsed</a>
24
25 <hr class="divider">
26
27 <div class="brought-by">
28 This tool was brought to you by the creators of <a href="https://www.nymeria.io" target="_blank"><strong>Nymeria</strong></a>.
29 </div>
30 </div> 24 </div>
31 25
32 <!-- This view is for errors, for instance incognito mode with no local storage data. --> 26 <!-- This view is for errors, for instance incognito mode with no local storage data. -->
diff --git a/extension/js/browser-action.js b/extension/js/browser-action.js
index d0d6f23..3133362 100644
--- a/extension/js/browser-action.js
+++ b/extension/js/browser-action.js
@@ -226,17 +226,28 @@ function showDataView(data) {
226} 226}
227 227
228// 228//
229// Add support for non-Chrome extensions.
230//
231var extension;
232
233if (typeof chrome !== 'undefined') {
234 extension = chrome;
235} else if (typeof browser !== 'undefined') {
236 extension = browser;
237}
238
239//
229// This is the main entry point, start reading code from here :) 240// This is the main entry point, start reading code from here :)
230// 241//
231window.onload = function () { 242window.onload = function () {
232 chrome.tabs.create({ 243 extension.tabs.create({
233 active: false, 244 active: false,
234 url: 'https://www.linkedin.com/' 245 url: 'https://www.linkedin.com/'
235 }, function (tab) { 246 }, function (tab) {
236 chrome.tabs.executeScript(tab.id, { 247 extension.tabs.executeScript(tab.id, {
237 code: 'localStorage.getItem("C_C_M");' 248 code: 'localStorage.getItem("C_C_M");'
238 }, function (r) { 249 }, function (r) {
239 chrome.tabs.remove(tab.id); 250 extension.tabs.remove(tab.id);
240 251
241 removeLoader(); 252 removeLoader();
242 253