Page MenuHomePhorge

No OneTemporary

diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..7a69659
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,5 @@
+Copyright (C) 2023 LANNOCC
+@%@~LICENSE~@%@
+
+saw_031623_1 - Initial commit.
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..087d54a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,24 @@
+= LANK Instant Messenger =
+Browser extension for Chrome and Firefox.
+
+== Installation ==
+
+=== Chrome ===
+1. Go to your Chrome Extensions ("More tools" -> "Extensions") and **enable "Developer mode"**.
+2. **Click "Load unpacked"** and browse to the `chrome-extension` folder.
+3. _(optional)_ Go to your Extensions menu and **pin the "LANK.im" extension** so it is always visible.
+
+=== Firefox ===
+1. Open a terminal and **execute `./deploy-firefox.sh`**.
+2. **Enter "about:debugging"** in the URL bar and hit Enter.
+3. **Click "This Firefox"** on the left.
+4. **Click "Load Temporary Add-on"** button at the top and browse to the `firefox-extension` folder and select the `manifest.json` file to open.
+5. _(optional)_ Go to your Extensions menu and **pin the "LANK.im" extension** so it is always visible.
+6. For each site, you will need to go to the extension and **give it permission** to run. Alternatively, go to **manage extension**, then **click "Permissions"**, and finally **hit the toggle switch** next to "Access your data for all websites".
+
+Note that the loaded Firefox extension is temporary and will be lost once the browser is restarted.
+
+== Author ==
+
+by LANNOCC
+
diff --git a/chrome-extension/_locales/en/messages.json b/chrome-extension/_locales/en/messages.json
new file mode 100644
index 0000000..0b5dcef
--- /dev/null
+++ b/chrome-extension/_locales/en/messages.json
@@ -0,0 +1,11 @@
+{
+ "title": {
+ "message": "Instant Messaging with LANK",
+ "description": "Shown in tooltip."
+ },
+ "description": {
+ "message": "Peer-to-peer encrypted instant messaging using the LANK protocol.",
+ "description": "Extension description."
+ }
+}
+
diff --git a/chrome-extension/background.js b/chrome-extension/background.js
new file mode 100644
index 0000000..9b8d185
--- /dev/null
+++ b/chrome-extension/background.js
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2023 LANNOCC
+ * @%@~LICENSE~@%@
+ */
+
+//alert('here I am');
+
+chrome.notifications.create(
+ 'test',
+ {
+ type: "basic",
+ iconUrl: "image/favicon-128.png",
+ title: "LANK.im",
+ message: "This is a test"
+ }
+);
+//chrome.notifications.clear('test');
+
diff --git a/chrome-extension/content.css b/chrome-extension/content.css
new file mode 100644
index 0000000..32260be
--- /dev/null
+++ b/chrome-extension/content.css
@@ -0,0 +1,6 @@
+/*
+ * Copyright (C) 2023 LANNOCC
+ * @%@~LICENSE~@%@
+ */
+
+
diff --git a/chrome-extension/content.js b/chrome-extension/content.js
new file mode 100644
index 0000000..1e1b2d4
--- /dev/null
+++ b/chrome-extension/content.js
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2023 LANNOCC
+ * @%@~LICENSE~@%@
+ */
+
+//alert('yo');
+
+function inject_script(file_path, tag) {
+ var node = document.getElementsByTagName(tag)[0];
+ var script = document.createElement('script');
+ script.setAttribute('type', 'text/javascript');
+ script.setAttribute('src', file_path);
+ node.appendChild(script);
+}
+
+inject_script(chrome.runtime.getURL('inject.js'), 'body');
+
diff --git a/chrome-extension/image/favicon-128.png b/chrome-extension/image/favicon-128.png
new file mode 100644
index 0000000..bde4c34
Binary files /dev/null and b/chrome-extension/image/favicon-128.png differ
diff --git a/chrome-extension/image/favicon-16.png b/chrome-extension/image/favicon-16.png
new file mode 100644
index 0000000..3ffd1d2
Binary files /dev/null and b/chrome-extension/image/favicon-16.png differ
diff --git a/chrome-extension/image/favicon-32.png b/chrome-extension/image/favicon-32.png
new file mode 100644
index 0000000..fa5f3d8
Binary files /dev/null and b/chrome-extension/image/favicon-32.png differ
diff --git a/chrome-extension/image/favicon-48.png b/chrome-extension/image/favicon-48.png
new file mode 100644
index 0000000..0c1b259
Binary files /dev/null and b/chrome-extension/image/favicon-48.png differ
diff --git a/chrome-extension/index.html b/chrome-extension/index.html
new file mode 100644
index 0000000..cf21c4b
--- /dev/null
+++ b/chrome-extension/index.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<!--
+ Copyright (C) 2023 LANNOCC
+ @%@~LICENSE~@%@
+-->
+<head>
+ <title>LANK.im</title>
+ <meta charset="utf-8">
+ <link rel="stylesheet" type="text/css" href="popup.css">
+ <script language="javascript" type="text/javascript" src="popup.js">/* */</script>
+</head>
+<body>
+ <h1>LANK.im</h1>
+
+ <p>Here I am!</p>
+</body>
+</html>
+
diff --git a/chrome-extension/inject.js b/chrome-extension/inject.js
new file mode 100644
index 0000000..ed70733
--- /dev/null
+++ b/chrome-extension/inject.js
@@ -0,0 +1,7 @@
+/*
+ * Copyright (C) 2023 LANNOCC
+ * @%@~LICENSE~@%@
+ */
+
+alert('I have been injected');
+
diff --git a/chrome-extension/manifest.json b/chrome-extension/manifest.json
new file mode 100644
index 0000000..a3072ac
--- /dev/null
+++ b/chrome-extension/manifest.json
@@ -0,0 +1,47 @@
+{
+ "manifest_version": 3,
+ "name": "LANK.im",
+ "description": "__MSG_description__",
+ "version": "0.1",
+ "author": "LANNOCC",
+ "default_locale": "en",
+ "permissions": [
+ "activeTab",
+ "notifications",
+ "scripting",
+ "storage"
+ ],
+ "icons": {
+ "16": "image/favicon-16.png",
+ "32": "image/favicon-32.png",
+ "48": "image/favicon-48.png",
+ "128": "image/favicon-128.png"
+ },
+ "background": {
+ "service_worker": "background.js"
+ },
+ "content_scripts": [
+ {
+ "matches": [ "<all_urls>" ],
+ "css": [ "content.css" ],
+ "js": [ "content.js" ]
+ }
+ ],
+ "web_accessible_resources": [
+ {
+ "matches": [ "<all_urls>" ],
+ "resources": [ "inject.js" ]
+ }
+ ],
+ "action": {
+ "default_icon": {
+ "16": "image/favicon-16.png",
+ "32": "image/favicon-32.png",
+ "48": "image/favicon-48.png",
+ "128": "image/favicon-128.png"
+ },
+ "default_title": "__MSG_title__",
+ "default_popup": "index.html"
+ }
+}
+
diff --git a/chrome-extension/popup.css b/chrome-extension/popup.css
new file mode 100644
index 0000000..7aac2e3
--- /dev/null
+++ b/chrome-extension/popup.css
@@ -0,0 +1,10 @@
+/*
+ * Copyright (C) 2023 LANNOCC
+ * @%@~LICENSE~@%@
+ */
+
+html {
+ width: 420px;
+ min-width: 420px;
+}
+
diff --git a/chrome-extension/popup.js b/chrome-extension/popup.js
new file mode 100644
index 0000000..d70710c
--- /dev/null
+++ b/chrome-extension/popup.js
@@ -0,0 +1,5 @@
+/*
+ * Copyright (C) 2023 LANNOCC
+ * @%@~LICENSE~@%@
+ */
+
diff --git a/deploy-firefox.sh b/deploy-firefox.sh
new file mode 100755
index 0000000..2877c79
--- /dev/null
+++ b/deploy-firefox.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Copyright (C) 2023 LANNOCC
+# @%@~LICENSE~@%@
+
+cp -r chrome-extension/* firefox-extension/
+sed -e 's/"service_worker":\(.\+\)$/"scripts": [\1 ]/' -i firefox-extension/manifest.json
+
diff --git a/firefox-extension/README b/firefox-extension/README
new file mode 100644
index 0000000..79bb235
--- /dev/null
+++ b/firefox-extension/README
@@ -0,0 +1,3 @@
+This folder intentionally left empty. Run the `deploy-firefox.sh` script in the
+parent directory to populate.
+
diff --git a/logo.png b/logo.png
new file mode 100644
index 0000000..e142b1e
Binary files /dev/null and b/logo.png differ
diff --git a/logo.svg b/logo.svg
new file mode 100644
index 0000000..d7c59fd
--- /dev/null
+++ b/logo.svg
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="11in"
+ height="8.5in"
+ viewBox="0 0 279.4 215.9"
+ version="1.1"
+ id="svg5"
+ inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
+ sodipodi:docname="logo.svg"
+ inkscape:export-filename="logo.png"
+ inkscape:export-xdpi="300"
+ inkscape:export-ydpi="300"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview
+ id="namedview7"
+ pagecolor="#ffffff"
+ bordercolor="#000000"
+ borderopacity="0.25"
+ inkscape:showpageshadow="2"
+ inkscape:pageopacity="0.0"
+ inkscape:pagecheckerboard="0"
+ inkscape:deskcolor="#d1d1d1"
+ inkscape:document-units="mm"
+ showgrid="false"
+ inkscape:zoom="2.5877449"
+ inkscape:cx="297.74959"
+ inkscape:cy="281.32603"
+ inkscape:window-width="2161"
+ inkscape:window-height="1585"
+ inkscape:window-x="492"
+ inkscape:window-y="439"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="layer1" />
+ <defs
+ id="defs2">
+ <rect
+ x="130.05783"
+ y="138.41484"
+ width="300.51205"
+ height="218.62821"
+ id="rect413" />
+ </defs>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <rect
+ style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.43052;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1"
+ id="rect2569"
+ width="99.971977"
+ height="96.54351"
+ x="26.809908"
+ y="18.915503" />
+ <g
+ id="g1083"
+ inkscape:export-filename="./logo.png"
+ inkscape:export-xdpi="300"
+ inkscape:export-ydpi="300">
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:28.575px;font-family:'Noto Sans Mono';-inkscape-font-specification:'Noto Sans Mono Heavy';text-align:center;text-anchor:middle;fill:#b23fb2;stroke:#2e2e2e;stroke-width:0.596;stroke-linecap:round;stroke-linejoin:round"
+ x="75.350639"
+ y="63.676735"
+ id="text297"><tspan
+ sodipodi:role="line"
+ style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-family:'Noto Sans Mono';-inkscape-font-specification:'Noto Sans Mono Heavy';stroke-width:0.596"
+ x="75.350639"
+ y="63.676735"
+ id="tspan407">LAN</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:28.575px;font-family:'Noto Sans Mono';-inkscape-font-specification:'Noto Sans Mono Heavy';text-align:center;text-anchor:middle;fill:#b23fb2;stroke:#2e2e2e;stroke-width:0.596;stroke-linecap:round;stroke-linejoin:round"
+ x="75.564957"
+ y="89.996368"
+ id="text405"><tspan
+ sodipodi:role="line"
+ id="tspan403"
+ style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-family:'Noto Sans Mono';-inkscape-font-specification:'Noto Sans Mono Heavy';stroke-width:0.596"
+ x="75.564957"
+ y="89.996368">Kim</tspan></text>
+ <rect
+ style="fill:none;stroke:#2e2e2e;stroke-width:0.596;stroke-linecap:round;stroke-linejoin:round"
+ id="rect1024"
+ width="63.547314"
+ height="63.547314"
+ x="44.077042"
+ y="34.390133" />
+ </g>
+ <text
+ xml:space="preserve"
+ transform="scale(0.26458333)"
+ id="text411"
+ style="font-size:108px;font-family:sans-serif;-inkscape-font-specification:sans-serif;text-align:center;white-space:pre;shape-inside:url(#rect413);display:inline;fill:#b23fb2;stroke:#2e2e2e;stroke-width:2.2526;stroke-linecap:round;stroke-linejoin:round" />
+ </g>
+</svg>

File Metadata

Mime Type
text/x-diff
Expires
Fri, Sep 11, 11:41 AM (2 w, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3468
Default Alt Text
(11 KB)

Event Timeline