mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
parent
26985f04a9
commit
13bfbe8fe4
1 changed files with 2 additions and 2 deletions
|
|
@ -1326,7 +1326,7 @@
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
// https://github.com/uBlockOrigin/uAssets/pull/3517
|
// https://github.com/uBlockOrigin/uAssets/issues/5184
|
||||||
/// twitch-videoad.js
|
/// twitch-videoad.js
|
||||||
(function() {
|
(function() {
|
||||||
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
|
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
|
||||||
|
|
@ -1334,7 +1334,7 @@
|
||||||
window.fetch = function(input) {
|
window.fetch = function(input) {
|
||||||
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
|
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
|
||||||
var url = new URL(arguments[0]);
|
var url = new URL(arguments[0]);
|
||||||
url.searchParams.set('platform', '_');
|
url.searchParams.delete('platform');
|
||||||
arguments[0] = url.href;
|
arguments[0] = url.href;
|
||||||
}
|
}
|
||||||
return realFetch.apply(this, arguments);
|
return realFetch.apply(this, arguments);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue