Weibo Markdown Editor

为新浪微博网页端发微博添加完善的 Markdown 快捷工具栏及实时预览功能。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Penulis
Troray
Pemasangan harian
0
Total pemasangan
1
Nilai
0 0 0
Versi
0.1
Dibuat
18 April 2026
Diperbarui
18 April 2026
ukuran
21,3 KB
Lisensi
MIT
Berlaku untuk

微博 Markdown 编辑器 (Weibo Markdown Editor)

一款为新浪微博网页端量身定制的 Tampermonkey 脚本,原生级别的丝滑写作体验,让您在发微博时能优雅、自由地创作 Markdown 排版内容。

GreasyFork Version License: MIT

🌟 核心特性 (Features)

  • 一键排版工具栏:在发微博的主文本框以及“快速发布”悬浮窗的上方,自动挂载包含 加粗斜体删除线标题代码块链接图片 等一系列功能的图标工具栏。
  • 自定义尺寸表格插入:可以自由定制插入 n行 * n列 的 Markdown 表格结构。
  • 无缝接管 React 状态:深度适配微博底层 React 前端事件树状态劫持,防止文本虽然输入了,却出现“发不出去”或者清空的情况。
  • 沉浸式“一键预览”切换:一键 Click 切换[编辑/预览]模式。能在本地极速解析查看最终的文章排版样式。
  • 多行列表自动优化:鼠标框选一段文字,点击“无序 / 有序”列表,将智能逐行解析并添加列表符。
  • 极速无感加载:所有脚本资源依赖采用公共 CDN (staticfile) 拉取,并在油猴安装时实现永久本地缓存。

🖼️ 界面预览

微博输入框效果 弹层表格浮层效果

🛠️ 安装说明 (Installation)

  1. 需要您使用的浏览器安装了 Tampermonkey(油猴) 或对应的 Userscript 脚本管理器。
  2. 访问 Weibo Markdown Editor - GreasyFork 主页,点击 “安装此脚本”
  3. 打开或刷新 新浪微博主页,即可在输入框观察到工具栏生效!

⌨️ 快捷键支持 (Hotkeys)

本脚本支持无缝键入常用加粗快捷键,所见即所得:

  • Ctrl/Cmd + B : 加粗选中的文字
  • Ctrl/Cmd + I : 斜体选中的文字

📚 致谢与开源协议 (Acknowledgements & Open Source)

为了创造最纯正的 Markdown 体验以及避免造低劣的轮子,本脚本引用加载了开源社区极为优秀的解析引擎与样式,特此申明并感谢以下作者及项目的贡献:

  • Markdown 解析引擎marked.js v12.0.1 (Licensed under the MIT License, Copyright (c) 2011-2022, Christopher Jeffrey)
  • Markdown 渲染视效github-markdown-css v5.5.1 (Licensed under the MIT License, Copyright (c) Sindre Sorhus)
  • 图标库:内置经过优化的 Inline SVG 图标组合。

作者:大王昭君来了 (@主页)

若您觉得好用,或者在使用过程中发现了 Bug 和需求,欢迎在反馈区或者微博告诉我,祝您冲浪愉快!