mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Update Twitch scriptlet
Related discussion:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1789#issuecomment-959831926
Related commit:
- 7233b5fd22
This commit is contained in:
parent
8b8b7da8d9
commit
3f47172473
@ -1576,6 +1576,9 @@
|
|||||||
init.body.includes('PlaybackAccessToken')
|
init.body.includes('PlaybackAccessToken')
|
||||||
) {
|
) {
|
||||||
const { headers } = init;
|
const { headers } = init;
|
||||||
|
if ( typeof headers['Authorization'] === 'string' ) {
|
||||||
|
headers['Authorization'] = '';
|
||||||
|
}
|
||||||
if ( typeof headers['X-Device-Id'] === 'string' ) {
|
if ( typeof headers['X-Device-Id'] === 'string' ) {
|
||||||
headers['X-Device-Id'] = 'twitch-web-wall-mason';
|
headers['X-Device-Id'] = 'twitch-web-wall-mason';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user