Skip to content

Instantly share code, notes, and snippets.

View JS code
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
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
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
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
country-([^-]*)
span class="_mr_buy_center"[^>]*>([^<]*)