Skip to content

Instantly share code, notes, and snippets.

@peicheng
Created June 5, 2017 05:57
Show Gist options
  • Save peicheng/c1609ba521666d12f65abca9ffc71b00 to your computer and use it in GitHub Desktop.
Save peicheng/c1609ba521666d12f65abca9ffc71b00 to your computer and use it in GitHub Desktop.
Idonethis export todos bookmarklet
<a href='javascript:loc=location.href;
title=document.title;
x=document.getElementsByClassName("editable entry-body");
y=window.open();
y.document.write("<html><body><h3>Links: "+loc+"</h3>\n");
var todolist = document.getElementsByClassName("editable entry-body");
for(var i = 0; i < todolist.length; i++) {
var todo = todolist[i].innerText;
y.document.write("v "+todo+"<br>");
}
y.document.write("</body></html>");
y.document.close();void(0);'>Get Links</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment