Skip to content

Commit

Permalink
Small UI change
Browse files Browse the repository at this point in the history
  • Loading branch information
dthung1602 committed May 15, 2022
1 parent 32d42db commit fd1ad16
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
11 changes: 11 additions & 0 deletions popup/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ textarea {
min-height: 90px;
}

label a {
font-size: 0.95rem;
text-decoration: none;
color: white;
font-style: italic;
}

label a:hover {
text-decoration: underline;
}

.button-container {
display: flex;
justify-content: center;
Expand Down
14 changes: 11 additions & 3 deletions popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,18 @@
<input id="check-interval" value="" type="number" min="200" step="100">
</div>
<div>
<label for="ban-domain" title="Require page refresh to take affect">
Ban domains
<label for="ban-domain">
Ban terms -
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions" target="_blank">
JS regex accepted &#9432;
</a>
</label>
<textarea id="ban-domain" placeholder="Enter ban domains, separated by newlines" rows="5"></textarea>
<textarea
id="ban-domain"
placeholder="Enter ban terms, each on one line. JavaScript regex is accepted. Matching is case insensitive."
rows="5"
>
</textarea>
</div>
<div class="button-container">
<button id="basic-btn"><span>&#171;</span> Basic</button>
Expand Down
2 changes: 1 addition & 1 deletion scripts/clean-spams.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function containBanDomain(node, banDomains) {
if (text.match(regex)) {
return true;
}
} else if (text.includes(domain)) {
} else if (text.includes(domain.toLowerCase())) {
return true;
}
}
Expand Down

0 comments on commit fd1ad16

Please sign in to comment.