Skip to content

Instantly share code, notes, and snippets.

@sysnucleussupport
Created Dec 8, 2020
Embed
What would you like to do?
Make sure that you have logged in to Oddsportal before you try configuration and mining
​Js code for opening the tooltip of Matchbook 'Back' '1' value:
-------------------------------------------------------------------------
var rows = document.getElementsByClassName('even');
var row;
for (var i = rows.length - 1; i >= 0; i--) {
row = rows[i];
if(row.innerHTML.includes('\"blogos l390\"')) {
var event = new Event('mouseover');
row.children[2].children[0].dispatchEvent(event);
break;
}
}
For Matchbook 'Back' 'X' value, make the following change in the JS code:
row.children[3].children[0].dispatchEvent(event);
For Matchbook 'Back' '2' value, make the following change in the JS code:
row.children[4].children[0].dispatchEvent(event);
Js code for opening the tooltip of Betfair exchange 'Back' '1' value:
=============================================================================
var rows = document.getElementsByClassName('odd');
var row;
for (var i = rows.length - 1; i >= 0; i--) {
row = rows[i];
if(row.innerHTML.includes('\"blogos l44\"')) {
var event = new Event('mouseover');
row.children[2].children[0].dispatchEvent(event);
break;
}
}
For Betfair exchange 'Back' 'X' value, make the following change in the JS code:
row.children[3].children[0].dispatchEvent(event);
For Betfair exchange 'Back' '2' value, make the following change in the JS code:
row.children[4].children[0].dispatchEvent(event);
Now highlight this tooltip using mouse. This movement is a bit tricky and you may need a few tries to obtain the data in the tool tip.If you have captured correctly, you should see in the capture window the complete data in the tool tip including 'Opening Odds: .....'
Apply the below RegEx string on the captured data to obtain the Opening Odd :
Opening odds:[^,]*,\s*[^\s]*\s*(.*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment