Skip to content

Instantly share code, notes, and snippets.

@sysnucleussupport
Created November 2, 2021 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sysnucleussupport/0447dcaed693a2a65aa92955e3ac981b to your computer and use it in GitHub Desktop.
Save sysnucleussupport/0447dcaed693a2a65aa92955e3ac981b to your computer and use it in GitHub Desktop.
JS code to click 'AH':
uid(4)._onClick();
JS code to Hide all Open Odds (use it after reaching AH page even if there are NO open instances at present):
var buttons = document.getElementsByTagName('a');
for (var i = buttons.length - 1; i >= 0; i--) {
var button = buttons[i];
if(button.innerText == 'Hide odds') {
button.click();
}
}
JS code to click -2.5 Odds:
page.togleTableContent('P--2.50-0-0',this);
JS code to click -3.5 Odds:
page.togleTableContent('P--3.50-0-0',this);
JS code to click +1.5 Odds:
page.togleTableContent('P-1.50-0-0',this);
NOTE: Create Similar JS codes for other required Odds
RegEx strings used to capture Average Odds:
Average\s*([\d.]*)
Average\s*[\d.]*\s*([\d.]*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment