Skip to content

Instantly share code, notes, and snippets.

@aviraccoon
Last active April 23, 2024 10:32
Show Gist options
  • Select an option

  • Save aviraccoon/2ef2eaba7c681dae0250 to your computer and use it in GitHub Desktop.

Select an option

Save aviraccoon/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!
@GranPC

GranPC commented Aug 6, 2014

Copy link
Copy Markdown

🚚 you.

@Kowiz

Kowiz commented Aug 6, 2014

Copy link
Copy Markdown

💯

@rjackson

rjackson commented Aug 7, 2014

Copy link
Copy Markdown

Get banned. 🍌

@ahv

ahv commented Aug 7, 2014

Copy link
Copy Markdown

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

@fwsGonzo

fwsGonzo commented Aug 7, 2014

Copy link
Copy Markdown

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

kub4n3c commented Aug 7, 2014

Copy link
Copy Markdown

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

@Tucta

Tucta commented Aug 8, 2014

Copy link
Copy Markdown

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

tags23 commented Aug 8, 2014

Copy link
Copy Markdown

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

@gavin20

gavin20 commented Aug 8, 2014

Copy link
Copy Markdown

@neerajsu

Copy link
Copy Markdown

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

Skuidius commented Mar 6, 2021

Copy link
Copy Markdown

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