Artifacts For Poe

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

نووسەر
teezzz20
Daily installs
0
Total installs
12
Ratings
0 0 0
وەشان
2024-06-29
Created
2024-06-30
Updated
2024-06-30
مۆڵەت
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.
  • This code is developed with the assistance of Claude Sonnet 3.5, an AI language model by Anthropic. While Claude provided significant help in coding and problem-solving, the final implementation and decision-making were done by the human developer.

License

This script is released under the MIT License.