Userscript that fixes code blocks federated from Lemmy

Open link in next tab

Fix kbin Code Blocks

https://greasyfork.org/en/scripts/479871-fix-kbin-code-blocks

Dirty fix for kbin code blocks federated from Lemmy. Strips out the weird <span> tags on each line.</span>

Lemmy federates code blocks with additional <span> tags added in on each line which /kbin just treats as plaintext (it should really strip them out or treat them as tags, not plaintext).

See this comment for an example

This userscript for kbin.social tries to remove those tags and make Lemmy code blocks actually readable.

Edit: Latest version supports infinite comments and turbo mode.