Skip to content

Greasemonkey script to enable/disable soft-wrapping on every file on Github pages

License

Notifications You must be signed in to change notification settings

luiz/github-soft-wrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Github soft-wrap

This is a Greasemonkey script that adds a "Soft wrap" button for every file and diff shown on page. This way, you can toggle soft-wrap for any type of file, either disabling soft-wrap for prose diffs (which are enabled by default) or enabling them for any other diff or file.

Chrome users

Download the script, open Google Chrome, open the Extensions page (chrome://extensions) the drag and drop the script into the page. This will install the script without the need of any other extension.

As an "advanced" alternative that offers more control over user scripts like this one, consider installing the Tampermonkey extension first.

Gotcha

You may need to reload the page if you navigated from another Github page. Github uses JavaScript to make navigation between pages faster, but the scripts executes on page load. Therefore, this script will only add the button on code that is already on the page when it loads.

About

Greasemonkey script to enable/disable soft-wrapping on every file on Github pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published