Browse Source

Initial data flow

Able to pull local storage data from LinkedIn with minimal extension
permissions. Now we need to add some styling and functionality.
Corey Prophitt 1 year ago
parent
commit
3c5a3ba6cc

+ 2 - 0
README.md

@@ -0,0 +1,2 @@
+Nefarious LinkedIn
+==================

+ 4 - 0
extension/css/browser-action.css

@@ -0,0 +1,4 @@
+html, body {
+  width: 300px;
+  height: 300px;
+}

+ 20 - 0
extension/html/index.html

@@ -0,0 +1,20 @@
+<!doctype html>
+
+<!--
+  Author: Corey Prophitt
+  URL: https://github.com/prophittcorey/nefarious-linkedin
+-->
+
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Nefarious LinkedIn</title>
+    <link rel="stylesheet" href="../css/browser-action.css">
+  </head>
+  <body>
+    <div class="loader">
+
+    </div>
+    <script src="../js/browser-action.js"></script>
+  </body>
+</html>

BIN
extension/images/icon.png


+ 13 - 0
extension/js/browser-action.js

@@ -0,0 +1,13 @@
+window.onload = function () {
+  chrome.tabs.create({
+    active: false,
+    url: 'https://www.linkedin.com/'
+  }, function (tab) {
+    chrome.tabs.executeScript(tab.id, {
+      code: 'localStorage.getItem("C_C_M");'
+    }, function (r) {
+      console.log(r);
+      chrome.tabs.remove(tab.id);
+    });
+  });
+};

+ 18 - 0
extension/manifest.json

@@ -0,0 +1,18 @@
+{
+    "name": "Nefarious LinkedIn",
+    "description": "Figure out what extensions LinkedIn is scaning you for.",
+    "homepage_url": "https://github.com/prophittcorey/nefarious-linkedin",
+    "version": "2.0",
+    "permissions": [
+      "*://*.linkedin.com/*"
+    ],
+    "browser_action": {
+        "default_icon": "/images/icon.png",
+        "default_title": "Open to see scan LinkedIn's stored extension list!",
+        "default_popup": "/html/index.html"
+    },
+    "icons": {
+        "256": "/images/icon.png"
+    },
+    "manifest_version": 2
+}