Skip to content

Userscript for github that adds a button to switch word wrapping for code in comments.

Notifications You must be signed in to change notification settings

S-ed/github-pre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Github Word Wrapping for CODE blocks

Userscript for github that adds a button to switch word wrapping for code in comments.

Example usage

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.

test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test

Changelog

v.1.220705.1

Added fetch interceptor to handle navigation events.

Moved arrow button to top left to not interfere with Copy button.

Arrow button now has a state to show if the content is folded or not.

About

Userscript for github that adds a button to switch word wrapping for code in comments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published