Post Reply 
Google Search: - No onmousedown tracking
Aug. 10, 2011, 10:09 PM
Post: #1
Google Search: - No onmousedown tracking
Google dynamically replaces every link they provide in search pages. When you click on the link (that you can see in status bar of your browser), instead of going to the site directly, Google redirects your browser to their own server first, and after that Google redirects your browser to your target...

Here is filter (put it into Google related section), that removes unnecessary redirections / tracking:
Code:
Name = "+ Google Search: - No onmousedown tracking     11.08.10 [ozo] ADD"
Active = TRUE
URL = "$TYPE(htm)[^.]+.google"
Limit = 1024
Match = " onmousedown=\"return hlprwt(*)\"| onmousedown=\"return rwt(*)\""
Replace = ""
The filter makes web pages simpler (read - faster to render) and your moves on the Internet will not be tracked by Google anymore...
Add Thank You Quote this message in a reply
Aug. 11, 2011, 03:58 AM
Post: #2
RE: Google Search: - No onmousedown tracking
The set already has

Quote:[Patterns]
Name = "Google: Multi URL Untangler 09.07.04 (multi) [sd jjoe] (d.s)"
Active = TRUE
Multi = TRUE
URL = "$TST(hCT=*html)(*.)+{1}google.(^$OHDR(Cookie:*SID\=))"
Bounds = "<a\s*>"
Limit = 512
Match = "<a\7("
"(href=)\4$AV(/url\?*=(https+(://|%3a%2f%2f))\5("
"\6\&(amp;)+[a-z][a-z]+=*|\6"
"))$SET(2=\4"$UESC(\5\6)")"
"|onmousedown=$AV(return (clk|rwt) \(*)$SET(1=Js)"
")(\3)"
"&$TST(\7=(\#\sclass=$AV(\8)$SET(s=$GET(s)&#x20;\8))+\#)"
Replace = "<a class="Pr0XPref\1$GET(s)$SET(s=)"\@\2\3"

However, what search terms and browser got "hlprwt"?
I'd like to check the rest of the code.

Thanks




Add Thank You Quote this message in a reply
Aug. 11, 2011, 05:28 AM
Post: #3
RE: Google Search: - No onmousedown tracking
I've seen this filter. Unfortunately it doesn't work. I've noticed tracking links in IE7/Iron. In IE7 they come in form of "hlprwt()" function, while in the new Iron browser - they do it with "rwt()" function...

Try it with "qwerty" as a starting point. In my tests any/all requests actually return those functions now... BTW, I'm using Google Advanced Search, but I don't think it makes any difference here.
Add Thank You Quote this message in a reply
Aug. 11, 2011, 01:58 PM
Post: #4
RE: Google Search: - No onmousedown tracking
(Aug. 11, 2011 05:28 AM)OZO Wrote:  Try it with "qwerty" as a starting point. In my tests any/all requests actually return those functions now... BTW, I'm using Google Advanced Search, but I don't think it makes any difference here.

Initially, "querty" didn't work. Something more commercial finally got things going. Nothing worked last night.

I found

Code:
<Match: Google: Multi URL Untangler     09.07.04 (multi) [sd jjoe] (d.s) >
<a class=sla href="http://en.wikipedia.org/wiki/AZERTY" onmousedown="return rwt(

(Aug. 11, 2011 05:28 AM)OZO Wrote:  I've seen this filter. Unfortunately it doesn't work.

Works for me, so far.
Have you added a filter that hides the code from the Untangler?

Does the Untangler work after you change its URL Match to

Code:
URL = "$TYPE(htm)[^.]+.google"


Thanks
Add Thank You Quote this message in a reply
Aug. 11, 2011, 06:58 PM (This post was last modified: Aug. 11, 2011 07:36 PM by OZO.)
Post: #5
RE: Google Search: - No onmousedown tracking
I've changes that and it fixed problem in Iron. But IE7 still get the tracking link (with "hlprwt()").

Here is the new fix in your filter, that supports IE7 too:
Code:
"| onmousedown=$AV(return (clk|rwt|hlprwt) \(*)$SET(1=Js)"
That helps in both Iron and IE7, removing additional extra white space that your filter left in the process ("| onm...")

But why you add this class attribute ("Pr0XPrefJs") to every link?

Here is what I get with your fixed filter in IE7:
Code:
<a class="Pr0XPrefJs" href="http://en.wikipedia.org/wiki/QWERTY"><b>QWERTY</b>

And here is what I get in mine filter in IE7:
Code:
<a href="http://en.wikipedia.org/wiki/QWERTY"><b>QWERTY</b>
Add Thank You Quote this message in a reply
Aug. 12, 2011, 02:03 AM
Post: #6
RE: Google Search: - No onmousedown tracking
I don't doubt your eyes, with regards to hlpwrt. I was just more interested in why the filter didn't work anywhere.

Code:
$TST(hCT=*html)(*.)+{1}google.(^$OHDR(Cookie:*SID\=))

assuming all the other filters work, "$TST(hCT=*html)" is ok, "(*.)+{1}google." is probably ok. I believe an sid cookie is a session ID for those logged into any google service. Were you logged in to any?

Quote:But why you add this class attribute ("Pr0XPrefJs") to every link?

Looking at google-css-alt.css

Code:
/* Color for normal (slight green) and JS (slight red)
   tracking links on hover */
a.ProXPref:hover { color: #379CCD !important; }
a.ProXPrefJs:hover { color: #968AFF !important; }
a.ProXPrefJs {
  padding-right: 0;
  background: none;

, I think the idea is to change the color of a modified link on hover.
However, the filter is writing "Pr0X" instead of "ProX".
I think "Pr0X" is correct. Like

Code:
/* Color for normal (slight green) and JS (slight red)
   tracking links on hover */
a.Pr0XPref:hover { color: #379CCD !important; }
a.Pr0XPrefJs:hover { color: #968AFF !important; }
a.Pr0XPrefJs {
  padding-right: 0;
  background: none;

Will post updated filter and google-css-alt.css or move this thread to Fixed/Confirmed Bugs later.

Thanks
Add Thank You Quote this message in a reply
Aug. 12, 2011, 03:07 AM
Post: #7
RE: Google Search: - No onmousedown tracking
(Aug. 12, 2011 02:03 AM)JJoe Wrote:  I believe an sid cookie is a session ID for those logged into any google service. Were you logged in to any?
I guess you're right here. I did my tests with IE7, where I had no any logins. But I tested it with Iron (I always run it in single process mode), where I had GMail account opened. But why it should make any difference here? Tracking links should always be removed from search page, regardless of cookies.

Now, about the highlighting tracking links in Google:
1. All links in Google search page are tracking links. So, special highlighting technique here makes a little sense.
2. I don't see that highlighting, because I use Google Light Theme and it defines its own set of colors (including "a:hover").
So, using a special class for tracking links is not important to those, who use different color themes with Google. I guess I better simplify the filter and would use one, that doesn't add special class in this case... Anyway, thank you for explanation, why it was here.
Add Thank You Quote this message in a reply
Aug. 12, 2011, 03:21 PM
Post: #8
RE: Google Search: - No onmousedown tracking
Not sure if this is relevant or not, but when it comes to tracking at Google you really should start at this page: https://encrypted.google.com/
More info here > http://www.google.com/support/websearch/...wer=173733
I made the encrypted Google my home page.
Anyway, disregard if not interested.
Add Thank You Quote this message in a reply
Aug. 13, 2011, 12:58 AM
Post: #9
RE: Google Search: - No onmousedown tracking
These google filters started years ago. Google's code has increased in variety and complexity.
I don't know/remember why, (^$OHDR(Cookie:*SID\=)). Been years since I logged in to a Google service.
I do see links in Google search pages that are not tracking links. Some of the tracking links do not use onmousedown.

@Whenever
You once asked about (^$OHDR(Cookie:*SID\=)), http://prxbx.com/forums/showthread.php?t...19#pid9319 .
Did you remove it from the filter? If yes, what happened?

@kimsland
These filters try to hide your activities at Google from Google. encrypted.google.com tries to hide your activities from snoops between you and Google.
We shouldn't just disregard.

Have fun
Add Thank You Quote this message in a reply
Aug. 13, 2011, 05:07 AM
Post: #10
RE: Google Search: - No onmousedown tracking
(Aug. 13, 2011 12:58 AM)JJoe Wrote:  @Whenever
You once asked about (^$OHDR(Cookie:*SID\=)), http://prxbx.com/forums/showthread.php?t...19#pid9319 .
Did you remove it from the filter? If yes, what happened?

I removed it and it does make the filter active and remove the onmousedown tracking even if logged in Google.
Add Thank You Quote this message in a reply
Aug. 13, 2011, 12:56 PM
Post: #11
RE: Google Search: - No onmousedown tracking
(Aug. 13, 2011 05:07 AM)whenever Wrote:  if logged in Google.

Has the altered filter caused any problems?
Add Thank You Quote this message in a reply
Aug. 13, 2011, 02:24 PM
Post: #12
RE: Google Search: - No onmousedown tracking
I haven't noticed any problems.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: