Typo fixes & addign words to dictionary

This commit is contained in:
Tamius Han 2020-05-16 20:52:37 +02:00
parent c17e6f0f6d
commit 84470846ef
8 changed files with 57 additions and 18 deletions

39
.vscode/settings.json vendored
View File

@ -1,30 +1,69 @@
{ {
"cSpell.words": [ "cSpell.words": [
"PILLARBOX",
"PILLARBOXED",
"aard",
"ardetector", "ardetector",
"autodetect",
"autodetection", "autodetection",
"blackbar", "blackbar",
"blackbars",
"blackframe", "blackframe",
"canvas", "canvas",
"com",
"comms", "comms",
"csui",
"decycle", "decycle",
"disneyplus",
"equalish", "equalish",
"fuckup",
"gfycat",
"gmail",
"guardline",
"han",
"iframe",
"imgur",
"insta", "insta",
"letterboxed",
"manjaro",
"minification", "minification",
"nogrow",
"noshrink",
"outro",
"polyfill",
"recursing", "recursing",
"reddit", "reddit",
"rescan", "rescan",
"resizer", "resizer",
"scrollbar",
"smallcaps",
"suboption",
"tabitem",
"tablist",
"tamius",
"textbox", "textbox",
"ultrawidify",
"unmark",
"unmarking",
"unshift",
"uwid",
"uwui",
"videodata", "videodata",
"vids",
"vuejs",
"vuex", "vuex",
"webextension",
"webextensions",
"youtube" "youtube"
], ],
"cSpell.ignoreWords": [ "cSpell.ignoreWords": [
"abcdefghijklmnopqrstuvwxyz",
"autoar", "autoar",
"cheight", "cheight",
"cwidth", "cwidth",
"fcstart", "fcstart",
"fctime", "fctime",
"legacycd",
"ncol", "ncol",
"nrow", "nrow",
"tickrate", "tickrate",

View File

@ -1,5 +1,5 @@
{ {
"name": "ultravidify", "name": "ultrawidify",
"version": "4.4.7", "version": "4.4.7",
"description": "Aspect ratio fixer for youtube and other sites, with automatic aspect ratio detection. Supports ultrawide and other ratios.", "description": "Aspect ratio fixer for youtube and other sites, with automatic aspect ratio detection. Supports ultrawide and other ratios.",
"author": "Tamius Han <tamius.han@gmail.com>", "author": "Tamius Han <tamius.han@gmail.com>",

View File

@ -351,7 +351,7 @@ const ExtensionConfPatch = [
'100%' '100%'
] ]
} }
// 'width': true // this would prevent aard from runing if <video> had a 'width' property in style, regardless of value // 'width': true // this would prevent aard from running if <video> had a 'width' property in style, regardless of value
// could also be an empty object, in theory. // could also be an empty object, in theory.
} }
} }

View File

