Skip to content

Commit 6573a59

Browse files
myersg86gorhill
authored andcommitted
Fix typos in README, docs, and JS comments
1 parent 9dfe21f commit 6573a59

14 files changed

+18
-18
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
uBlock Origin
1616
</h1>
1717
<p align="center">
18-
<sup> <!-- Pronounciation -->
18+
<sup> <!-- Pronunciation -->
1919
pronounced <i>you-block origin</i> (<code>/ˈjuːˌblɒk/</code>) — <i>you</i> decide what enters your browser.
2020
</sup>
2121
<br>

docs/tests/static-filtering-parser-checklist.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
! invalid cases, by typically adding the list to uBO, disabling the list,
88
! and viewing it in uBO's asset viewer.
99
!
10-
! Feel free to add more entries to more throughly validate the static
10+
! Feel free to add more entries to more thoroughly validate the static
1111
! filtering parser, submit the changes in your fork of uBO by opening an
1212
! issue at https://github.com/uBlockOrigin/uBlock-issues/issues
1313

src/css/fonts/Metropolis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Metropolis
22

3-
A modern, geometric typeface. Influenced by other popular geometric, minimalist sans-serif typefaces of the new millenium. Designed for optimal readability at small point sizes while beautiful at large point sizes.
3+
A modern, geometric typeface. Influenced by other popular geometric, minimalist sans-serif typefaces of the new millennium. Designed for optimal readability at small point sizes while beautiful at large point sizes.
44

55
![Metropolis](./Specimens/Metro-1.png)
66

src/js/cachestorage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const selectIDB = async function() {
140140
// property was already set, so this means uBO can detect here whether
141141
// the database can be opened successfully. A try-catch block is
142142
// necessary when reading the `error` property because we are not
143-
// allowed to read this propery outside of event handlers in newer
143+
// allowed to read this property outside of event handlers in newer
144144
// implementation of IDBRequest (my understanding).
145145

146146
const getDb = function() {

src/js/commands.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { hostnameFromURI } from './uri-utils.js';
3131
µb.canUseShortcuts = vAPI.commands instanceof Object;
3232

3333
// https://github.com/uBlockOrigin/uBlock-issues/issues/386
34-
// Firefox 74 and above has complete shotcut assignment user interface.
34+
// Firefox 74 and above has complete shortcut assignment user interface.
3535
µb.canUpdateShortcuts = false;
3636

3737
if (

src/js/contentscript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
The domFilterer makes use of platform-dependent user stylesheets[1].
9696
9797
[1] "user stylesheets" refer to local CSS rules which have priority over,
98-
and can't be overriden by a web page's own CSS rules.
98+
and can't be overridden by a web page's own CSS rules.
9999
100100
*/
101101

src/js/cosmetic-filtering.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ SelectorCacheEntry.junkyard = [];
180180
// High-medium generic: [href^="..."]
181181
// High-high generic: everything else
182182
// Specific
183-
// Specfic hostname
183+
// Specific hostname
184184
// Specific entity
185185
// Generic filters can only be enforced once the main document is loaded.
186186
// Specific filers can be enforced before the main document is loaded.

src/js/logger-ui.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ const processLoggerEntries = function(response) {
344344
/******************************************************************************/
345345

346346
const parseLogEntry = function(details) {
347-
// Patch realm until changed all over codebase to make this unecessary
347+
// Patch realm until changed all over codebase to make this unnecessary
348348
if ( details.realm === 'cosmetic' ) {
349349
details.realm = 'extended';
350350
}
@@ -490,7 +490,7 @@ const viewPort = (( ) => {
490490
vwContent.style.top = `${lastTopPix}px`;
491491
};
492492

493-
// Coallesce scroll events
493+
// Coalesce scroll events
494494
const onScroll = function() {
495495
if ( scrollTimer !== undefined ) { return; }
496496
scrollTimer = setTimeout(
@@ -1384,7 +1384,7 @@ const reloadTab = function(ev) {
13841384
return;
13851385
}
13861386

1387-
// Hightlight corresponding element in target web page
1387+
// Highlight corresponding element in target web page
13881388
if ( tcl.contains('picker') ) {
13891389
ev.stopPropagation();
13901390
messaging.send('loggerUI', {

src/js/messaging.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import './benchmarks.js';
7373
/******************************************************************************/
7474

7575
// Default handler
76-
// priviledged
76+
// privileged
7777

7878
{
7979
// >>>>> start of local scope

src/js/popup-fenix.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,8 @@ const gotoURL = function(ev) {
914914

915915
/******************************************************************************/
916916

917-
// The popup panel is made of sections. Visiblity of sections can
918-
// be toggle on/off.
917+
// The popup panel is made of sections. Visibility of sections can
918+
// be toggled on/off.
919919

920920
const maxNumberOfSections = 6;
921921
const sectionFirewallBit = 0b10000;
@@ -1366,7 +1366,7 @@ const getPopupData = async function(tabId, first = false) {
13661366
};
13671367

13681368
// The purpose of the following code is to reset to a vertical layout
1369-
// should the viewport not be enough wide to accomodate the horizontal
1369+
// should the viewport not be enough wide to accommodate the horizontal
13701370
// layout.
13711371
// To avoid querying a spurious viewport width -- it happens sometimes,
13721372
// somehow -- we delay layout-changing operations to the next paint

src/js/popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ let renderOnce = function() {
697697
if ( document.body.classList.contains('responsive') ) { return; }
698698

699699
// For large displays: we do not want the left pane -- optional and
700-
// hidden by defaut -- to dictate the height of the popup. The right pane
700+
// hidden by default -- to dictate the height of the popup. The right pane
701701
// dictates the height of the popup, and the left pane will have a
702702
// scrollbar if ever its height is more than what is available.
703703
// For small displays: we use the whole viewport.

src/js/static-filtering-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2500,7 +2500,7 @@ const NetOptionsIterator = class {
25002500
if ( lval === 0 && hasBits(bits, BITEqual) ) { lval = i; }
25012501
i += 3;
25022502
}
2503-
// Check for proper assignement
2503+
// Check for proper assignment
25042504
let assigned = false;
25052505
if ( good && lval !== 0 ) {
25062506
good = assigned = slices[lval+2] === 1 && lval + 3 !== i;

src/js/storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
14921492
/******************************************************************************/
14931493

14941494
// https://github.com/gorhill/uBlock/issues/2344
1495-
// Support mutliple locales per filter list.
1495+
// Support multiple locales per filter list.
14961496
// https://github.com/gorhill/uBlock/issues/3210
14971497
// Support ability to auto-enable a filter list based on user agent.
14981498
// https://github.com/gorhill/uBlock/pull/3860

src/lib/lz4/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ https://github.com/gorhill/lz4-wasm
1616
The purpose is to instanciate a WebAssembly- or pure javascript-based
1717
LZ4 block codec.
1818

19-
If the choosen implementation is not specified, there will be an attempt to
19+
If the chosen implementation is not specified, there will be an attempt to
2020
create a WebAssembly-based instance. If for whatever reason this fails, a
2121
pure javascript-based instance will be created.
2222

0 commit comments

Comments
 (0)