diff --git a/icon.png b/extension/icon.png similarity index 100% rename from icon.png rename to extension/icon.png diff --git a/manifest.json b/extension/manifest.json similarity index 68% rename from manifest.json rename to extension/manifest.json index ca20a22..e1f1992 100644 --- a/manifest.json +++ b/extension/manifest.json @@ -2,8 +2,9 @@ "manifest_version": 3, "name": "LeetCode Helper", "version": "1.0", - "description": "Get AI-powered help while solving LeetCode problems.", - "permissions": [], + "description": "Get AI-powered help while solving LeetCode problems", + "permissions": ["activeTab", "scripting", "tabs"], + "host_permissions": ["https://leetcode.com/*"], "action": { "default_popup": "popup.html", "default_icon": { diff --git a/popup.html b/extension/popup.html similarity index 66% rename from popup.html rename to extension/popup.html index 56d12f3..06c8278 100644 --- a/popup.html +++ b/extension/popup.html @@ -6,8 +6,13 @@ body { font-family: Arial, sans-serif; padding: 10px; - width: 250px; + width: 300px; } + + h3 { + margin-top: 0; + } + #getHelp { padding: 10px; background: #4CAF50; @@ -16,6 +21,15 @@ width: 100%; border-radius: 5px; cursor: pointer; + margin-bottom: 10px; + } + + ul { + padding-left: 20px; + } + + li { + margin-bottom: 5px; } @@ -23,6 +37,8 @@