Page 1 of 1

googletagservices surrogate not working on Twitch.tv

Posted: Tue Jul 28, 2015 1:57 am
by roothorick
Twitch is all kinds of broken without allowing googletagservices.com. Half the front page doesn't load.

And that's only the most obvious issue. Much of the user settings/follows/etc pages are rendered useless.

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Jul 28, 2015 2:35 am
by barbaz
Not seeing that here - only thing that seems broken is replaying past broadcasts, but that could be something else my end...

Well, it was broken - but after viewing a live stream, it's working again, with no changes on my end AFAIK?


What NoScript version are you using?

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Aug 04, 2015 9:14 am
by roothorick
Two big things jumping out at me:

1. The front page is predominantly just a solid gray band with nothing on it, where there'd normally be a "featured" stream and some other things.

2. More problematically, your username is missing in the top right, and the account options dropdown is missing (clicking the gray triangle does nothing).

Behavior exhibited when allowing everything BUT googletagservices.com; and it works fine when allowing only twitch.tv, jtvnw.net, and googletagservices.com.

-E- Oh right. Firefox seems to be updating NoScript for me, currently 2.6.9.34.

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Aug 04, 2015 2:57 pm
by barbaz
If you go back to NoScript 2.6.9.31 does it work?
If not, looks like the surrogate needs updating, can you please post here or PM me any JavaScript errors & console log messages you get using latest NoScript with and without googletagservices Allowed (to compare), given that I cannot reproduce the problem (and it seems to require an account which I don't have)?

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Aug 04, 2015 11:15 pm
by roothorick
The blank front page happens even without being logged in.

Console on a Ctrl+F5 on the front page (not logged in):

Code: Select all

"JQMIGRATE: Logging is active" global-c87c4b3ce1ccdbed7a9e853b5402059e.js:17:2409
"JQMIGRATE: jQuery.browser is deprecated" global-c87c4b3ce1ccdbed7a9e853b5402059e.js:17:2061
mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create global-c87c4b3ce1ccdbed7a9e853b5402059e.js:29:7314
ReferenceError: Twitch is not defined global-c87c4b3ce1ccdbed7a9e853b5402059e.js:29:21058
ReferenceError: Twitch is not defined application-855608891254ec4137dab4eebf757485.js:2:1
TypeError: Twitch.user is undefined www.twitch.tv:118:8
TypeError: Twitch.tracking is undefined www.twitch.tv:279:2
TypeError: Twitch.ads is undefined www.twitch.tv:287:2
TypeError: Twitch.ads is undefined www.twitch.tv:291:2
TypeError: Twitch.asyncAds is undefined www.twitch.tv:312:6
TypeError: Twitch.asyncAds is undefined www.twitch.tv:317:0
TypeError: Twitch.ads is undefined www.twitch.tv:609:2
TypeError: Twitch.tracking is undefined www.twitch.tv:750:2
TypeError: Twitch.geo is undefined www.twitch.tv:757:2
TypeError: Twitch.tracking is undefined www.twitch.tv:775:4
TypeError: Twitch.geo is undefined www.twitch.tv:781:0
TypeError: Twitch.ads is undefined www.twitch.tv:802:2
TypeError: Twitch.user is undefined www.twitch.tv:866:8

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Aug 04, 2015 11:44 pm
by barbaz
roothorick wrote:The blank front page happens even without being logged in.
Ah, cool, never knew that there was supposed to be actual content there! :?

What's weird about this is that allowing googletagservices.com in NoScript but leaving that domain completely blocked in adblock is enough to get that content showing. Likewise, simply blanking out the surrogate in about:config gets it working.
So apparently the *surrogate* is *breaking* Twitch, the real googletagservices scripts appear irrelevant here.

1) Can you please check that the same is the case for the issue(s) that require login?
2) Check your PM in just a moment

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Aug 04, 2015 11:49 pm
by Thrawn
It's rarely used, but you can set exceptions where a surrogate will not run.
Try setting

Code: Select all

noscript.surrogate.googletag.exceptions
to

Code: Select all

twitch.tv

Re: googletagservices surrogate not working on Twitch.tv

Posted: Tue Aug 04, 2015 11:56 pm
by barbaz
@Thrawn: That is not needed and a bit of a hack in this case.