Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save harshvardhanmalpani/b753067fdce94586c75b2f49736ed1a1 to your computer and use it in GitHub Desktop.
Save harshvardhanmalpani/b753067fdce94586c75b2f49736ed1a1 to your computer and use it in GitHub Desktop.
this console script shows domain names with 2 or more vowels on char5.com
var jqry = document.createElement('script'); jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js"; document.getElementsByTagName('head')[0].appendChild(jqry); $=jQuery.noConflict();
$("table form input[type=submit]").each(function(){
var c=$(this).attr("value").replace("www.","").replace(".com","");
var d=getVowels(c);
if(d<2)$(this).parent().parent().remove();
});
function getVowels(str) {
var m = str.match(/[aeiou]/gi);
return m === null ? 0 : m.length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment