An extension that detects Mermaid diagrams on Perplexity and displays previews in a popup

Latest Version

Version
0.2.1
Update
February 17, 2025
Size
758KiB
Developer
Category
Users
10
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
日本語
See more
Permissions
ActiveTab
Scripting
ClipboardWrite
Storage
See more

Perplexity Mermaid Viewer Extension

This is extension for displaying and manipulating Mermaid diagrams on Perplexity pages (https://www.perplexity.ai/). Mermaid is a text-based diagramming tool that allows you to easily create flowcharts, sequence diagrams, class diagrams, and more.

# Key Features

- Mermaid Diagram Preview: Automatically detects Mermaid diagrams within code blocks and adds a preview button. Clicking the preview button displays the diagram in a popup.
- Copy to Clipboard: Allows you to copy the diagram to the clipboard as a PNG image.
- Download as PNG: Enables you to download the diagram in PNG format.
- Theme Changing: Allows you to change the theme of the diagram within the popup.

# Benefits

- Easy Diagram Display: Makes it easy to display and visually confirm Mermaid diagrams in Perplexity responses.
- Copy to Clipboard: Enables you to copy diagrams to the clipboard and paste them into other applications.
- Download and Share: Allows you to download diagrams in PNG format and easily share them with others.

# Considerations

- This extension is created based on the Perplexity specifications at the time of development. It may stop working due to future changes in Perplexity's specifications.
- Used mermaid.js version: 11.4.1
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Perplexity Mermaid Viewer", "version": "0.2.1", "description": "__MSG_extensionDescription__", "default_locale": "ja", "icons": { "16": "icons/icon-16.png", "32": "icons/icon-32.png", "48": "icons/icon-48.png", "128": "icons/icon-128.png" }, "permissions": [ "activeTab", "scripting", "clipboardWrite", "storage" ], "host_permissions": [ "https://www.perplexity.ai/*" ], "optional_host_permissions": [ "https://*/*", "http://*/*" ], "content_scripts": [ { "matches": [ "https://www.perplexity.ai/*" ], "js": [ "src/content.js", "assets/mermaid.min.js", "assets/svg-pan-zoom.min.js" ], "css": [ "src/style.css" ] } ], "options_ui": { "page": "src/options.html", "open_in_tab": true }, "background": { "service_worker": "src/background.js" }, "action": { "default_icon": { "16": "icons/icon-16.png", "32": "icons/icon-32.png", "48": "icons/icon-48.png", "128": "icons/icon-128.png" } }, "web_accessible_resources": [ { "resources": [ "assets/*" ], "matches": [ "https://www.perplexity.ai/*" ] } ]}
Read more

Similar Extensions

icon

WPS PDF - Read, Edit, Fill, Convert, and AI Chat PDF with Ease Extension · Productivity 10 110 ★ 6.01MiB

icon

Shazam: Find song names from your browser Extension · Productivity 10 22855 ★ 587KiB

icon

IE Tab Extension · Productivity 10 19117 ★ 940KiB

icon

Sider: ChatGPT Sidebar + GPT-4o, Claude 3.5, Gemini 1.5 & AI Tools Extension · Productivity 10 68759 ★ 13.41MiB

icon

BetterTTV Extension · Productivity 10 10377 ★ 657KiB

icon

Google Dictionary (by Google) Extension · Productivity 10 13680 ★ 47.37KiB

icon

Google Input Tools Extension · Productivity 10 5372 ★ 734KiB

icon

Video DownloadHelper Extension · Productivity 10 22351 ★ 1.36MiB

icon

Take Webpage Screenshots Entirely - FireShot Extension · Productivity 10 43664 ★ 12.14MiB

icon

Monica: ChatGPT AI Assistant | GPT-4o, Claude 3.5, Gemini 1.5, o1 &More Extension · Productivity 10 17928 ★ 23.98MiB

icon

Smallpdf—Edit, Convert, Compress, & AI Summarize PDF Extension · Productivity 10 2967 ★ 1.15MiB

icon

Lightshot (screenshot tool) Extension · Productivity 10 6925 ★ 685KiB

icon

ChatGPT for Google Extension · Productivity 10 3642 ★ 11.17MiB

icon

AIPRM for ChatGPT Extension · Productivity 10 2809 ★ 313KiB

icon

Immersive Translate - Translate Web & PDF Extension · Productivity 10 1114 ★ 3.19MiB

icon

Ecosia - The search engine that plants trees Extension · Productivity 10 2394 ★ 33.62KiB

icon

Enhancer for YouTube™ Extension · Productivity 10 15709 ★ 426KiB

icon

Pie Adblock: Block Ads, Get Paid Extension · Productivity 10 3198 ★ 6.49MiB

icon

Scrnli - Screen Recorder & Screen Capture App Extension · Productivity 10 9370 ★ 3.16MiB

icon

BlockSite: Block Websites & Stay Focused Extension · Productivity 10 29776 ★ 18.42MiB

icon

YouTube Summary with ChatGPT & Claude Extension · Productivity 10 1829 ★ 894KiB

icon

Wordtune: AI Writing, Paraphrasing, and Grammar Tool Extension · Productivity 10 2397 ★ 2.79MiB

icon

Keywords Everywhere - Keyword Tool Extension · Productivity 10 5672 ★ 776KiB

icon

Screen Recorder and Screenshot Tool Extension · Productivity 10 879 ★ 1.13MiB