Quick Edit

"Quick Edit Popup for Web Content"

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
-Duy-
日安装量
0
总安装量
3
评分
0 0 0
版本
1.5
创建于
2025-06-18
更新于
2025-06-19
大小
11.6 KB
许可证
暂无
适用于
所有网站

Quick Edit Popup Userscript

Description

This userscript provides a quick-edit popup for any selected text on a webpage. When you highlight a piece of text and then middle-click (press the mouse wheel) on the selection, a popup window appears centered on the screen, allowing you to directly edit the selected content.

The popup supports:

  • Press Enter to save changes
  • Press Escape to cancel editing
  • Press Tab to insert a new line within the textarea

Key Features

  • Popup appears immediately in the center of the screen for easy access
  • Dark mode interface, easy on the eyes during nighttime use
  • Preserves the original font style and formatting while editing
  • Temporarily saves edit history locally (via browser storage)
  • Compatible with most websites (@match *://*/*)

How to Use

  1. Highlight (select) the text you want to edit on any webpage.
  2. Middle-click (press the mouse wheel) on the highlighted text.
  3. The quick-edit popup will appear.
  4. Edit the text inside the popup’s textarea.
  5. Press Enter to save your changes or Escape to cancel.
  6. Drag the popup by its top bar to reposition it if needed.

Notes

  • This script edits plain text nodes within the webpage DOM; it does not support complex HTML or rich-text editing.
  • Some websites with custom protections or unusual structures might limit the script’s editing capability.
  • The edit history is saved locally and does not sync across devices.
  • To disable the script temporarily, use your userscript manager (e.g., Tampermonkey).