javascript:(function(){ const collection=document.getElementsByClassName('timeago'); for(i=0;i<collection.length;i++) { console.warn(collection[i]); collection[i].nextSibling.textContent=" "+collection[i].title+" "; } })();
The one I posted previously had an issue that while the dates were displayed, they would not copy into a office document. It seems that the content in a <time> tag doesn't copy.
Tested on firefox.
Cool!
IMO a screenshot that says "2 days ago" is worthless. I'm starting to prefer pasting into office as the text is searchable and links are preserved. And now with this bookmarklet, the exact timestamps copy into office as well.
This one gets rid of the "X ago" part and might look better in screenshots.
javascript:(function(){ const collection=document.getElementsByClassName('timeago'); for(i=0;i<collection.length;i++) { console.warn(collection[i]); collection[i].innerHTML=""; collection[i].nextSibling.textContent=" "+collection[i].title+" "; } })();