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

How to download and manually install GitHub Code Folding extension for Chrome

Looking for a way to install GitHub Code Folding extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install GitHub Code Folding extensions manually, this article outlines two simple methods to effortlessly install GitHub Code Folding extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download GitHub Code Folding extension and manually install through Drag &Drop

If you ever need to manually install a GitHub Code Folding extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the GitHub Code Folding Extension by clicking the "Download CRX" button on the website.

Look for the GitHub Code Folding extension you wish to install. Go to the website and download the GitHub Code Folding extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for GitHub Code Folding extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the GitHub Code Folding extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download GitHub Code Folding extension for Chrome and install in Developer Mode

This is another method to install GitHub Code Folding extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the GitHub Code Folding extension file

Select and download the GitHub Code Folding extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the GitHub Code Folding extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your GitHub Code Folding extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the GitHub Code Folding extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install GitHub Code Folding extension in 2 ways. We hope this guide proves helpful.

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.