View JS code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tables = document.querySelectorAll("tbody"); | |
var rows = tables[0].querySelectorAll("tr"); | |
for (var j = rows.length-1; j >= 0; j--) { | |
var row = rows[j]; | |
if(row.className=="center nob-border") | |
{ | |
tables[0].deleteRow(j); | |
} | |
else if(row.className=="table-dummyrow") { | |
tables[0].deleteRow(j); |
View JS code to click on 'BTS' in Oddsportal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buttons = document.getElementsByTagName('a'); | |
for (var i = buttons.length - 1; i >= 0; i--) { | |
var button = buttons[i]; | |
if(button.innerText == 'Both Teams to Score') { | |
button.click(); | |
} | |
} |
View JS code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buttons = document.getElementsByTagName('a'); | |
for (var i = buttons.length - 1; i >= 0; i--) { | |
var button = buttons[i]; | |
if(button.innerText=='Over/Under') { | |
button.click(); | |
break; | |
} | |
} |
View gist:6afcc88d36952c15f655c95e7ccff85e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buttons = document.getElementsByTagName('a'); | |
for (var i = buttons.length - 1; i >= 0; i--) { | |
var button = buttons[i]; | |
if(button.innerText=='Handicap') { | |
button.click(); | |
break; | |
} | |
} |
View JS code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JS code to Open Contact link of the website (if contact link is available) : | |
var buttons = document.getElementsByTagName('a'); | |
for (var i = buttons.length - 1; i >= 0; i--) { | |
var button = buttons[i]; | |
if(button.innerText=='Contact'|button.innerText=='CONTACT'|button.innerText=='CONTACT US'|button.innerText=='Contact Us') { | |
button.click(); | |
break; | |
} | |
} |
View JS code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elements = document.getElementsByClassName('media__thumbnail'); | |
for(var i=0; i < elements.length; i++) | |
{ | |
var element = elements[i]; | |
var url = element.children[0].getAttribute("src"); | |
url = url.replace('_145', '_1000'); | |
element.setAttribute("src", url); | |
} |
View RegEx Strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
country-([^-]*) | |
span class="_mr_buy_center"[^>]*>([^<]*) |