Skip to content

Commit 348d61b

Browse files
committed
Rename browser build output to out and update installation scripts
- the installation scripts should also build the browser extension - build to 'out', not 'dist' - disallow building for all editors (cloning into shared 'repository' folder)
1 parent 7d2b295 commit 348d61b

32 files changed

Lines changed: 394 additions & 91 deletions

‎apps/browser/.gitignore‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/dist
2-
/dist-firefox
1+
/out
2+
/out-firefox
33
/extension-*.zip
44
/.env

‎apps/browser/dist-firefox/background.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
90.3 KB
Binary file not shown.
3.46 KB
Loading
489 Bytes
Loading
864 Bytes
Loading
1.26 KB
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@font-face {
2+
font-family: 'Bangers';
3+
src: url('fonts/Bangers-Regular.ttf') format('truetype');
4+
font-weight: normal;
5+
font-style: normal;
6+
}
7+
8+
body {
9+
margin: 0;
10+
font-family:
11+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
12+
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
13+
width: 360px;
14+
}
15+
16+
button {
17+
background: none;
18+
border: none;
19+
cursor: pointer;
20+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"author": "Robert Piosik",
3+
"name": "Autofill for Code Web Chat",
4+
"short_name": "CWC",
5+
"description": "Autofill CWC-constructed markdown prompts in chatbots.",
6+
"version": "2026.1118.43",
7+
"homepage_url": "https://github.com/CodeWebChat/CWC",
8+
"icons": {
9+
"16": "icons/icon-16.png",
10+
"32": "icons/icon-32.png",
11+
"48": "icons/icon-48.png",
12+
"128": "icons/icon-128.png"
13+
},
14+
"permissions": ["storage", "contextualIdentities"],
15+
"background": {
16+
"scripts": ["background.js"],
17+
"persistent": true
18+
},
19+
"content_scripts": [
20+
{
21+
"matches": [
22+
"https://aistudio.google.com/*",
23+
"https://chatgpt.com/*",
24+
"https://claude.ai/*",
25+
"https://copilot.com/chat",
26+
"https://chat.deepseek.com/",
27+
"https://www.doubao.com/chat/",
28+
"https://gemini.google.com/*",
29+
"https://github.com/copilot/*",
30+
"https://grok.com/*",
31+
"https://huggingface.co/chat/",
32+
"https://arena.ai/*",
33+
"https://www.kimi.ai/",
34+
"https://www.kimi.com/",
35+
"https://www.meta.ai/",
36+
"https://chat.mistral.ai/work*",
37+
"http://openwebui/",
38+
"https://openrouter.ai/chat*",
39+
"https://chat.qwen.ai/*",
40+
"https://chat.together.ai/",
41+
"https://yuanbao.tencent.com/*",
42+
"https://chat.z.ai/",
43+
"https://zchat.z.ai/"
44+
],
45+
"js": ["send-prompt-content-script.js"]
46+
}
47+
],
48+
"manifest_version": 2,
49+
"browser_action": {
50+
"default_title": "Autofill for Code Web Chat",
51+
"default_popup": "popup.html"
52+
},
53+
"optional_permissions": ["cookies"]
54+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.Popup__popup__aa46c {
2+
text-align: center;
3+
flex-direction: column;
4+
align-items: center;
5+
gap: 12px;
6+
padding: 16px;
7+
display: flex;
8+
}
9+
.Popup__popup__title__745ab {
10+
margin: 0;
11+
font-family: Bangers;
12+
font-size: 24px;
13+
}
14+
.Popup__popup__firefox__8b8ff {
15+
border-top: 1px solid #eee;
16+
flex-direction: column;
17+
align-items: center;
18+
gap: 8px;
19+
width: 100%;
20+
padding-top: 12px;
21+
display: flex;
22+
}
23+
.Popup__popup__profile-name__e5c4e {
24+
flex-direction: column;
25+
align-items: center;
26+
gap: 8px;
27+
width: 100%;
28+
display: flex;
29+
}
30+
.Popup__popup__input-label__f41e1 {
31+
align-self: flex-start;
32+
font-size: 14px;
33+
}
34+
.Popup__popup__profile-name-input__ecfc3 {
35+
box-sizing: border-box;
36+
border: 1px solid #ccc;
37+
border-radius: 4px;
38+
width: 100%;
39+
padding: 6px;
40+
}
41+
.Popup__popup__enable-button__a1f49 {
42+
color: #fff;
43+
background: #0060df;
44+
border-radius: 4px;
45+
padding: 8px 16px;
46+
font-size: 14px;
47+
}
48+
.Popup__popup__select-label__4d448 {
49+
align-self: flex-start;
50+
font-size: 14px;
51+
}
52+
.Popup__popup__container-select__e372e {
53+
box-sizing: border-box;
54+
border: 1px solid #ccc;
55+
border-radius: 4px;
56+
width: 100%;
57+
padding: 6px;
58+
}
59+
/*$vite$:1*/

0 commit comments

Comments
 (0)