Old Reddit Better Codeblocks

re-render markdown with marked.js and highlight codeblocks with highlight.js

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
cultab
日安装量
0
总安装量
19
评分
0 0 0
版本
0.4.2
创建于
2023-11-22
更新于
2023-11-29
大小
5.6 KB
许可证
MIT
适用于

Tired of seeing broken-ass formatting?

Tired of new redditors unknowingly using ``` (triple backtick) nu-reddit style codeblocks?

Tired of old reddits complaining about new redditors' formatting?

Well today is your lucky day!

*explosion*

To show you the power of Old Reddit Better Codeblocks we replaced reddit's the markdown renderer with marked.js (and we also used highlight.js to highlight the codeblocks)!

(this is horribly implemented we literally click() on the view source button twice ;-; I've done very little testing but it works for now ecks dee)

TL;DR

Re-renders all reddit posts with a better markdown renderer that can actually handle the new codeblocks + highlight them.