1
0
mirror of https://github.com/pixeltris/TwitchAdSolutions.git synced 2024-11-22 02:12:45 +01:00

Fix ublock origin scripts failing to load #131

This commit is contained in:
pixeltris 2022-12-28 16:52:48 +00:00
parent 5afc792ce7
commit bc355dda0a
2 changed files with 2 additions and 2 deletions

View File

@ -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) // 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() { (function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
//This stops Twitch from pausing the player when in another tab and an ad shows. //This stops Twitch from pausing the player when in another tab and an ad shows.

View File

@ -1,4 +1,4 @@
twitch-videoad.js application/javascript twitch-videoad.js text/javascript
(function() { (function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; } if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
function declareOptions(scope) { function declareOptions(scope) {