@ -50,7 +50,7 @@ var ExtensionConf = {
// component. Average intensity is normalized to where 0 is black and 1 is biggest value for // component. Average intensity is normalized to where 0 is black and 1 is biggest value for
// that component. If sum of differences between normalized average intensity and normalized // that component. If sum of differences between normalized average intensity and normalized
// component varies more than this % between color components, we can afford to use less strict // component varies more than this % between color components, we can afford to use less strict
// cummulative treshold. // cumulative threshold.
cumulativeThresholdLax: 1600, cumulativeThresholdLax: 1600,
cumulativeThresholdStrict: 2560,// if we add values of all pixels together and get more than this, the frame is bright enough. cumulativeThresholdStrict: 2560,// if we add values of all pixels together and get more than this, the frame is bright enough.
// (note: blackframe is 16x9 px -> 144px total. cumulative threshold can be reached fast) // (note: blackframe is 16x9 px -> 144px total. cumulative threshold can be reached fast)
@ -64,7 +64,7 @@ var ExtensionConf = {
threshold: 16, // if pixel is darker than the sum of black level and this value, we count it as black threshold: 16, // if pixel is darker than the sum of black level and this value, we count it as black
// on 0-255. Needs to be fairly high (8 might not cut it) due to compression // on 0-255. Needs to be fairly high (8 might not cut it) due to compression
// artifacts in the video itself // artifacts in the video itself
frameThreshold: 4, // treshold, but when doing blackframe test frameThreshold: 4, // threshold, but when doing blackframe test
imageThreshold: 16, // in order to detect pixel as "not black", the pixel must be brighter than imageThreshold: 16, // in order to detect pixel as "not black", the pixel must be brighter than
// the sum of black level, threshold and this value. // the sum of black level, threshold and this value.
gradientThreshold: 2, // When trying to determine thickness of the black bars, we take 2 values: position of gradientThreshold: 2, // When trying to determine thickness of the black bars, we take 2 values: position of
@ -72,7 +72,7 @@ var ExtensionConf = {
// brighter than our image threshold. If positions are more than this many pixels apart, // brighter than our image threshold. If positions are more than this many pixels apart,
// we assume we aren't looking at letterbox and thus don't correct the aspect ratio. // we assume we aren't looking at letterbox and thus don't correct the aspect ratio.
gradientSampleSize: 16, // How far do we look to find the gradient gradientSampleSize: 16, // How far do we look to find the gradient
maxGradient: 6, // if two neighbouring pixels in gradientSampleSize differ by more than this, then we aren't maxGradient: 6, // if two neighboring pixels in gradientSampleSize differ by more than this, then we aren't
// looking at a gradient // looking at a gradient
gradientNegativeTreshold: -2, gradientNegativeTreshold: -2,
gradientMaxSD: 6, // reserved for future use gradientMaxSD: 6, // reserved for future use
@ -173,7 +173,7 @@ var ExtensionConf = {
// Polje 'shortcut' je tabela, če se slučajno lotimo kdaj delati choordov. // Polje 'shortcut' je tabela, če se slučajno lotimo kdaj delati choordov.
actions: [{ actions: [{
name: 'Trigger automatic detection', // name displayed in settings name: 'Trigger automatic detection', // name displayed in settings
label: 'Automatic', // name displayed in ui (can be overriden in scope/playerUi) label: 'Automatic', // name displayed in ui (can be overridden in scope/playerUi)
cmd: [{ cmd: [{
action: 'set-ar', action: 'set-ar',
arg: AspectRatio.Automatic, arg: AspectRatio.Automatic,
@ -1047,7 +1047,7 @@ var ExtensionConf = {
'100%' '100%'
] ]
} }
// 'width': true // this would prevent aard from runing if <video> had a 'width' property in style, regardless of value // 'width': true // this would prevent aard from running if <video> had a 'width' property in style, regardless of value
// could also be an empty object, in theory. // could also be an empty object, in theory.
} }
} }
@ -1079,7 +1079,7 @@ var ExtensionConf = {
'100%' '100%'
] ]
} }
// 'width': true // this would prevent aard from runing if <video> had a 'width' property in style, regardless of value // 'width': true // this would prevent aard from running if <video> had a 'width' property in style, regardless of value
// could also be an empty object, in theory. // could also be an empty object, in theory.
} }
} }

View File

@ -178,7 +178,7 @@ class PageInfo {
if (this.readOnly) { if (this.readOnly) {
// in lite mode, we're done. This is all the info we want, but we want to actually start doing // in lite mode, we're done. This is all the info we want, but we want to actually start doing
// things that interfere with the website. We still want to be runnig a rescan, tho. // things that interfere with the website. We still want to be running a rescan, tho.
if(rescanReason == RescanReason.PERIODIC){ if(rescanReason == RescanReason.PERIODIC){
this.scheduleRescan(RescanReason.PERIODIC); this.scheduleRescan(RescanReason.PERIODIC);
@ -252,7 +252,7 @@ class PageInfo {
// našli ob naslednjem preiskovanju // našli ob naslednjem preiskovanju
// //
// if we encounter a fuckup, we can assume that no videos were found on the page. We destroy all videoData // if we encounter a fuckup, we can assume that no videos were found on the page. We destroy all videoData
// objects to prevent multiple initalization (which happened, but I don't know why). No biggie if we destroyed // objects to prevent multiple initialization (which happened, but I don't know why). No biggie if we destroyed
// videoData objects in error — they'll be back in the next rescan // videoData objects in error — they'll be back in the next rescan
this.logger.log('error', 'debug', "rescan error: — destroying all videoData objects",e); this.logger.log('error', 'debug', "rescan error: — destroying all videoData objects",e);
for (const v of this.videos) { for (const v of this.videos) {
@ -567,7 +567,7 @@ class PageInfo {
} }
setKeyboardShortcutsEnabled(state) { setKeyboardShortcutsEnabled(state) {
this.actionHandler.setKeybordLocal(state); this.actionHandler.setKeyboardLocal(state);
} }
setArPersistence(persistenceMode) { setArPersistence(persistenceMode) {

View File

@ -129,7 +129,7 @@ class PlayerData {
try { try {
this.doPeriodicPlayerElementChangeCheck(); this.doPeriodicPlayerElementChangeCheck();
} catch (e) { } catch (e) {
console.error('[playerdata::legacycd] this message is pretty high on the list of messages you shouldnt see', e); console.error('[PlayerData::legacycd] this message is pretty high on the list of messages you shouldnt see', e);
} }
} }
} }

View File

@ -76,7 +76,7 @@ class Stretcher {
// poznamo. Torej jih moramo računati. // poznamo. Torej jih moramo računati.
// //
// //
// video.videoWidht and video.videoHeight describe the size of the video file. // video.videoWidth and video.videoHeight describe the size of the video file.
// Size of the video file can be different than the size of the <video> tag. // Size of the video file can be different than the size of the <video> tag.
// This can leave us with the following situation: // This can leave us with the following situation:
// * Video resolution is 850x480-ish (as reported by videoWidth and videoHeight) // * Video resolution is 850x480-ish (as reported by videoWidth and videoHeight)
@ -103,7 +103,7 @@ class Stretcher {
const videoAr = this.conf.video.videoWidth / this.conf.video.videoHeight; const videoAr = this.conf.video.videoWidth / this.conf.video.videoHeight;
const playerAr = this.conf.player.dimensions.width / this.conf.player.dimensions.height; const playerAr = this.conf.player.dimensions.width / this.conf.player.dimensions.height;
const squezeFactor = this.fixedStretchRatio / videoAr; const squeezeFactor = this.fixedStretchRatio / videoAr;
// Whether squeezing happens on X or Y axis depends on whether required AR is wider or narrower than // Whether squeezing happens on X or Y axis depends on whether required AR is wider or narrower than
// the player, in which the video is displayed // the player, in which the video is displayed
@ -115,13 +115,13 @@ postCropStretchFactors: x=${postCropStretchFactors.xFactor} y=${postCropStretchF
fixedStretchRatio: ${this.fixedStretchRatio} fixedStretchRatio: ${this.fixedStretchRatio}
videoAr: ${videoAr} videoAr: ${videoAr}
playerAr: ${playerAr} playerAr: ${playerAr}
squeezeFactor: ${squezeFactor}`, '\nvideo', this.conf.video); squeezeFactor: ${squeezeFactor}`, '\nvideo', this.conf.video);
if (this.fixedStretchRatio < playerAr) { if (this.fixedStretchRatio < playerAr) {
postCropStretchFactors.xFactor *= squezeFactor; postCropStretchFactors.xFactor *= squeezeFactor;
} else { } else {
postCropStretchFactors.yFactor *= squezeFactor; postCropStretchFactors.yFactor *= squeezeFactor;
} }
this.logger.log('info', 'stretcher', `[Stretcher::applyStretchFixedSource] here's what we'll apply:\npostCropStretchFactors: x=${postCropStretchFactors.x} y=${postCropStretchFactors.y}`); this.logger.log('info', 'stretcher', `[Stretcher::applyStretchFixedSource] here's what we'll apply:\npostCropStretchFactors: x=${postCropStretchFactors.x} y=${postCropStretchFactors.y}`);

View File

@ -349,7 +349,7 @@ export default {
// Extension global disabled show 'extension settings' // Extension global disabled show 'extension settings'
// Extension site disabled, no embedded videos show 'site settings' // Extension site disabled, no embedded videos show 'site settings'
// Extension site disabled, embedded videos from non-blacklisted hosts show video settings // Extension site disabled, embedded videos from non-blacklisted hosts show video settings
// Extension site enabled show vido settings // Extension site enabled show video settings
// note: this if statement is ever so slightly unnecessary // note: this if statement is ever so slightly unnecessary
if (! this.settings.canStartExtension('@global')) { if (! this.settings.canStartExtension('@global')) {