Fix kbin Code Blocks

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

这些是代码更新过的版本。 显示所有版本

  • v2.0.1 2024-04-05

    Removed kbin.run again because the script isn't needed there

  • v2.0 2024-04-05

    Rewrite

  • v1.2.3 2024-01-04

    Fixes some issues with the script that were brought up on the KES Github.

    I had assumed Lemmy just adds this specific color to every line, but it seems to rather be syntax highlighting, so it can be any color or there might be multiple colors per line. The code blocks I've tested it with probably just didn't have a code language set.

  • v1.2.2 2023-12-01

    Removed the unnecessary g flags on the patterns

  • v1.2.1 2023-11-30
  • v1.2.0.1 2023-11-21

    Just moved a comment

  • v1.2 2023-11-21

    Added support for turbo mode

  • v1.1 2023-11-21

    Previously the script only ran when the page was loaded. Which is an issue if additional elements get loaded in, like via infinite scrolling.
    Now it should work for dynamically loaded comments, though turbo mode still doesn't seem to work. I'll look into that next.

  • v1.0.1 2023-11-15

    Removed two console output lines I had included for debugging purposes.

  • v1.0 2023-11-14
  • v1.0 2023-11-14