Github Word Wrapping for CODE blocks

Switches word wrapping for CODE blocks in comments on github.com

< 脚本Github Word Wrapping for CODE blocks的反馈

提问/评论

S-ed作者
§
发表于:2015-06-06

Why it's made that way...

I wanted to make it as simple as possible so...
1. No mutation observer - means only running on page load (new comments added by ajax wouldn't be affected, page reload needed)
2. No settings options, the only reason behind - I don't know where to put them. There is no GUI except small triangle, and I don't want add some context menu to it. Or add some "gear" icon somewhere on page.
3. Some people using languages sensitive to 'new line' symbols, so Wrapping is disabled by default (script will ask You to enable it on first run if You have Local Storage enabled).

It has MIT license so if You want You could do whatever You want with it, change, distribute, sell. As well no credit required if major changes applied (get a conscience, I wanna be famous as well >_<, but I like mod stuff so can't forbid You to).

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址