From bc355dda0ae98e142577e8521ad1857ccdb3b724 Mon Sep 17 00:00:00 2001 From: pixeltris <6952411+pixeltris@users.noreply.github.com> Date: Wed, 28 Dec 2022 16:52:48 +0000 Subject: [PATCH] Fix ublock origin scripts failing to load #131 --- vaft/vaft-ublock-origin.js | 2 +- video-swap-new/video-swap-new-ublock-origin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vaft/vaft-ublock-origin.js b/vaft/vaft-ublock-origin.js index 4f95362..3ac2887 100644 --- a/vaft/vaft-ublock-origin.js +++ b/vaft/vaft-ublock-origin.js @@ -1,5 +1,5 @@ // This code is directly copied from https://github.com/cleanlock/VideoAdBlockForTwitch (only change is whitespace is removed for the ublock origin script - also indented) -twitch-videoad.js application/javascript +twitch-videoad.js text/javascript (function() { if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } //This stops Twitch from pausing the player when in another tab and an ad shows. diff --git a/video-swap-new/video-swap-new-ublock-origin.js b/video-swap-new/video-swap-new-ublock-origin.js index 4d3c6e8..a4e3f3f 100644 --- a/video-swap-new/video-swap-new-ublock-origin.js +++ b/video-swap-new/video-swap-new-ublock-origin.js @@ -1,4 +1,4 @@ -twitch-videoad.js application/javascript +twitch-videoad.js text/javascript (function() { if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } function declareOptions(scope) {