Old Reddit Better Codeblocks

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.