Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add mode to restrict this extention. #5

Merged
merged 4 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
coverage/
.tmp-user-data/
test-results/
dist/options/options.ts
2 changes: 1 addition & 1 deletion dist/background.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/content_script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 29 additions & 5 deletions dist/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,37 @@
<h1>Cliplex</h1>
</header>

<!-- ドメインブロック -->
<h2>ドメインブロック設定</h2>
<h2>ドメインフィルターモード</h2>
<div>
<input type="text" id="excludedDomainInput" placeholder="example.com" />
<button id="addExcludedDomainButton">ドメインを追加</button>
<label>
<input type="radio" name="domainFilterMode" value="exclude" id="radioExclude" />
Excludeモード (ブラックリスト: すべてのドメインで拡張機能が機能しますが、指定したドメインのみ機能しないようにします)
</label>
<label>
<input type="radio" name="domainFilterMode" value="include" id="radioInclude" checked/>
Includeモード (ホワイトリスト: 指定したドメインのみ拡張機能が機能します)
</label>
</div>

<!-- Excludeモード設定 -->
<div id="excludeSettings" style="display: none;">
<h2>ドメインブロック設定</h2>
<div>
<input type="text" id="excludedDomainInput" placeholder="example.com" />
<button id="addExcludedDomainButton">ドメインを追加</button>
</div>
<ul id="excludedDomainList"></ul>
</div>

<!-- Includeモード設定 -->
<div id="includeSettings" style="display: none;">
<h2>ドメイン限定設定 (Included)</h2>
<div>
<input type="text" id="includedDomainInput" placeholder="example.org" />
<button id="addIncludedDomainButton">ドメインを追加</button>
</div>
<ul id="includedDomainList"></ul>
</div>
<ul id="excludedDomainList"></ul>

<!-- フィルタ -->
<div>
Expand Down
Loading
Loading