Skip to content

Instantly share code, notes, and snippets.

@intel352
Created May 22, 2017 19:30
Show Gist options
  • Save intel352/580d3f1acc8189eb92c0ab5dcb1a5ac9 to your computer and use it in GitHub Desktop.
Save intel352/580d3f1acc8189eb92c0ab5dcb1a5ac9 to your computer and use it in GitHub Desktop.
Filter wizardofodds online casino list by 5-star, wizard seal, US friendly.
// For use on https://wizardofodds.com/online-gambling/all-casinos/
$('div#all_casinos_area table.data td').filter(
function(index){
if ( (index%5) === 1) {
var el = $(this).find('span.filled-stars');
var width = el.width();
var parentWidth = el.offsetParent().width();
var percentWidth = 100*width/parentWidth;
if (percentWidth <= 90) {
// remove low ranked
//console.log(percentWidth);
return true;
}
}
if ( (index%5) === 2) {
var el = $(this);
if (el.text() === 'NO') {
// remove non-wizard-seal
return true;
}
}
if ( (index%5) === 3) {
var el = $(this);
if (el.text() === 'NO') {
// remove non-US
return true;
}
}
return false;
}
).parent().remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment