amgg
@amgg

I made a userscript that adds a "view source" button to posts! (it shows the original markdown source, not just the HTML on the page)

view on github download on greasyfork

plaintext links just in case: view on github, download on greasyfork

Also, just for fun, here's an interactive demo of how it looks/works (slightly broken on dark mode, TODO):

hello world!

html

markdown

0 comments
view source
wrap text
good job! (in the userscript this button will actually work)
<!-- good job! -->

hello world!

<div style="font-size:1.5em;">html</div>

> **markdown**

last update: 1.0.9 (2024/02/27)

compatibility info and changelog:



You must log in to comment.

in reply to @amgg's post:

tested it on there and I'm seeing the same thing.

the match parse error itself has a simple fix, but there's some other parts of the script that also aren't working on greasemonkey so I'll need to fix those as well.