googletagservices surrogate not working on Twitch.tv

Proposals for new surrogate scripts, updates/bug fixes to existing ones, tips and tricks to work around the lazy web.
Post Reply
roothorick
Posts: 7
Joined: Fri Mar 13, 2015 4:44 pm

googletagservices surrogate not working on Twitch.tv

Post 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.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: googletagservices surrogate not working on Twitch.tv

Post 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?
*Always* check the changelogs BEFORE updating that important software!
-
roothorick
Posts: 7
Joined: Fri Mar 13, 2015 4:44 pm

Re: googletagservices surrogate not working on Twitch.tv

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: googletagservices surrogate not working on Twitch.tv

Post 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)?
*Always* check the changelogs BEFORE updating that important software!
-
roothorick
Posts: 7
Joined: Fri Mar 13, 2015 4:44 pm

Re: googletagservices surrogate not working on Twitch.tv

Post 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
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: googletagservices surrogate not working on Twitch.tv

Post 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
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: googletagservices surrogate not working on Twitch.tv

Post 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
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: googletagservices surrogate not working on Twitch.tv

Post by barbaz »

@Thrawn: That is not needed and a bit of a hack in this case.
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply