Greasy Fork is available in English.

Fix kbin Code Blocks

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

queste sono le versioni di questo script in cui il codice è stato aggiornato Visualizza tutte le versioni.

  • v2.0.1 05/04/2024

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

  • v2.0 05/04/2024

    Rewrite

  • v1.2.3 04/01/2024

    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 01/12/2023

    Removed the unnecessary g flags on the patterns

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

    Just moved a comment

  • v1.2 21/11/2023

    Added support for turbo mode

  • v1.1 21/11/2023

    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 15/11/2023

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

  • v1.0 14/11/2023
  • v1.0 14/11/2023