From 70ff5bbad4ad7882e50405db00a1b6cb8a9d1be8 Mon Sep 17 00:00:00 2001 From: Nes370 Date: Thu, 8 Aug 2024 14:49:18 -0700 Subject: [PATCH] Fixed resource linking --- manifest.json | 12 +++++++++--- popup.html | 24 +++++++++++++++++------- script.js | 3 ++- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/manifest.json b/manifest.json index 5942e81..b6d4bbf 100644 --- a/manifest.json +++ b/manifest.json @@ -11,13 +11,19 @@ "96": "icons/icon_96.png", "128": "icons/icon_128.png" }, + "permissions": [ + "storage" + ], + "browser_specific_settings": { + "gecko": { + "id": "sgdb-extension@goblincave.synology.me", + "update_url": "https://gitea.goblincave.synology.me/Nes/SGDB-Extension/releases" + } + }, "action": { "default_icon": "icons/icon_128.png", "default_popup": "popup.html" }, - "permissions": [ - "storage" - ], "content_scripts": [ { "matches": [ "*://store.steampowered.com/app/*", "*://steamcommunity.com/app/*" ], diff --git a/popup.html b/popup.html index 9e2d6a3..866a967 100644 --- a/popup.html +++ b/popup.html @@ -4,9 +4,10 @@ - SGBD Button Placement + SGBD Button on Steam + -

SGBD Button on Steam

- +

+ SGBD Button on Steam +

- Created by Nes + Created by Nes - - View Source + View Source - diff --git a/script.js b/script.js index ba12b1b..e74a039 100644 --- a/script.js +++ b/script.js @@ -13,7 +13,7 @@ if(appIDMatch) { const icon = document.createElement("img"); icon.className = "ico16"; - icon.src = "moz-extension://74d32219-b2a6-4a7f-bec5-0b89b0441173/icons/sgdb_16.png"; + icon.src = browser.runtime.getURL("icons/sgdb_16.png"); icon.style.backgroundImage = "none"; span.append(icon); @@ -22,6 +22,7 @@ if(appIDMatch) { const buttonContainer = document.querySelector(".apphub_OtherSiteInfo"); if(buttonContainer) { sgdb_button.style.marginRight = "3px"; + sgdb_button.style.marginLeft = "3px"; buttonContainer.prepend(sgdb_button); }