Skip to content

Instantly share code, notes, and snippets.

@adamgell
Forked from AviDuda/README.md
Created August 14, 2014 01:05
Show Gist options
  • Save adamgell/9d18068cc17f074c1618 to your computer and use it in GitHub Desktop.
Save adamgell/9d18068cc17f074c1618 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