Skip to content

Quick hack of buunguyen's octotree with a single file PR view

Notifications You must be signed in to change notification settings

ppar/octotree-hack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Octotree-hack

This is a quick and very dirty hack to Buu Nguyen's commendable Octotree Extension

Compared to the original extension, this adds two features to the GitHub Pull Request view:

  • The page shows only one file's diff at a time, this obviously being the file selected in the tree pane, so that PRs with several files become manageable
  • The diff is shown in full right away, eliminating the brain dead "unfold" buttons GH tries to push on you

Because I didn't want to invest valuable time into learning Octotree's bloated highly advanced build system, this is implemented by decompressing the compiled Chrome extension distributed by the original devs and hacking the generated octotree.js directly. Yes, it's that bad. The changed parts are indicated in the commit history

Installation

  • Download / clone the "chrome" directory somewhere
  • Go to chrome://extensions
  • Flip some bit in Chrome to enable developer mode
  • You probably want to remove the official octocat exension at this point
  • Click "Load Unpacked" => select the directory => ok

Screenshot

About

Quick hack of buunguyen's octotree with a single file PR view

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published