Greasy Fork is available in English.
Fix for kbin code blocks federated from Lemmy. Strips out the weird <span> tags on each line.
コードが変更されたバージョンのみを表示しています。 すべてのバージョンを表示
Removed kbin.run again because the script isn't needed there
Rewrite
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.
Removed the unnecessary g flags on the patterns
Just moved a comment
Added support for turbo mode
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.
Removed two console output lines I had included for debugging purposes.