Skip to content

Commit e378a4c

Browse files
committed
tweak options ui
1 parent 9571712 commit e378a4c

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

pakkujs/page/options.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@
224224
pointer-events: none;
225225
}
226226
label[for=show-advanced], .advanced:not(.warning) {
227-
background-color: rgba(0, 0, 255, .09);
227+
background-color: rgba(0, 0, 255, .08);
228+
border-inline: .2em solid transparent;
229+
border-radius: .3em;
228230
}
229231
body:not(.i-am-advanced) .advanced:not(.js-show-this) {
230232
display: none;
@@ -331,7 +333,7 @@
331333
<td>例外设置</td>
332334
<td>
333335
<div class="advanced">
334-
<p><b>强制合并</b>:(符合这些规则的弹幕,在比较是否相同时会对内容进行替换</p>
336+
<p><b>内容替换</b>:(符合这些规则的弹幕,判断是否合并前会先对内容进行替换</p>
335337
<form id="newforcelist-form">
336338
<p>
337339
<input id="newforcelist-pattern" class="code" placeholder="正则表达式" required>
@@ -343,15 +345,15 @@
343345
</form>
344346
<div class="list" id="forcelist"></div>
345347
<p>
346-
<b>规则命中时</b>
348+
<b>内容替换规则命中时</b>
347349
<input id="forcelist-continue-on-match" type="checkbox">
348350
<label for="forcelist-continue-on-match">继续尝试匹配后续规则</label>
349351
/
350352
<input id="forcelist-apply-singular" type="checkbox">
351353
<label for="forcelist-apply-singular">即使未触发合并也使用替换后的文本</label>
352354
</p>
353355
<hr>
354-
<p><b>强制忽略</b>:(符合这些规则的弹幕,即使内容相同也不会被合并</p>
356+
<p><b>强制忽略</b>:(符合这些规则的弹幕不会被合并,优先级高于内容替换规则</p>
355357
<form id="newwhitelist-form">
356358
<p>
357359
<input id="newwhitelist-pattern" class="code" placeholder="正则表达式" required>
@@ -582,9 +584,7 @@
582584
* 使数量标记和弹幕密度计算更准确,并避免数量标记影响正则匹配,但将无法在弹幕列表中看到被屏蔽的弹幕;可以在播放器页面的 <code>localStorage</code> 中添加额外的屏蔽词 <a data-help-text="当屏蔽词数量过多,超出播放器限制或者造成了性能问题时,可以将屏蔽词存储在播放器域名的 localStorage 的 pakku_extra_blacklist 项中,pakku 将额外导入这些屏蔽词。\n\n屏蔽词格式与播放器导出的 JSON 格式相同,例如:\n\nlocalStorage['pakku_extra_blacklist'] = JSON.stringify([{type: 1, filter: '^.{1,6}[天时点分钟秒]前', opened: true, id: 0}]);">[?]</a>
583585
</p>
584586
<p>
585-
(一些面向高级用户的 <a href="#show-advanced">复杂的设置</a>
586-
<span class="advanced">现在并没有</span>
587-
被隐藏了)
587+
(一些面向高级用户的 <a href="#show-advanced">复杂的设置</a> <span class="advanced">现在并没有</span>被隐藏了)
588588
</p>
589589
<p>
590590
<button type="button" id="reset">重置所有设置</button>
@@ -621,10 +621,7 @@
621621
</p>
622622
<p>
623623
<strong>想要更多功能?</strong>
624-
<span class="advanced">
625-
<a href="userscript_editor.html">通过用户脚本来自定义</a>
626-
或者
627-
</span>
624+
<span class="advanced"><a href="userscript_editor.html">通过用户脚本来自定义</a> 或者</span>
628625
<a href="https://github.com/xmcp/pakku.js/issues" target="_blank">在 GitHub 上提出</a>
629626
630627
</p>

pakkujs/page/popup.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208

209209
<tr class="status-header-ignored">
210210
<td></td>
211-
<td><a data-options-link="newwhitelist-pattern">根据内容强制忽略</a></td>
211+
<td><a data-options-link="newwhitelist-pattern">命中强制忽略规则</a></td>
212212
<td id="status-ignored_whitelist"></td>
213213
</tr>
214214
<tr class="status-header-ignored">
@@ -240,7 +240,7 @@
240240

241241
<tr class="status-header-info">
242242
<td></td>
243-
<td><a data-options-link="newforcelist-pattern">命中强制合并规则</a></td>
243+
<td><a data-options-link="newforcelist-pattern">命中内容替换规则</a></td>
244244
<td id="status-num_taolu_matched"></td>
245245
</tr>
246246
<tr class="status-header-info">

0 commit comments

Comments
 (0)