nntrn
2/14/2019 - 10:51 PM

[DOM stuff using Javascript] #devtools

[DOM stuff using Javascript] #devtools

$$('tr>.cpt+.char+.utf8+.name').map(r=>{
  arr = []
  Array.from(r.parentNode.children).forEach((e)=>{ arr.push(e.outerText) })
  return arr
})

$$('tr>.cpt+.char+.utf8+.name').map((el)=>{return Array.from(el.parentNode.children).map(el2=>{return el2.outerText}) });


// both return the same output
// https://www.utf8-chartable.de/unicode-utf8-table.pl
$$('.hidden')[0].classList.remove("hidden");
arr = []
$$('span').forEach((e)=>{
  e.textContent.split(" ").forEach((f)=>{
    arr.push(f)
  })
})

words = arr
  .filter(Boolean)
  .filter((e)=>{return e.length > 4})
  .filter((e)=> {return !(e.search(/\W/g)>0)})
  .map(r=>{return r.toLowerCase()});

function removeDuplicateUsingSet(arr){
    let unique_array = Array.from(new Set(arr))
    return unique_array
}

words = removeDuplicateUsingSet(words)

copy(words.join("\n"))

// https://simonsays.ai/app.html#!/public/ritzel-tampos/ED46Ozk0k8YN/revisionist-history-s03e10-analysis-parapraxis-elvis/xlGKdLYJKb9X