diff --git a/README.md b/README.md index 8c90058..719a66e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,2 @@ -# interactive-fics -Chrome extension that replaces Y/N (and similar) in Reader Insert/second person fics with a name of your choice. -Please see the license file. -Art/logo credits/copyrights belong to Oleg Gert (www.oleggert.ru) +# MetamorPOV +To-do: copy from Obsidian diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9750de2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,39 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 0, + "narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=", + "path": "/nix/store/yw6kg4rb9v8s3ypjbpspig5r81m4lr5s-source", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/icon-48.png b/icon-48.png deleted file mode 100644 index f548e7a..0000000 Binary files a/icon-48.png and /dev/null differ diff --git a/manifest.json b/manifest.json deleted file mode 100644 index c68bd91..0000000 --- a/manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "update_url": "https://clients2.google.com/service/update2/crx", - "manifest_version": 2, - "name": "InteractiveFics", - "author": "mariamrf", - "version": "5.2.3", - "description": "Replaces Y/N & other variables in Reader Insert/second person fics with words of your choice.", - "browser_action": { - "default_title": "InteractiveFics", - "default_icon": "icon.png", - "default_popup": "popup.html" - }, - "permissions": [ - "storage", - "tabs" - ], - "icons": { - "16": "icon-16.png", - "48": "icon-48.png", - "128": "icon-128.png" - }, - "content_scripts": [ - { - "js": [ - "content_script.js" - ], - "run_at": "document_idle", - "matches": [ - "*://*/*" - ] - } - ], - "incognito": "split", - "background": { - "page": "popup.html" - }, - "homepage_url": "https://interactivefics.tumblr.com", - "web_accessible_resources": [ - "toucan-banner.png" - ] -} \ No newline at end of file diff --git a/content_script.js b/src/content_script.js similarity index 100% rename from content_script.js rename to src/content_script.js diff --git a/src/img/check.svg b/src/img/check.svg new file mode 100644 index 0000000..1c9541a --- /dev/null +++ b/src/img/check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/img/configure.svg b/src/img/configure.svg new file mode 100644 index 0000000..7457690 --- /dev/null +++ b/src/img/configure.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon-128.png b/src/img/mpov-128.png similarity index 100% rename from icon-128.png rename to src/img/mpov-128.png diff --git a/icon-16.png b/src/img/mpov-16.png similarity index 100% rename from icon-16.png rename to src/img/mpov-16.png diff --git a/src/img/mpov-32.png b/src/img/mpov-32.png new file mode 100644 index 0000000..8df8a3c Binary files /dev/null and b/src/img/mpov-32.png differ diff --git a/icon.png b/src/img/mpov-48.png similarity index 100% rename from icon.png rename to src/img/mpov-48.png diff --git a/src/img/mpov-64.png b/src/img/mpov-64.png new file mode 100644 index 0000000..7a928f6 Binary files /dev/null and b/src/img/mpov-64.png differ diff --git a/src/img/mpov-96.png b/src/img/mpov-96.png new file mode 100644 index 0000000..c8b675a Binary files /dev/null and b/src/img/mpov-96.png differ diff --git a/src/img/refresh.svg b/src/img/refresh.svg new file mode 100644 index 0000000..7ea79ac --- /dev/null +++ b/src/img/refresh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/img/toggle-off.svg b/src/img/toggle-off.svg new file mode 100644 index 0000000..1cf2926 --- /dev/null +++ b/src/img/toggle-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/img/toggle-on.svg b/src/img/toggle-on.svg new file mode 100644 index 0000000..202f453 --- /dev/null +++ b/src/img/toggle-on.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/img/x.svg b/src/img/x.svg new file mode 100644 index 0000000..40ab224 --- /dev/null +++ b/src/img/x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json new file mode 100644 index 0000000..4d17b6a --- /dev/null +++ b/src/manifest.json @@ -0,0 +1,47 @@ +{ + "manifest_version": 2, + "name": "MetamorPOV", + "author": "Jean Viscogliosi-Pate", + "version": "0.1.0", + + "description": "Enables customization of reader-insert stories by replacing author-provided hooks such as Y/n, pov/s, and vrb/do/present/.", + + "browser_action": { + "default_title": "MetamorPOV", + "default_icon": { + "32": "icons/icon-32.png", + "48": "icons/icon-48.png" + }, + "default_popup": "popup.html" + }, + "permissions": [ + "storage", + "tabs" + ], + + "icons": { + "16": "icons/icon-16.png", + "32": "icons/icon-32.png", + "48": "icons/icon-48.png", + "64": "icons/icon-64.png", + "96": "icons/icon-96.png", + "128": "icons/icon-128.png" + }, + + "content_scripts": [ + { + "js": [ + "content_script.js" + ], + "run_at": "document_idle", + "matches": [ + "*://*/*" + ] + } + ], + "incognito": "split", + "background": { + "page": "popup.html" + }, + "homepage_url": "https://git.viscogliosi-pate.com/jean/metamorpov" +} diff --git a/popup.css b/src/popup/popup.css similarity index 81% rename from popup.css rename to src/popup/popup.css index 1c1ce4b..0c15b53 100644 --- a/popup.css +++ b/src/popup/popup.css @@ -2,39 +2,11 @@ body { background-color: white; color: #2C3531; width: 380px; - font-family: 'Rubik', sans-serif; - margin: 0px; -} - -#body-without-toucan { + font-family: 'Inter', sans-serif; padding:10px; margin: 8px; } -#toucan { - width: 100%; -} - -#toucan a { - text-decoration: none; - font-weight: 800; -} - -#toucan hr { - opacity: 0.3; - -} -#toucan h4 { - margin: 10px; - text-transform: uppercase; - text-align: center; -} - -#toucan img { - width: 100%; - margin-bottom: -3px; -} - h1 { font-size: 16px; } @@ -125,4 +97,4 @@ input[type="checkbox"]:hover{ #src-code { font-size: 0.8em; text-align: right; -} \ No newline at end of file +} diff --git a/popup.html b/src/popup/popup.html similarity index 62% rename from popup.html rename to src/popup/popup.html index 5d3d5f1..09f6971 100644 --- a/popup.html +++ b/src/popup/popup.html @@ -2,18 +2,18 @@ - -
-
-

Enter the name here:

+

Website name here

+

MetamorPOV is TODO for this website

+
+
Need to replace something other than Y/N?

This change will go away when you refresh/go to another page unless you check the box next to "Store this replacement".

@@ -47,23 +47,23 @@
-
+
⚙️ Settings -
Auto-detect page changes (Wattpad support)
-
Pause extension on ""
+
Auto-detect page changes (Wattpad support)
+
Pause extension on ""
Deactivate extension
- - - Feedback, suggestions and requests.
- > What's new?
-
- 🤖 source code 🤖 -
- + + + + - \ No newline at end of file + diff --git a/popup.js b/src/popup/popup.js similarity index 97% rename from popup.js rename to src/popup/popup.js index 6c073bf..7d4369d 100644 --- a/popup.js +++ b/src/popup/popup.js @@ -234,9 +234,3 @@ const togglePauseDomain = () => { }) }) } - -const addToucanBanner = () => { - const img = document.createElement('img') - img.src = chrome.extension.getURL('toucan-banner.png') - document.getElementById('toucan-link').appendChild(img) -}