Testers Needed

Harbinger

At the Start
Joined
Mar 22, 2004
Messages
11,282
Anyone want to help me with this?

Step 1: Create a new bookmark in your browser. As long as its Chrome, Firefox or Safari.

Step 2: Copy and paste the following text (all of it, it's long!) into the address part of the bookmark:

Code:
javascript:function%20cd(){var%20dist;var%20total=0.00;for(var%20i=0;i<document.getElementsByClassName('dstDesc').length;i++){dist=document.getElementsByClassName('dstDesc')[i].innerHTML;dist=dist.replace("%C2%BD",".5");dist=dist.replace("%C2%BE",".75");dist=dist.replace("%C2%BC",".25");dist=dist.replace("dht","0.0");dist=dist.replace("nse",".02");dist=dist.replace("shd",".05");dist=dist.replace("hd",".1");dist=dist.replace("nk",".25");dist=dist.replace("dist","%20");if%20(i==0%20&&%20dist=="%20"){dist="0.0"};total=total+parseFloat(dist);if%20(dist!="%20"){document.getElementsByClassName('dstDesc')[i].innerHTML=total.toFixed(2)};}}if%20(document.getElementsByClassName('dstDesc')[0].innerHTML!="0.00"){cd()};

Step 3: Call the bookmark anything you like. I suggest "RP Cumulative Lengths".

Step 4: Go to any RP results page. This one will do:

http://www.racingpost.com/horses/result_home.sd?race_id=534428

Step 5: Once the page has loaded, click on the bookmark you just created.

You should see the beaten lengths parts of the results page change. What you now get is the cumulative beaten lengths for each horse.

For example: Pastoral Player finished 6th, beaten 2 1/2 lengths, a head, a short head, a length, and a nose. After clicking, this should turn into 3.67 lengths.

Would be great if anyone could test this, and let me know if it works or not, and what browser/version they're using.

Ta!
 
Using Firefox Gareth - doesn't seem to work for me, get a Page Error message on the results when I try to load it after going back to the RP Cumulative Lengths page.
 
Hmmm. So in Firefox 4, I did this:

1) Open the RP result link (http://www.racingpost.com/horses/result_home.sd?race_id=534428) in a new tab

2) If its not already, set the Bookmarks Toolbar to visible

3) Right click on the Bookmarks Toolbar and select New Bookmark

4) In the Name box type: RP Cumulative Lengths (or whatever you like)

5) In the Location box, paste the code from above

6) Click Add. The new bookmark should appear on the Bookmarks Bar.

7) Click the new bookmark. The result page shouldn't reload; it should directly change the values in the beaten lengths column.
 
I've just spent 5 minutes trying to create s new bookmark in Chrome. I've no idea how to and have lost the will to live.
 
Denied by shit browser interfaces! How annoying.

In Chrome, if you click on the spanner button near the top right, go to Tools and select "Always show Bookmarks bar".

Then right-click on the Bookmarks bar and select "Add page". Fill out the name/location as above.
 
It hasn't worked for me either.

I'm only able to find in Firefox an option to 'Bookmark This Page', but none to simply add a bookmark. And if I try opening a new tab, copying your string into the address line and saving it as a bookmark, it doesn't work, the information gets lost.
 
Ooooh, that's very tasty.
Works perfectly in Firefox when I follow Gareth's amended instructions in his 15:57 post.
Many thanks for this very useful plug-in.
 
It hasn't worked for me either.

I'm only able to find in Firefox an option to 'Bookmark This Page', but none to simply add a bookmark. And if I try opening a new tab, copying your string into the address line and saving it as a bookmark, it doesn't work, the information gets lost.

It's amazing how hard they make it to do such a simple thing. What version of Firefox? You could try bookmarking any page, and then editing the address?
 
Somehow managed to mix up quarter lengths and three quarter lengths (!), fixed above.

BTW, if you hit it more than once, it continues to roll up the values. So don't :) Fixed that. Obviously reloading the page brings you back to the original result.
 
Any way of using GreaseMonkey or something of that ilk to make it display like that as default?
 
Back
Top