Skip to content

Commit

Permalink
update popup page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishihara-Daiki committed Aug 3, 2021
1 parent d30dbd5 commit a512c48
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 22 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ Chromeウェブストア未公開のため、ソースコードをダウンロ


## 使い方
1. 拡張機能のオプションページを開きます。
オプションページの開き方は2種類あります。
- [`chrome://extensions/`](chrome://extensions/)の拡張機能の「詳細」ボタン→画面スクロールして「拡張機能のオプション」をクリックします。
- 拡張機能アイコンをクリック
1. オプションページで、使用したい機能をオンにします。(デフォルトはすべてオフ)
1. ブラウザ右上のアイコン <img src="./docs/images/extension_icon.png" width="16"> をクリックします。
2. chat helper を選択します。ピン止めしておくと便利です。
3. 設定画面を開き、必要な設定をオンにします。
4. 設定を反映するために、chat画面を更新します。


## 機能
Expand Down
Binary file added docs/images/extension_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/browser_action/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
</head>
<body>
<h1>Chat Helper</h1>
<p><a target="_blank" href="../options_page/options.html">詳細設定</a></p>
<p><a target="_blank" href="../options_page/options.html">設定画面を開く</a></p>
<footer>
<p>by <a target="_blank" href="https://nishihara-daiki.github.io/">Nishihara Daiki</a> (2021)</p>
</footer>
</body>
</html>
36 changes: 22 additions & 14 deletions src/browser_action/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,31 @@ html {
}

body {
padding: 16px;
min-width: 256px;
padding: 0;
min-width: 256px;
background-color: #f0f0f0;
}

input[type="checkbox"] {
margin-right: 8px;
width: 16px;
height: 16px;
display: inline-block;
h1 {
padding: 0 16px;
}

ul {
padding: 0;
p {
margin-bottom: 16px;
padding: 0 16px;
}

footer {
background-color: #333;
color: #ccc
}

li {
font-size: 1rem;
list-style: none;
line-height: 2rem;
}
footer p {
margin: 0 auto;
padding: 16px;
text-align: center;
}

footer a {
color: inherit;
}
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"scripts": []
},
"browser_action": {
"default_popup": "options_page/options.html"
"default_popup": "browser_action/popup.html"
},
"options_page": "options_page/options.html",
"permissions": [
Expand Down
2 changes: 1 addition & 1 deletion src/options_page/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<h1>Settings - Chat Helper</h1>
<div><p>設定を反映するには、チャットのページの更新が必要です。未実装の機能は、今後追加予定ですが、変更となる場合があります。</p></div>
<div><p>設定を反映するには、チャットのページの更新が必要です。未実装の機能は、今後追加予定ですが、変更となる場合があります。<a target="_blank" href="https://github.com/Nishihara-Daiki/chat-helper/blob/master/docs/functions.md">機能紹介</a></a></p></div>
<div>
<button id="turn_on_all">全てON</button>
<button id="turn_off_all">全てOFF</button>
Expand Down

0 comments on commit a512c48

Please sign in to comment.