Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Slashdot link weirdness solved: rogue link tracker

nacturation (646836) writes | more than 3 years ago

Bug 5

In the last week or two links to external sites on Slashdot generally don't seem to work unless I click several times. This only appears to happen on Firefox... Chrome is unaffected. I haven't tried IE, Safari, or any other browser. Finally fed up with it, I decided to look through the javascript to see if there was anything funky going on. Looks like there's a script being included from leads.demandbase.com that defines some kind of click tracker. Here's a snippet:

In the last week or two links to external sites on Slashdot generally don't seem to work unless I click several times. This only appears to happen on Firefox... Chrome is unaffected. I haven't tried IE, Safari, or any other browser. Finally fed up with it, I decided to look through the javascript to see if there was anything funky going on. Looks like there's a script being included from leads.demandbase.com that defines some kind of click tracker. Here's a snippet:

  • else if(a[i].className.match(/clicky_log_outbound/i)){clicky.add_event(a[i],"mousedown",clicky.outbound);}else{clicky.add_event(a[i],"mousedown",clicky.click);

So if you find you've oddly had to click a few times to RTFA, it's not your mouse button dying. Open up adblock and disable everything from leads.demandbase.com and it will be fixed. Links clicked once in Firefox will properly load as they used to. Thanks Slashdot for using an external company for tracking my click behavior. Though perhaps implementing this poorly is Taco's way of giving us a heads-up. Much like the "Idle" section, his overlords may have mandated the addition of this awesomeness to the site and by making it break it alerts us to what we need to block. In which case, a non-sarcastic thanks is due.

I also found this wonderful gem:

  • function pageload_done( $, console, maybe ){
            pageload.after_readycode = (new Date).getTime();
            pageload.content_ready_time = pageload.content_ready - pageload.before_content;
            pageload.script_ready_time = pageload.after_readycode - pageload.content_ready;
            pageload.ready_time = pageload.after_readycode - pageload.before_content; // Only report 1% of cases.
            maybe || (Math.random()>0.01) || $.ajax({ data: {
                    op: 'page_profile',
                    pagemark: pageload.pagemark,
                    dom: pageload.content_ready_time,
                    js: pageload.script_ready_time
            } });
    }

Unless my javascript is really rusty, won't this report 99% of cases?

Anyway, pass this information on so everyone can RTFA without the hassle.

cancel ×

5 comments

Sorry! There are no comments related to the filter you selected.

External Links (1)

webmistressrachel (903577) | more than 3 years ago | (#33847484)

It is interesting how URL shorteners have recently been used to escape troll moderations - my recent post at http://slashdot.org/comments.pl?sid=1806114&cid=33781054 [slashdot.org] outlines the parent's strategy.

Re:External Links (1)

nacturation (646836) | more than 3 years ago | (#33847722)

I find bit.ly links amusing for the same reason. Especially when they're used on sites like Slashdot or other forums where there is no (practical) length limit to a post. "So you want me to click on some mystery link that is hosted on a Libyan domain? No thanks."

Of course, with bit.ly and goo.gl you can append a + on the end of the URL to see where it links to (eg: http://bit.ly/troll+ [bit.ly] ), but I prefer to simply ignore them. On another occasion some AC replied to one of my posts with a pastehtml.com link. Right... like I'm going to visit that and likely expose myself to some random loser who will at the very least determine my location (if they haven't been smart enough to read my posts and deduce what city I live in already) or at worst get exposed to random malware.

Thanks (1)

tqft (619476) | more than 3 years ago | (#33850746)

I use Thunderbird as an rss reader and get /. that way.

Was wondering why sometimes the links do not work - tb does not really do js. Having to manually copy and paste the links stops me wasting so much time.

Re:Thanks (1)

nacturation (646836) | more than 3 years ago | (#33853244)

I use Thunderbird as an rss reader and get /. that way.

Was wondering why sometimes the links do not work - tb does not really do js. Having to manually copy and paste the links stops me wasting so much time.

Sounds like a Thunderbird issue. The links from http://slashdot.org/index.pl?content_type=rss [slashdot.org] are clean without any extra javascript or cruft.

Anonymous Coward (0)

Anonymous Coward | more than 3 years ago | (#33864026)

I've just noticed this today, when I had to double click each outgoing link. I was not satisfied to learn that my links were tracked, and my stats sent to a third party so blatantly.
So I've just blocked demandbase in my router, and the problem is gone.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>