Skip to content

Instantly share code, notes, and snippets.

@gokselpirnal
Last active June 11, 2020 17:53
Show Gist options
  • Save gokselpirnal/7c4c501c1148dbcf02a07f2cc27990aa to your computer and use it in GitHub Desktop.
Save gokselpirnal/7c4c501c1148dbcf02a07f2cc27990aa to your computer and use it in GitHub Desktop.
function fill(cols){
new Array(cols.length).fill(null).forEach(()=>document.querySelector('.actions button').click())
document.querySelector('.actions button').click()
document.querySelectorAll('.nsn-i-delete').forEach((elm)=>elm.click())
new Array(cols.length).fill(null).forEach((_,index)=>{
cols[index].forEach((number)=>{
document.querySelectorAll('.cs-body > .column-number:nth-of-type('+number+')')[index].click()
})
})
}
fill([
[1,2,3,4,5,6],
[1,2,3,4,5,6],
[1,2,3,4,5,6]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment