Skip to content

Commit

Permalink
NEW-WORDS Added New Words (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai committed Mar 2, 2021
1 parent ff86932 commit 1f06e86
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Firefox/Microsoft Edge Chromium add-on to automatically capitalise words while t
- Capitalise constants such as [days](src/constants.js#L4), [months](src/constants.js#L14)
- Capitalise common [abbreviations](src/abbreviation-constants.js#L1)
- Capitalise common [names](src/name-constants.js#L1)
- Add apostrophe to common [English words](src/constants.js#L81)
- Add apostrophe to common [English words](src/constants.js#L99)

## Configuration/Settings

Expand Down
4 changes: 2 additions & 2 deletions distribution/lib/background.bundle.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions distribution/popup/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,17 @@
<div class="container" id="settings">
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="#excluded_words" class="nav-link active" data-toggle="tab">Excluded words</a>
<a href="#excluded_sites" class="nav-link active" data-toggle="tab">Excluded websites</a>
</li>
<li class="nav-item">
<a href="#excluded_sites" class="nav-link" data-toggle="tab">Excluded websites</a>
<a href="#excluded_words" class="nav-link" data-toggle="tab">Excluded words</a>
</li>
<li class="nav-item">
<a href="#checkboxes" class="nav-link" data-toggle="tab">Enable/disable features</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="excluded_words">
<div class="form-group">
<p class="form-text">Enter words which you don't want to be capitalised.</p>
<textarea id="excluded_words_textbox" rows="4" class="form-control"
placeholder="Add words to exclude"></textarea>
<small class="form-text text-muted">Note: Add each word in a separate row</small>
<span class="input-group-btn">
<input type="button" value="Save" id="submitButtonExcludedWords"
class="btn btn-primary btn-block" disabled>
</span>
</div>
</div>
<div class="tab-pane fade" id="excluded_sites">
<div class="tab-pane fade show active" id="excluded_sites">
<div class="form-group">
<p class="form-text">Enter websites where you want the capitalising to be disabled.</p>
<textarea id="sites" rows="4" class="form-control" placeholder="Add sites to exclude"></textarea>
Expand All @@ -44,6 +32,18 @@
</span>
</div>
</div>
<div class="tab-pane fade" id="excluded_words">
<div class="form-group">
<p class="form-text">Enter words which you don't want to be capitalised.</p>
<textarea id="excluded_words_textbox" rows="4" class="form-control"
placeholder="Add words to exclude"></textarea>
<small class="form-text text-muted">Note: Add each word in a separate row</small>
<span class="input-group-btn">
<input type="button" value="Save" id="submitButtonExcludedWords"
class="btn btn-primary btn-block" disabled>
</span>
</div>
</div>
<div class="tab-pane fade" id="checkboxes">
<div class="form-group">
<input type="checkbox" id="shouldCapitaliseI" name="shouldCapitaliseI" checked>
Expand Down
2 changes: 2 additions & 0 deletions src/abbreviation-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const commonAbbreviations = [
'HTML',
'IBM',
'ICYMI',
'ID',
'IDK',
'IKEA',
'IMO',
Expand Down Expand Up @@ -62,6 +63,7 @@ const commonAbbreviations = [
'RSVP',
'SARS',
'SLR',
'SEO',
'SMH',
'TBA',
'TBC',
Expand Down
2 changes: 2 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const months = [
]

const commonTechWords = [
'AI',
'API',
'APIs',
'Artifactory',
Expand Down Expand Up @@ -54,6 +55,7 @@ const commonTechWords = [
'LibreOffice',
'MVC',
'MariaDB',
'ML',
'MongoDB',
'MySQL',
'Netscape',
Expand Down
1 change: 1 addition & 0 deletions src/name-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,7 @@ let personNames = [
'Louie',
'Louisa',
'Louise',
'Loune',
'Lovecraft',
'Lowe',
'Lowenbrau',
Expand Down

0 comments on commit 1f06e86

Please sign in to comment.