This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){ | |
| function escapeMarkdown(text) { | |
| return text.replace(/^/gm, '> ').replace(/`/g, '\\`'); | |
| } | |
| function extractAuthor() { | |
| // Try various meta tags for author | |
| const authorMeta = document.querySelector('meta[name="author"], meta[property="article:author"], meta[name="twitter:creator"], meta[property="og:article:author"]'); | |
| if (authorMeta && authorMeta.content) { | |
| return authorMeta.content.trim(); |