[Resolved] NoScript and Morfik forum

General discussion about the NoScript extension for Firefox
Post Reply
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: NoScript and Morfik forum

Post by therube »

Appears that it either wants JavaScript blocked, or both morfik.com & google-analytics.com Allowed.
(google-analytics.com does not display until after morfik.com is allowed.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20110608 Firefox/4.0.1 SeaMonkey/2.1
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: NoScript and Morfik forum

Post by dhouwn »

A surrogate should solve this.

Code: Select all

Error: _gaq.push is undefined
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript and Morfik forum

Post by Giorgio Maone »

dhouwn wrote:A surrogate should solve this.

Code: Select all

Error: _gaq.push is undefined
I'm working around it in the default surrogate starting with next build, thanks.
[EDIT]
Ooops, looks like default surrogate already thanks care of _gaq...
Do they actually import GA from the canonical GA site?

[EDIT 2]
OK, I can see what's happening. They call _gaq.push indirectly (_gaq.push.call), therefore __noSuchMethod__ can't help there.

I'm afraid I must explicitly add a push method here...

[EDIT 3]
In fact, the new noscript.surrogate.ga.replacement preference (which works around this issue) will look like this:

Code: Select all

(function(){var _0=function(){};with(window)urchinTracker=_0,_gaq={__noSuchMethod__:_0,push:_0,_link:function(h){if(h)location.href=h},_linkByPost:function(){return true},_getLinkerUrl:function(u){return u},_trackEvent:_0},_gat={_getTracker:function(){return _gaq}}})()
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript and Morfik forum

Post by Giorgio Maone »

Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: NoScript and Morfik forum

Post by therube »

Now working without allowing google-analytics.com :-).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110619 Firefox/5.0 SeaMonkey/2.2
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: [Resolved] NoScript and Morfik forum

Post by GµårÐïåñ »

The surrogate should cripple it and I am not seeing an issue, is there something else going on maybe, like Ghostery, I know it breaks alot of things and you can follow the discussion on that here: Ghostery Blocking Feature Breaks Web Functionality on Many Sites.

If you realize it is indeed a Ghostery caused bug, by either disabling it or running in a fresh profile with NoScript only to eliminate other addons as well, then post a comment there and let them know and if not then let us know again.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/6.9 (en-US; rv:6.9.6.9) Gecko/66666666 Firefox/6.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: NoScript and Morfik forum

Post by al_9x »

Giorgio Maone wrote: [EDIT 2]
OK, I can see what's happening. They call _gaq.push indirectly (_gaq.push.call), therefore __noSuchMethod__ can't help there.
Would something like this work as a universal catchall:

Code: Select all

Proxy.createFunction( {get: function(proxy, name) { return proxy; }}, function () {})
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript and Morfik forum

Post by Giorgio Maone »

al_9x wrote:versal catchall:

Code: Select all

Proxy.createFunction( {get: function(proxy, name) { return proxy; }}, function () {})
More like this:

Code: Select all

(function() { var p = Proxy.createFunction({get: function(proxy, name) { return name in Object.prototype ? Object.prototype[name] : p }}, function() { return p }) })()
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Post Reply