# github1s **Repository Path**: yankee4214/github1s ## Basic Information - **Project Name**: github1s - **Description**: github1s - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-02-23 - **Last Updated**: 2021-02-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![GitHub1s](https://raw.githubusercontent.com/conwnet/github1s/master/resources/images/logo.png) # github1s One second to read GitHub code with VS Code. ## Usage Just add `1s` after `github` and press `Enter` in the browser address bar for any repository you want to read. For example, try it on the VS Code repo: [https://github1s.com/microsoft/vscode](https://github1s.com/microsoft/vscode) ![VS Code - GitHub1s](https://raw.githubusercontent.com/conwnet/github1s/master/resources/images/vs-code-github1s.png) For browser extensions, see [Third-party Related Projects](https://github.com/conwnet/github1s#third-party-related-projects). Or save the following code snippet as a bookmarklet (GitHub markdown doesn't allow js links, so just copy it into a bookmark). ``` javascript: window.location.href = window.location.href.replace('github.com', 'github1s.com') ``` ## Documentation - [How it works](https://github.com/conwnet/github1s/blob/master/docs/guide.md) - [Roadmap](https://github.com/conwnet/github1s/projects/1) ## Screenshots ![VS Code - GitHub1s](https://raw.githubusercontent.com/mohitjaisal/github1s/master/resources/images/Github1sDemo1.gif) ![VS Code - GitHub1s](https://raw.githubusercontent.com/conwnet/github1s/master/resources/images/demo.png) ## Development You need [these prerequisites (the same ones as for VS Code)](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites) for development. ```bash $ git clone git@github.com:conwnet/github1s.git $ cd github1s $ yarn $ yarn watch $ yarn serve # in another shell $ # Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. ``` ### ... or ... VS Code + Docker Development You can use the VS Code plugin [Remote-Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) `Dev Container` to use a Docker container as a development environment. 1. Install the Remote-Containers plugin in VS Code & Docker 2. Open the Command Palette (default shortcut `Ctrl+Shift+P`) and choose `Remote-Containers: Clone Repository in Container Volume...` 3. Enter the repo, in this case `https://github.com/conwnet/github1s.git` or your forked repo 4. Pick either, `Create a unique volume` or `Create a new volume` - Now VS Code will create the docker container and connect to the new container so you can use this as a fully setup environment! 5. Open a new VS Code Terminal, then you can run the `yarn` commands listed above. ```bash $ yarn $ yarn watch $ yarn serve # in another shell $ # Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed. ``` ### Format all codes ```bash yarn format ``` It uses `prettier` to format all possible codes. ## Build ```bash $ yarn $ yarn build ``` ## Third-party Related Projects ### Chrome Extensions - [zulhfreelancer](https://github.com/zulhfreelancer)/[Open in VS Code](https://chrome.google.com/webstore/detail/open-in-vs-code-github1sc/neloiopjjeflfnecdlajhopdlojlkhll) - [fhefh2015/GitHub1s_chrome_extension](https://github.com/fhefh2015/GitHub1s_chrome_extension) - [Chrome Web Store](https://chrome.google.com/webstore/detail/github1s/lodjfmkfbfkpdhnhkcdcoonghhghbkhe) - [febaoshan/edge-extensions-github-code-viewer](https://github.com/febaoshan/edge-extensions-github-code-viewer) - [Chrome Web Store](https://chrome.google.com/webstore/detail/github-code-viewer/ecddapgifccgblebfibdgkagfbdagjfn) - [Darkempire78/Github1s-Extension](https://github.com/Darkempire78/Github1s-Extension) - [zvizvi/Github Web IDE](https://github.com/zvizvi/github-web-ide) - [Chrome Web Store](https://chrome.google.com/webstore/detail/adjiklnjodbiaioggfpbpkhbfcnhgkfe) - [katsuhisa91/github1s-shortcut](https://github.com/katsuhisa91/github1s-shortcut) - [Chrome Web Store](https://chrome.google.com/webstore/detail/shortcut-to-github1s/gfcdbodapcbfckbfpmgeldfkkgjknceo) ### Firefox Extensions - [Darkempire78/Github1s-Extension](https://github.com/Darkempire78/Github1s-Extension) - [Firefox Browser Addons](https://addons.mozilla.org/firefox/addon/github1s-extension) - [mcherifi/github1s-firefox-addon](https://github.com/mcherifi/github1s-firefox-addon) - [Firefox Browser Addons](https://addons.mozilla.org/firefox/addon/github1s/) - [zvizvi/Github Web IDE](https://github.com/zvizvi/github-web-ide) - [Firefox Browser Addons](https://addons.mozilla.org/firefox/addon/github-web-ide/) ### Microsoft Edge Extensions - [febaoshan/edge-extensions-github-code-viewer](https://github.com/febaoshan/edge-extensions-github-code-viewer) - [zvizvi/Github Web IDE](https://github.com/zvizvi/github-web-ide) - [Edge Add-ons Store](https://microsoftedge.microsoft.com/addons/detail/akjbkjciknacicbnkfjbnlaeednpadcf) ### Tampermonkey scripts - [Mr-B0b/TamperMonkeyScripts/vscode.js](https://github.com/Mr-B0b/TamperMonkeyScripts/blob/main/vscode.js)