How scotchester/github-diff-filter works
This is a small bookmarklet that adds file filtering controls to GitHub comparison pages. The workflow is: a user runs it on a comparison page, enters comma-separated text to hide matching files, and can restore all files with the show-all control. The sampled app source shows the DOM operations and event bindings; the form and styling are separate source assets. The app’s UI includes are build-time references, so their exact runtime packaging is not represented as a separate subsystem.
Main entry points: app.js Bookmarklet app · form.html Filter controls · style.less Overlay styling
Components 7
Bookmarklet
- Bookmarklet app
src/app.js - Filter controls
src/form.html - Overlay styling
src/style.less - Hide matching files
src/app.js - Show all files
src/app.js
Other components
- Bookmarklet user
- GitHub comparison page
Connections 7
- Bookmarklet user → Bookmarklet app: runs bookmarklet
README.md - Bookmarklet app → Filter controls: includes controls
src/app.js - Bookmarklet app → Overlay styling: includes styling
src/app.js - Filter controls → Hide matching files: submits query
src/app.js - Filter controls → Show all files: activates restore
src/app.js - Hide matching files → GitHub comparison page: hides matches
src/app.js - Show all files → GitHub comparison page: shows all files
src/app.js