Created
May 20, 2019 13:38
-
-
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
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 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