This commit is contained in:
Mr. Stallion 2021-02-26 15:46:34 -06:00
parent 0d45848cfe
commit 00f2e2ba03
6 changed files with 30 additions and 10 deletions

View File

@ -1,7 +1,8 @@
# Changelog
## Canary
## 1.10.1
* Improved performance on highly advertised channels like LFRP
* Fixed Rule34.xxx previews
## 1.10.0

View File

@ -1,7 +1,7 @@
# Download
[Windows](https://github.com/mrstallion/fchat-rising/releases/download/v1.10.0/F-Chat-Rising-1.10.0-win.exe) (75 MB)
| [MacOS](https://github.com/mrstallion/fchat-rising/releases/download/v1.10.0/F-Chat-Rising-1.10.0-macos.dmg) (76 MB)
| [Linux](https://github.com/mrstallion/fchat-rising/releases/download/v1.10.0/F-Chat-Rising-1.10.0-linux.AppImage) (76 MB)
[Windows](https://github.com/mrstallion/fchat-rising/releases/download/v1.10.1/F-Chat-Rising-1.10.1-win.exe) (75 MB)
| [MacOS](https://github.com/mrstallion/fchat-rising/releases/download/v1.10.1/F-Chat-Rising-1.10.1-macos.dmg) (76 MB)
| [Linux](https://github.com/mrstallion/fchat-rising/releases/download/v1.10.1/F-Chat-Rising-1.10.1-linux.AppImage) (76 MB)
# F-Chat Rising

View File

@ -28,6 +28,8 @@ class FListImagePreviewDomMutator {
};
/* ## SETTINGS_END ## */
// this.settings.debug = true;
this.startTime = Date.now();
this.selectors = this.settings.selectors;
@ -188,7 +190,9 @@ class FListImagePreviewDomMutator {
}
attemptPlay(img, lessStrict) {
async attemptPlay(img, lessStrict) {
this.debug('attemptPlay', img, lessStrict);
try {
if (
(img.play)
@ -198,9 +202,24 @@ class FListImagePreviewDomMutator {
)
)
{
img.onpause = () => {
img.muted = true;
img.loop = true;
img.play();
};
img.muted = true;
img.loop = true;
img.play();
const result = await img.play();
img.muted = true;
img.loop = true;
this.debug('attemptPlay result', result);
}
else {
this.debug('attemptPlay skip', img.ended, img.currentTime);
}
} catch (err) {
this.error('attemptPlay', err, img, lessStrict);
@ -255,7 +274,7 @@ class FListImagePreviewDomMutator {
try {
img.parentNode.removeChild(img);
} catch(err2) {
console.error('attachImgToWrapper', 'removeChild()', err2);
this.error('attachImgToWrapper', 'removeChild()', err2);
}
}

View File

@ -50,7 +50,7 @@ theme: jekyll-theme-slate
changelog: https://github.com/mrstallion/fchat-rising/blob/master/CHANGELOG.md
download:
version: 1.10.0
version: 1.10.1
url: https://github.com/mrstallion/fchat-rising/releases/download/v%VERSION%/F-Chat-Rising-%VERSION%-%PLATFORM_TAIL%

View File

@ -1,6 +1,6 @@
{
"name": "fchat",
"version": "1.10.0",
"version": "1.10.1",
"author": "The F-List Team and Mister Stallion (Esq.)",
"description": "F-List.net Chat Client",
"main": "main.js",

View File

@ -1,6 +1,6 @@
{
"name": "f-list-rising",
"version": "1.10.0",
"version": "1.10.1",
"author": "The F-List Team and and Mister Stallion (Esq.)",
"description": "A heavily modded F-Chat 3.0 client for F-List",
"license": "MIT",