Skip to content

Instantly share code, notes, and snippets.

@chfoo
Forked from AviDuda/README.md
Created August 7, 2014 22:14
Show Gist options
  • Save chfoo/ab7e614c5a8e29e804d2 to your computer and use it in GitHub Desktop.
Save chfoo/ab7e614c5a8e29e804d2 to your computer and use it in GitHub Desktop.

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment