Whitespace

This commit is contained in:
Tamius Han 2021-10-25 23:11:34 +02:00
parent 746a78577e
commit a4948d3eef
5 changed files with 146 additions and 134 deletions

View File

@ -22,6 +22,13 @@ interface ActionScopeInterface {
}[],
}
interface RestrictionsSettings {
disableOnSmallPlayers?: boolean; // Whether ultrawidify should disable itself when the player is small
minAllowedWidth?: number; // if player is less than this many px wide, ultrawidify will disable itself
minAllowedHeight?: number; // if player is less than this many px tall, ultrawidify will disable itself
onlyAllowInFullscreen?: boolean; // if enabled, ultrawidify will be disabled when not in full screen regardless of what previous two options say
}
interface SettingsInterface {
arDetect: {
disabledReason: string, // if automatic aspect ratio has been disabled, show reason
@ -150,11 +157,15 @@ interface SettingsInterface {
testRowOffset: number // we test this % of height from detected edge
}
},
restrictions?: RestrictionsSettings;
zoom: {
minLogZoom: number,
maxLogZoom: number,
announceDebounce: number // we wait this long before announcing new zoom
},
miscSettings: {
mousePan: {
enabled: boolean
@ -286,6 +297,8 @@ interface SettingsInterface {
},
css?: string;
usePlayerArInFullscreen?: boolean;
restrictions?: RestrictionsSettings;
}
}
}

View File

@ -361,7 +361,6 @@ class PlayerData {
element = element.parentNode;
}
if (element) {
this.updatePlayerDimensions(element);
return element;
}
} else if (this.settings.active.sites[host]?.DOM?.player?.querySelectors) {

View File

@ -537,7 +537,7 @@ class VideoData {
}
/**
* Some sites try to accomodate ultrawide users by "cropping" videos
* Some sites try to accommodate ultrawide users by "cropping" videos
* by setting 'style' attribute of the video element to 'height: X%',
* where 'X' is something greater than 100.
*