Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions chrome/remove_video_ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ window.Worker = class Worker extends oldWorker {
super(twitchBlobUrl);
return;
}
var jsURL = getWasmWorkerUrl(twitchBlobUrl);
var jsURL = twitchBlobUrl;
if (typeof jsURL !== 'string') {
super(twitchBlobUrl);
return;
Expand Down Expand Up @@ -215,7 +215,7 @@ window.Worker = class Worker extends oldWorker {
}
}
var currentQualityLS = window.localStorage.getItem('video-quality');

lowQuality[qualityToSelect].click();
window.localStorage.setItem('video-quality', currentQualityLS);

Expand Down Expand Up @@ -257,13 +257,6 @@ window.Worker = class Worker extends oldWorker {
}
};

function getWasmWorkerUrl(twitchBlobUrl) {
var req = new XMLHttpRequest();
req.open('GET', twitchBlobUrl, false);
req.send();
return req.responseText.split("'")[1];
}

function hookWorkerFetch() {
var realFetch = fetch;
fetch = async function(url, options) {
Expand Down
11 changes: 2 additions & 9 deletions firefox/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function removeVideoAds() {
super(twitchBlobUrl);
return;
}
var jsURL = getWasmWorkerUrl(twitchBlobUrl);
var jsURL = twitchBlobUrl;
if (typeof jsURL !== 'string') {
super(twitchBlobUrl);
return;
Expand Down Expand Up @@ -243,7 +243,7 @@ function removeVideoAds() {
}
}
var currentQualityLS = window.localStorage.getItem('video-quality');

lowQuality[qualityToSelect].click();
window.localStorage.setItem('video-quality', currentQualityLS);

Expand Down Expand Up @@ -285,13 +285,6 @@ function removeVideoAds() {
}
};

function getWasmWorkerUrl(twitchBlobUrl) {
var req = new XMLHttpRequest();
req.open('GET', twitchBlobUrl, false);
req.send();
return req.responseText.split("'")[1];
}

function hookWorkerFetch() {
var realFetch = fetch;
fetch = async function(url, options) {
Expand Down