4d4y Markdown Enhancer

Convert potential Markdown syntax into HTML in 4d4y forum posts without removing existing HTML elements. Toggle original text with Ctrl+M, with a mode switch notification.

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!)

نووسەر
nowheremanx
Daily installs
0
Total installs
22
Ratings
0 0 0
وەشان
2.7
Created
2025-02-07
Updated
2026-01-11
Size
17 KB
مۆڵەت
MIT
Applies to

4d4y Markdown Enhancer

介绍

这是一个 Tampermonkey 脚本,适用于 4d4y 论坛,可自动将论坛帖子中的 Markdown 语法 转换为 HTML,优化阅读体验。

最早发布于Greasyfork,可点击直接安装。

功能

  • 自动检测并转换帖子中的 Markdown 语法,如 # 标题**加粗***斜体*~~删除线~~代码块引用图片水平线 等。
  • 代码块支持简单的语法高亮(JavaScript/TypeScript/JSON/Bash/HTML/CSS)。
  • 不影响原始 HTML 格式,不会移除图片、链接等元素。
  • 快捷键切换Ctrl + M):
    • 默认显示转换后的 Markdown 版本。
    • Ctrl + M 可切换回原始文本,再次按下可恢复 Markdown 格式。
  • 切换模式时显示通知,并会自动淡出,不影响阅读体验。
  • 不会在每次刷新页面时弹出通知,避免干扰。

安装方法

  1. 安装 Tampermonkey 插件(如果尚未安装):

  2. 安装脚本

  3. 刷新 4d4y 论坛页面,即可生效!

使用方法

  • 打开 4d4y 论坛,帖子中的 Markdown 语法会自动转换。
  • Ctrl + M 可切换 Markdown 显示模式
  • 每次切换模式时都会有通知提示