Javascript console copy

let url = document.getElementsByTagName(‘iframe’)[0].src
get_url(url)
const get_url = (embed_url) => {
fetch(embed_url)
.then(data => data.text())
.then(data => {
data = data.split(‘file:"’)[1].split(’"’)[0]
console.log(data)
return JSON.stringify(data);
})
}

data I can’t copy the output