Enable code folding when viewing files in GitHub.

Latest Version

Version
0.3.3
Update
July 14, 2022
Size
1.06MiB
Developer
Category
Users
3,000+
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Scripting
See more

GitHub Code Folding Extension

Code folding - the ability to selectively hide and display sections of a code - is an invaluable feature in many text editors and IDEs. Now, developers can utilize that same style code-folding while poring over source code on the web in GitHub. Works for any type of indentation, spaces or tabs.


--- CHANGELOG ---
v0.3.3
- handle multi-level nested blocks

v0.3.2
- don't expand previously collapsed inner block when expanding outer block
- styling fix that prevented copying code

v0.3.1
- remove host permission

v0.3.0
- migrate manifest to v3
- update permissions
- fix styling

v0.2.0
- fix to use CSS selectors from updated github markup
- run on bbgithub

v0.1.1
- fix missing css file

v0.1.0
- remove jQuery dependency
- use event page instead of permanent background
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "GitHub Code Folding", "version": "0.3.3", "description": "Enable code folding when viewing files in GitHub.", "homepage_url": "https://github.com/noam3127/github-code-folding", "manifest_version": 3, "minimum_chrome_version": "88", "author": "Noam Lustiger", "short_name": "Github Code Folding", "permissions": [ "scripting" ], "host_permissions": [ "*://github.com/*" ], "background": { "service_worker": "background.js", "type": "module" }, "icons": { "128": "images/icon-128.png" }, "content_scripts": [{ "run_at" : "document_end", "matches": [ "*://github.com/*" ], "css": [ "style.css" ] }]}
Read more

Similar Extensions

icon

CodeWing - GitHub code navigation Extension · Developer Tools 3,000+ 3 ★ 166KiB

icon

Diff Navigator for GitHub Extension · Developer Tools 3,000+ 3 ★ 43.72KiB

icon

Builds Tab for Github Extension · Developer Tools 3,000+ 0 ★ 160KiB

icon

GitHub Highlight Selected Extension · Developer Tools 3,000+ 17 ★ 156KiB

icon

Markdown Menu for GitHub Extension · Developer Tools 3,000+ 9 ★ 5.8KiB

icon

OctoPermalinker Extension · Developer Tools 3,000+ 1 ★ 373KiB

icon

github npm stats Extension · Developer Tools 3,000+ 4 ★ 65.86KiB

icon

Notifications Preview for GitHub Extension · Productivity 3,000+ 6 ★ 40.9KiB

icon

GitHub Issue Link Status Extension · Developer Tools 3,000+ 12 ★ 629KiB

icon

Where is it? Extension · Developer Tools 3,000+ 3 ★ 653KiB

icon

Octohint Extension · Developer Tools 3,000+ 10 ★ 1.26MiB

icon

OctoLinker Extension · Developer Tools 3,000+ 110 ★ 184KiB

icon

Render Whitespace on GitHub Extension · Developer Tools 3,000+ 7 ★ 9.93KiB

icon

Package Hub Extension · Developer Tools 3,000+ 2 ★ 28.3KiB

icon

Refined GitHub Extension · Developer Tools 3,000+ 213 ★ 572KiB

icon

Octotree - GitHub code tree Extension · Developer Tools 3,000+ 1139 ★ 3.54MiB

icon

Enhanced GitHub Extension · Developer Tools 3,000+ 59 ★ 47.01KiB

icon

npmhub Extension · Developer Tools 3,000+ 19 ★ 77.19KiB

icon

GitHub Hovercard Extension · Developer Tools 3,000+ 41 ★ 121KiB

icon

Sourcegraph Extension · Developer Tools 3,000+ 169 ★ 8.22MiB

icon

Lovely forks Extension · Developer Tools 3,000+ 13 ★ 945KiB

icon

GitHub File Icons Extension · Developer Tools 3,000+ 8 ★ 435KiB

icon

github-vscode-icons Extension · Developer Tools 3,000+ 16 ★ 1.71MiB

icon

File Icons for GitHub and GitLab Extension · Developer Tools 3,000+ 48 ★ 460KiB

User reviews

icon

Kerry Johnson (ID: 000000b55c70e0ad) Voted 5 ★ - Updated 01/20/2023 Would be nicer if we can highlight the line to copy the folded block of code, but can't fault it - it does what is says.

icon

Franklin Yu (ID: 000000aa42b309bf) Voted 5 ★ - Updated 01/05/2021 A useful little tool; works as intended.

icon

Vasyl Khrystiuk (msangel) (ID: 000000cce826e453) Voted 5 ★ - Updated 04/19/2018 It would be nice to have "collapse all" in UI

icon

Godfery Young (ID: 00000064040cc89e) Voted 5 ★ - Updated 02/13/2017 特别好用

icon

Qodesmith (ID: 00000015712ead67) Voted 5 ★ - Updated 01/12/2017 Does what it says. I recommend this to everyone. The author is super responsive and actively maintains this plugin. I submitted an issue on the author's GitHub repo and it was resolved within 5 minutes! Incredible.