Skip to content

Instantly share code, notes, and snippets.

@SansGuidon
Last active October 15, 2018 17:01
Show Gist options
  • Save SansGuidon/85ce6c29a645a0fe676f938e4886a08b to your computer and use it in GitHub Desktop.
Save SansGuidon/85ce6c29a645a0fe676f938e4886a08b to your computer and use it in GitHub Desktop.
Export Google Inbox links
console.table(
[]
.concat(Array.prototype.slice.call(document.getElementsByClassName('bX')))
.concat(Array.prototype.slice.call(document.getElementsByClassName('bV dj')))
.map(
function(i){
if (i.href)
return decodeURIComponent(i.href.replace(/^.*url\?q=([^&]*)&.*$/,'$1'))
}
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment