From 1a33af73eaca239d8acc3b0e72f244b5e5f36cae Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" <mrstallion@nobody.nowhere.fauxdomain.ext> Date: Sun, 24 Jan 2021 11:15:42 -0600 Subject: [PATCH] Instagram preview fix --- CHANGELOG.md | 2 +- chat/preview/image-dom-mutator.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index baa4868..5a0ce83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## Canary -* Fixed Gelbooru video previews +* Fixed Gelbooru and Instagram previews * Moved database queries to a web worker to gain more responsive UI diff --git a/chat/preview/image-dom-mutator.ts b/chat/preview/image-dom-mutator.ts index dc093c7..dee9a70 100644 --- a/chat/preview/image-dom-mutator.ts +++ b/chat/preview/image-dom-mutator.ts @@ -173,6 +173,7 @@ export class ImageDomMutator { this.add('rule34.paheal.net', this.getBaseJsMutatorScript(['#main_image', 'video', 'img'])); this.add('xhamster.com', this.getBaseJsMutatorScript(['#photo_slider video', '#photo_slider img', 'video', 'img'])); this.add('shadbase.com', this.getBaseJsMutatorScript(['#comic video', '#comic img', 'video', 'img'])); + this.add('instagram.com', this.getBaseJsMutatorScript(['article video', 'article img', 'video', 'img'])); this.add( 'pornhub.com',