Skip to content

Instantly share code, notes, and snippets.

View nartcan's full-sized avatar

nartcan nartcan

View GitHub Profile
@davecurrierseo
davecurrierseo / dev-tools
Created July 30, 2019 20:05
Google Sheets - Extract Rich Text Links
# step 1 - make sure the rich text links are in column (a)
# step 2 - export sheet as a webpage (.html)
# step 3 - open sheet in chrome, open dev tools and paste this in the console:
let cells = document.getElementsByTagName('td');
for (let i = 0; i < cells.length; i++) {
let links = cells[i].getElementsByTagName('a');
for (let k = 0; k < links.length; k++) {
if (typeof links[k] !== 'undefined') {