sindresorhus / hide-files-on-github

Chrome extension - Hide nonessential files from the GitHub file browser
https://chrome.google.com/webstore/detail/hide-files-on-github/lpnakhpaodhdkleejaehlapdhbgjbddp
MIT License
320 stars 35 forks source link

DRY #59

Closed fregante closed 7 years ago

fregante commented 7 years ago

I saw a lot of operations that could be skipped, so I ended up dropping ⅔ of the code.

The toggle is now CSS-only via the good ol' checkbox hack — but it can be restored to JS in probably fewer lines, if needed.

Also fixes #55 for good measure.

sindresorhus commented 7 years ago

Nice cleanup 👍