Skip to content

Instantly share code, notes, and snippets.

@AviDuda
Last active April 23, 2024 10:32
Show Gist options
  • Save AviDuda/2ef2eaba7c681dae0250 to your computer and use it in GitHub Desktop.
Save AviDuda/2ef2eaba7c681dae0250 to your computer and use it in GitHub Desktop.
Unmuting Twitch VODs

Unmuting Twitch VODs

As you know, Twitch has made a weird decision to mute VODs if it finds copyrighted content in videos.

Here's how to enjoy VODs without this annoying mute feature.

	if (oSession.hostname == "api.twitch.tv") {
		if (/^\/api\/videos\/[A-Za-z0-9]+\?as3=t.*$/.test(oSession.PathAndQuery)) {
			oSession.utilDecodeResponse();
			var oBody = System.Text.Encoding.UTF8.GetString(oSession.responseBodyBytes);
			oBody = oBody.replace(/"upkeep":"fail"/g, '"upkeep":"pass"');
			oSession.utilSetResponseBody(oBody);
		}
	}
  • Check File -> Capture Traffic
  • Watch any VOD and enjoy!
@Kowiz
Copy link

Kowiz commented Aug 6, 2014

💯

@rjackson
Copy link

rjackson commented Aug 7, 2014

Get banned. 🍌

@ahv
Copy link

ahv commented Aug 7, 2014

What's the hate about? I thought this community embraced the technical aspect of things.

@fwsGonzo
Copy link

fwsGonzo commented Aug 7, 2014

Not sure. Especially when its a trivial modification to http response... I guess it's unrealistic to re-encode videos (eg. on the fly) just for the muted sections.

@kub4n3c
Copy link

kub4n3c commented Aug 7, 2014

can someone post his rules, i am retard at these things i dont know where to paste it exactly

@Tucta
Copy link

Tucta commented Aug 8, 2014

I'm getting a syntax error when I paste the code into Customrules.js file. I've never used fiddler though and CTRL+F 'OnBeforeResponse' brings up a few results, where am I supposed to paste the code?

@tags23
Copy link

tags23 commented Aug 8, 2014

Instructions unclear, buried my dick into sand. Uninstalled this shit after 5 mins.

@gavin20
Copy link

gavin20 commented Aug 8, 2014

@neerajsu
Copy link

I did all of this. The VOD seemed to have been umuted now, but I still couldn't hear anything on the vod. How do I fix it? Or has this been fixed by twitch?

@Skuidius
Copy link

Skuidius commented Mar 6, 2021

Lack of instructions. The man wants you to download something you have no idea of what it is, configure it without correct instructions and steps to follow. Ri di cu lous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment