Greasy Fork is available in English.

Github Word Wrapping for CODE blocks

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

< Feedback on Github Word Wrapping for CODE blocks

Question/comment

S-edAuthor
§
Posted: 6.6.2015

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).

Post reply

Sign in to post a reply.