๐ก Chrome Extension (Manifest V3) Dev: Service โ Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for Chrome Extension (Manifest V3) Dev: Service.
Sample
manifest.json
json
{
"manifest_version": 3,
"name": "My First Extension",
"version": "1.0",
"description": "ํด๋ฆญํ๋ฉด ์ธ์ฌ๋ฅผ ๊ฑด๋ค๋ ํ์
ํ๋ก๊ทธ๋จ",
"action": {
"default_popup": "popup.html"
},
"permissions": ["activeTab"]
}
popup.html
html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<style>
body { width: 200px; padding: 10px; font-family: sans-serif; text-align: center; }
button { background: #4ecb99; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
</style>
</head>
<body>
<h3>Hello Extension!</h3>
<button id="btn">ํด๋ฆญํด๋ด</button>
<script src="popup.js"></script>
</body>
</html>
popup.js
javascript
document.getElementById('btn').addEventListener('click', () => {
alert('๋ฐ๊ฐ์ต๋๋ค! ํ์ฅ ํ๋ก๊ทธ๋จ์ด ์ ์ ์๋ ์ค์
๋๋ค.');
});
Exec
Create source
bash
mkdir chrome-extension-test
cd chrome-extension-test
cat <<EOF > manifest.json
{
"manifest_version": 3,
"name": "My First Extension",
"version": "1.0",
"description": "ํด๋ฆญํ๋ฉด ์ธ์ฌ๋ฅผ ๊ฑด๋ค๋ ํ์
ํ๋ก๊ทธ๋จ",
"action": {
"default_popup": "popup.html"
},
"permissions": ["activeTab"]
}
EOF
cat <<EOF > popup.html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<style>
body { width: 200px; padding: 10px; font-family: sans-serif; text-align: center; }
button { background: #4ecb99; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
</style>
</head>
<body>
<h3>Hello Extension!</h3>
<button id="btn">ํด๋ฆญํด๋ด</button>
<script src="popup.js"></script>
</body>
</html>
EOF
cat <<EOF > popup.js
document.getElementById('btn').addEventListener('click', () => {
alert('๋ฐ๊ฐ์ต๋๋ค! ํ์ฅ ํ๋ก๊ทธ๋จ์ด ์ ์ ์๋ ์ค์
๋๋ค.');
});
EOF
Register extension
- After connecting to
chrome://extensions/, turn on developer mode - Select
Load unpacked extensionand select source directory
Compress extension
- After connecting to
chrome://extensions/, turn on developer mode - Select
Compress extensionand select source directory - output:
.crx,.pem




Leave a Reply