Artifacts For Poe

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

作者
teezzz20
日安装量
0
总安装量
33
评分
0 0 0
版本
2024-06-29
创建于
2024-06-30
更新于
2024-06-30
大小
8.1 KB
许可证
MIT
适用于

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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址