Advertisement
RichTatum

Get published/modified date

Jan 4th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: (function () { var links = document.getElementsByTagName('meta'); var found = 'none'; for (var i = 0, l; l = links[i]; i++) { if (l.getAttribute('property') == 'article:published_time') { found = l.getAttribute('content'); break; } } window.prompt('Published Time: '+found+ '\n\nLast Modified: '+document.lastModified+'\n\nCopy to clipboard: Ctrl+C, Enter','Published: '+found+'; Modified: '+document.lastModified);})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement