Issue 1287 - Use window.location instead document.location

--HG--
extra : rebase_source : 39f45ceec2e6fa0d8a35568c984cd0e8a6264997
extra : amend_source : 16a3872cfe26a15a37b56c003dc179f653ce17fc
Issue 1258 - Block ads in YouTube's HTML5 player on Safari

--HG--
extra : rebase_source : 28e9b30b2da90ada3c2d6fb3e56edbaa56c6f670
extra : amend_source : 3858432ab98672114e6993f1ea39911cc4b1bda8