From f00fe255ad32e3d1fa209dfd86f76c8d5fd96101 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 16 Sep 2014 07:39:34 +1000 Subject: [PATCH] added window.history.pushState to fix signature check --- youtube.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube.cgi b/youtube.cgi index 6495c8d..eeb5fd2 100755 --- a/youtube.cgi +++ b/youtube.cgi @@ -169,7 +169,10 @@ def decode_signature(js_url, signature): var sandbox = { window: { - location: {} + location: {}, + history: { + pushState: function(){} + } }, document: {}, navigator: {}, -- 2.39.2