github-pre

Switches word wrapping for comments on github.com

Verzia zo dňa 06.06.2015. Pozri najnovšiu verziu.

Autor
S-ed
Hodnotenie
0 0 0
Verzia
0.150605.3
Vytvorené
06.06.2015
Aktualizované
06.06.2015
Veľkosť
2,6 KB
Licencia
MIT
Spustiť na

Userscript for github that adds a button to switch word wrapping for code in comments (see attached GIF file).

Script uses Local Storage to store a default setting of word wrapping for whole site. It will use hardcoded value

var wrapDefault = false;

if no Local Storage available.

There is no also menu to reset default value stored in Local Storage.

localStorage.removeItem("wrapDefault");

command may be used to reset the value.