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 by_name = {}; | |
function url2names(u) { | |
var url_name = u.match(/\.com\/[^?#\\.]+\.([^?#\/]+)/) | |
if (!url_name || url_name[1] === 'php') { | |
return []; | |
} | |
return url_name[1].replace(/\d/g, '').replace(/\.$/, '').replace(/-/g, '.').split('.'); | |
} |
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
javascript:var mint=42;var minr=12;if (location.href.indexOf('23andme')!==-1) {$('#peeps li').each(function(){var e=$(this).find('.b3:last');var m=e.text().trim().match(/([^%]+)[^\d]+(\d+)/);var n=parseInt(m[2]);var t=parseFloat(m[1])*75;var r=t/n;if(t<mint||r<minr){$(this).hide()}else{e.prepend('Ratio '+Math.round(r*100)/100+', ')}})}else { | |
$('match-entry').each(function(){var b=$(this).find('.dnaGrayDark');var s=b.text().match(/(\d+)[^\d]+(\d+)/);var t=parseInt(s[1]);var r = t/parseInt(s[2]);if(t<mint||r<minr){$(this).hide()}else{b.prepend('<strong>Ratio '+Math.round(r*100)/100+'</strong> ')}})} |