Tampermonkey userscripts that convert Microsoft Loop pages to Markdown or MediaWiki with one click.
- Tables, code blocks, headings, lists (ordered, unordered, checkboxes)
- @mentions, hyperlinks, inline code
- Bold text detection
- Code language auto-detection (Python, JavaScript, SQL, YAML, JSON, Mermaid, etc.)
- Loop page title detection and export as the document title
- Heading level offset in Markdown exports to preserve a single top-level
#heading - Quip link capture
- Clipboard fallbacks for environments where
GM_setClipboardis unavailable
loop-to-markdown.user.js: exports Loop pages as Markdownloop-to-mediawiki.user.js: exports Loop pages as MediaWiki wikitext
- Install Tampermonkey browser extension
- Install the exporter you want:
- Open any Microsoft Loop page
- Click the exporter button in the bottom-left corner:
📋 Copy as Markdown📋 Copy as MediaWiki
- Paste the copied output into your target editor or wiki
- Markdown exports add the detected Loop page title as
# Titlewhen available. - Loop headings are shifted down by one level in Markdown so the exported title remains the only H1.
- Both scripts try
GM_setClipboard, then the browser Clipboard API, then adocument.execCommand('copy')fallback.
- Talha Oz - Original author
- Yuta TJ (yutatj@) - Table cell fallback extraction
- Shrinivas Acharya - Bold detection, code language detection, ordered lists
- Andrea Scian - Clipboard fallbacks, Loop title detection, heading offset, MediaWiki exporter
Found a bug or have an improvement? PRs are welcome! This script was built with contributions from multiple people - yours could be next.
GPL-3.0