Created
May 22, 2017 19:30
-
-
Save intel352/580d3f1acc8189eb92c0ab5dcb1a5ac9 to your computer and use it in GitHub Desktop.
Filter wizardofodds online casino list by 5-star, wizard seal, US friendly.
This file contains hidden or 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
// 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
Finding trustworthy online casinos can be tricky, especially when you want sites that are highly rated and US-friendly.