Artifacts For Poe

Add preview, download, and new window functionality for code blocks on Poe.com, inspired by Anthropic's Artifacts feature.

As of 2024-06-30. See the latest version.

Author
teezzz20
Ratings
0 0 0
Version
2024-06-29
Created
2024-06-30
Updated
2024-06-30
Size
8.14 KB
License
MIT
Applies to

Artifacts For Poe

This userscript adds preview, download, and new window functionality for code blocks on Poe.com, inspired by Anthropic's Artifacts feature.

Usage

After installation, you'll see three new buttons next to the copy button on each code block:

  1. Download: Downloads the code file.
  2. New Window: Opens the preview in a new window.
  3. Preview: Click to toggle between code view and preview.

Notes

  • The script attempts to detect the appropriate file extension for downloads based on the code content. However, this may not always be accurate for all code types.
  • New window popups may be blocked by your browser. Make sure to allow popups for Poe.com if you want to use this feature.
  • The preview feature may not work perfectly for all code types, especially for code that requires specific environments or dependencies.

License

This script is released under the MIT License.