Skip to content

Instantly share code, notes, and snippets.

View arilence's full-sized avatar

Anthony Smith arilence

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arilence on github.
  • I am arilence (https://keybase.io/arilence) on keybase.
  • I have a public key ASAuECxf24ertLlRY5zTaR0l7kX-TOoHmNTJgF3axvrMaAo

To claim this, I am signing this object:

/// https://old.reddit.com/r/uBlockOrigin/comments/jjesgn/fix_for_ublock_origin_on_twitch_i_updated_the/
const origFetch = window.fetch;
window.fetch = (url, init, ...args) => {
if (typeof url === "string") {
if (url.includes("/access_token")) {
url = url.replace("player_type=site", "player_type=embed");
} else if (
url.includes("/gql") &&
init &&
typeof init.body === "string" &&