1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-16 15:33:38 +01:00

Fix typos in README, docs, and JS comments

This commit is contained in:
myersg86 2022-03-12 11:50:46 -07:00 committed by Raymond Hill
parent 9dfe21f12f
commit 6573a59a59
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
14 changed files with 18 additions and 18 deletions

View File

@ -15,7 +15,7 @@
uBlock Origin uBlock Origin
</h1> </h1>
<p align="center"> <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. pronounced <i>you-block origin</i> (<code>/ˈjuːˌblɒk/</code>) — <i>you</i> decide what enters your browser.
</sup> </sup>
<br> <br>

View File

@ -7,7 +7,7 @@
! invalid cases, by typically adding the list to uBO, disabling the list, ! invalid cases, by typically adding the list to uBO, disabling the list,
! and viewing it in uBO's asset viewer. ! 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 ! filtering parser, submit the changes in your fork of uBO by opening an
! issue at https://github.com/uBlockOrigin/uBlock-issues/issues ! issue at https://github.com/uBlockOrigin/uBlock-issues/issues

View File

@ -1,6 +1,6 @@
# Metropolis # 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) ![Metropolis](./Specimens/Metro-1.png)

View File

@ -140,7 +140,7 @@ const selectIDB = async function() {
// property was already set, so this means uBO can detect here whether // property was already set, so this means uBO can detect here whether
// the database can be opened successfully. A try-catch block is // the database can be opened successfully. A try-catch block is
// necessary when reading the `error` property because we are not // 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). // implementation of IDBRequest (my understanding).
const getDb = function() { const getDb = function() {

View File

@ -31,7 +31,7 @@ import { hostnameFromURI } from './uri-utils.js';
µb.canUseShortcuts = vAPI.commands instanceof Object; µb.canUseShortcuts = vAPI.commands instanceof Object;
// https://github.com/uBlockOrigin/uBlock-issues/issues/386 // 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; µb.canUpdateShortcuts = false;
if ( if (

View File

@ -95,7 +95,7 @@
The domFilterer makes use of platform-dependent user stylesheets[1]. The domFilterer makes use of platform-dependent user stylesheets[1].
[1] "user stylesheets" refer to local CSS rules which have priority over, [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.
*/ */

View File

@ -180,7 +180,7 @@ SelectorCacheEntry.junkyard = [];
// High-medium generic: [href^="..."] // High-medium generic: [href^="..."]
// High-high generic: everything else // High-high generic: everything else
// Specific // Specific
// Specfic hostname // Specific hostname
// Specific entity // Specific entity
// Generic filters can only be enforced once the main document is loaded. // Generic filters can only be enforced once the main document is loaded.
// Specific filers can be enforced before the main document is loaded. // Specific filers can be enforced before the main document is loaded.

View File

@ -344,7 +344,7 @@ const processLoggerEntries = function(response) {
/******************************************************************************/ /******************************************************************************/
const parseLogEntry = function(details) { 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' ) { if ( details.realm === 'cosmetic' ) {
details.realm = 'extended'; details.realm = 'extended';
} }
@ -490,7 +490,7 @@ const viewPort = (( ) => {
vwContent.style.top = `${lastTopPix}px`; vwContent.style.top = `${lastTopPix}px`;
}; };
// Coallesce scroll events // Coalesce scroll events
const onScroll = function() { const onScroll = function() {
if ( scrollTimer !== undefined ) { return; } if ( scrollTimer !== undefined ) { return; }
scrollTimer = setTimeout( scrollTimer = setTimeout(
@ -1384,7 +1384,7 @@ const reloadTab = function(ev) {
return; return;
} }
// Hightlight corresponding element in target web page // Highlight corresponding element in target web page
if ( tcl.contains('picker') ) { if ( tcl.contains('picker') ) {
ev.stopPropagation(); ev.stopPropagation();
messaging.send('loggerUI', { messaging.send('loggerUI', {

View File

@ -73,7 +73,7 @@ import './benchmarks.js';
/******************************************************************************/ /******************************************************************************/
// Default handler // Default handler
// priviledged // privileged
{ {
// >>>>> start of local scope // >>>>> start of local scope

View File

@ -914,8 +914,8 @@ const gotoURL = function(ev) {
/******************************************************************************/ /******************************************************************************/
// The popup panel is made of sections. Visiblity of sections can // The popup panel is made of sections. Visibility of sections can
// be toggle on/off. // be toggled on/off.
const maxNumberOfSections = 6; const maxNumberOfSections = 6;
const sectionFirewallBit = 0b10000; const sectionFirewallBit = 0b10000;
@ -1366,7 +1366,7 @@ const getPopupData = async function(tabId, first = false) {
}; };
// The purpose of the following code is to reset to a vertical layout // 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. // layout.
// To avoid querying a spurious viewport width -- it happens sometimes, // To avoid querying a spurious viewport width -- it happens sometimes,
// somehow -- we delay layout-changing operations to the next paint // somehow -- we delay layout-changing operations to the next paint

View File

@ -697,7 +697,7 @@ let renderOnce = function() {
if ( document.body.classList.contains('responsive') ) { return; } if ( document.body.classList.contains('responsive') ) { return; }
// For large displays: we do not want the left pane -- optional and // 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 // dictates the height of the popup, and the left pane will have a
// scrollbar if ever its height is more than what is available. // scrollbar if ever its height is more than what is available.
// For small displays: we use the whole viewport. // For small displays: we use the whole viewport.

View File

@ -2500,7 +2500,7 @@ const NetOptionsIterator = class {
if ( lval === 0 && hasBits(bits, BITEqual) ) { lval = i; } if ( lval === 0 && hasBits(bits, BITEqual) ) { lval = i; }
i += 3; i += 3;
} }
// Check for proper assignement // Check for proper assignment
let assigned = false; let assigned = false;
if ( good && lval !== 0 ) { if ( good && lval !== 0 ) {
good = assigned = slices[lval+2] === 1 && lval + 3 !== i; good = assigned = slices[lval+2] === 1 && lval + 3 !== i;

View File

@ -1492,7 +1492,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
/******************************************************************************/ /******************************************************************************/
// https://github.com/gorhill/uBlock/issues/2344 // 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 // https://github.com/gorhill/uBlock/issues/3210
// Support ability to auto-enable a filter list based on user agent. // Support ability to auto-enable a filter list based on user agent.
// https://github.com/gorhill/uBlock/pull/3860 // https://github.com/gorhill/uBlock/pull/3860

View File

@ -16,7 +16,7 @@ https://github.com/gorhill/lz4-wasm
The purpose is to instanciate a WebAssembly- or pure javascript-based The purpose is to instanciate a WebAssembly- or pure javascript-based
LZ4 block codec. 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 create a WebAssembly-based instance. If for whatever reason this fails, a
pure javascript-based instance will be created. pure javascript-based instance will be created.