Post Reply 
New Sidki set and FF Customise Google addon
Jan. 17, 2009, 03:27 AM
Post: #2
RE: New Sidki set and FF Customise Google addon
All of the above is possible with Proxomitron. Sidki already took care of the click tracking links with his "Tracking Link" filter.

I've went ahead and analyzed the extension; this is just reference for development Wink I'll see what I can come up with, after I finish some case studies D'oh!

Anonymize UID:

Code:
anonymizeGoogleUID: function() {
        if (location.host.match(/google\..+$/)) {
            var domain = location.host.match(/google\..+$/)[0];
            var parts  = document.cookie.split('; ');
            var c = null;
            for(var i=0; c=parts[i]; ++i) {
                if(c.match(/^PREF=/)) {
                    document.cookie = c.replace(/ID=\w+:/,'ID='+get_random_id(16)+':') + '; domain=.' + domain + '; path=/; expires=Mon, 01 Jan 2038 00:00:00 GMT';
                }
            }
        }
     },

Google Analytics cookie:

Code:
anonymizeGoogleAnalytics: function() {
        var parts  = document.cookie.split('; ');
        var c = null;
        for(var i=0; c=parts[i]; ++i) {
            var match = c.match(/^(__utm[a-z])=/);
            if (match) {
                var d = document.domain;
                if (d.substring(0,4)=="www.") {
                    d=d.substring(4,d.length);
                }
                document.cookie = match[1] + '=; domain=' + d + '; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT';
            }
        }
     },
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New Sidki set and FF Customise Google addon - Kye-U - Jan. 17, 2009 03:27 AM

Forum Jump: