Skip to content

Instantly share code, notes, and snippets.

@intel352
Created May 22, 2017 19:31
Show Gist options
  • Save intel352/1122662af2968d155d72769ea5bf5f76 to your computer and use it in GitHub Desktop.
Save intel352/1122662af2968d155d72769ea5bf5f76 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/
// Copy the below javascript, paste into JS console on the above page, execute.
$('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
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