Skip to content

Commit

Permalink
Fix typos in README, docs, and JS comments
Browse files Browse the repository at this point in the history
  • Loading branch information
myersg86 authored and gorhill committed Mar 13, 2022
1 parent 9dfe21f commit 6573a59
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
uBlock Origin
</h1>
<p align="center">
<sup> <!-- Pronounciation -->
<sup> <!-- Pronunciation -->
pronounced <i>you-block origin</i> (<code>/ˈjuːˌblɒk/</code>) — <i>you</i> decide what enters your browser.
</sup>
<br>
Expand Down
2 changes: 1 addition & 1 deletion docs/tests/static-filtering-parser-checklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
! invalid cases, by typically adding the list to uBO, disabling the list,
! and viewing it in uBO's asset viewer.
!
! Feel free to add more entries to more throughly validate the static
! Feel free to add more entries to more thoroughly validate the static
! filtering parser, submit the changes in your fork of uBO by opening an
! issue at https://github.com/uBlockOrigin/uBlock-issues/issues

Expand Down
2 changes: 1 addition & 1 deletion src/css/fonts/Metropolis/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Metropolis

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.
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.

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

Expand Down
2 changes: 1 addition & 1 deletion src/js/cachestorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const selectIDB = async function() {
// property was already set, so this means uBO can detect here whether
// the database can be opened successfully. A try-catch block is
// necessary when reading the `error` property because we are not
// allowed to read this propery outside of event handlers in newer
// allowed to read this property outside of event handlers in newer
// implementation of IDBRequest (my understanding).

const getDb = function() {
Expand Down
2 changes: 1 addition & 1 deletion src/js/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { hostnameFromURI } from './uri-utils.js';
µb.canUseShortcuts = vAPI.commands instanceof Object;

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

if (
Expand Down
2 changes: 1 addition & 1 deletion src/js/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
The domFilterer makes use of platform-dependent user stylesheets[1].
[1] "user stylesheets" refer to local CSS rules which have priority over,
and can't be overriden by a web page's own CSS rules.
and can't be overridden by a web page's own CSS rules.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/js/cosmetic-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ SelectorCacheEntry.junkyard = [];
// High-medium generic: [href^="..."]
// High-high generic: everything else
// Specific
// Specfic hostname
// Specific hostname
// Specific entity
// Generic filters can only be enforced once the main document is loaded.
// Specific filers can be enforced before the main document is loaded.
Expand Down
6 changes: 3 additions & 3 deletions src/js/logger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const processLoggerEntries = function(response) {
/******************************************************************************/

const parseLogEntry = function(details) {
// Patch realm until changed all over codebase to make this unecessary
// Patch realm until changed all over codebase to make this unnecessary
if ( details.realm === 'cosmetic' ) {
details.realm = 'extended';
}
Expand Down Expand Up @@ -490,7 +490,7 @@ const viewPort = (( ) => {
vwContent.style.top = `${lastTopPix}px`;
};

// Coallesce scroll events
// Coalesce scroll events
const onScroll = function() {
if ( scrollTimer !== undefined ) { return; }
scrollTimer = setTimeout(
Expand Down Expand Up @@ -1384,7 +1384,7 @@ const reloadTab = function(ev) {
return;
}

// Hightlight corresponding element in target web page
// Highlight corresponding element in target web page
if ( tcl.contains('picker') ) {
ev.stopPropagation();
messaging.send('loggerUI', {
Expand Down
2 changes: 1 addition & 1 deletion src/js/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import './benchmarks.js';
/******************************************************************************/

// Default handler
// priviledged
// privileged

{
// >>>>> start of local scope
Expand Down
6 changes: 3 additions & 3 deletions src/js/popup-fenix.js
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,8 @@ const gotoURL = function(ev) {

/******************************************************************************/

// The popup panel is made of sections. Visiblity of sections can
// be toggle on/off.
// The popup panel is made of sections. Visibility of sections can
// be toggled on/off.

const maxNumberOfSections = 6;
const sectionFirewallBit = 0b10000;
Expand Down Expand Up @@ -1366,7 +1366,7 @@ const getPopupData = async function(tabId, first = false) {
};

// The purpose of the following code is to reset to a vertical layout
// should the viewport not be enough wide to accomodate the horizontal
// should the viewport not be enough wide to accommodate the horizontal
// layout.
// To avoid querying a spurious viewport width -- it happens sometimes,
// somehow -- we delay layout-changing operations to the next paint
Expand Down
2 changes: 1 addition & 1 deletion src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ let renderOnce = function() {
if ( document.body.classList.contains('responsive') ) { return; }

// For large displays: we do not want the left pane -- optional and
// hidden by defaut -- to dictate the height of the popup. The right pane
// hidden by default -- to dictate the height of the popup. The right pane
// dictates the height of the popup, and the left pane will have a
// scrollbar if ever its height is more than what is available.
// For small displays: we use the whole viewport.
Expand Down
2 changes: 1 addition & 1 deletion src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ const NetOptionsIterator = class {
if ( lval === 0 && hasBits(bits, BITEqual) ) { lval = i; }
i += 3;
}
// Check for proper assignement
// Check for proper assignment
let assigned = false;
if ( good && lval !== 0 ) {
good = assigned = slices[lval+2] === 1 && lval + 3 !== i;
Expand Down
2 changes: 1 addition & 1 deletion src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
/******************************************************************************/

// https://github.com/gorhill/uBlock/issues/2344
// Support mutliple locales per filter list.
// Support multiple locales per filter list.
// https://github.com/gorhill/uBlock/issues/3210
// Support ability to auto-enable a filter list based on user agent.
// https://github.com/gorhill/uBlock/pull/3860
Expand Down
2 changes: 1 addition & 1 deletion src/lib/lz4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ https://github.com/gorhill/lz4-wasm
The purpose is to instanciate a WebAssembly- or pure javascript-based
LZ4 block codec.

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

Expand Down

0 comments on commit 6573a59

Please sign in to comment.