├── .github └── FUNDING.yml ├── .gitignore ├── CONTRIBUTING.md ├── DOCUMENTATION.md ├── LICENSE ├── README.md ├── build └── main ├── extension └── tmpl.js ├── icons ├── icon128.png ├── icon16.png ├── icon32.png └── icon48.png ├── lib └── index.js ├── manifest.json └── package.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: ionicabizau 2 | patreon: ionicabizau 3 | open_collective: ionicabizau 4 | custom: https://www.buymeacoffee.com/h96wwchmy -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | *~ 4 | *.log 5 | node_modules 6 | *.env 7 | .DS_Store 8 | package-lock.json 9 | .bloggify/* 10 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # 🌟 Contributing 2 | 3 | Want to contribute to this project? Great! Please read these quick steps to streamline the process and avoid unnecessary tasks. ✨ 4 | 5 | ## 💬 Discuss Changes 6 | Start by opening an issue in the repository using the [bug tracker][1]. Describe your proposed contribution or the bug you've found. If relevant, include platform info and screenshots. 🖼️ 7 | 8 | Wait for feedback before proceeding unless the fix is straightforward, like a typo. 📝 9 | 10 | ## 🔧 Fixing Issues 11 | 12 | Fork the project and create a branch for your fix, naming it `some-great-feature` or `some-issue-fix`. Commit changes while following the [code style][2]. If the project has tests, add one. ✅ 13 | 14 | If a `package.json` or `bower.json` exists, add yourself to the `contributors` array; create it if it doesn't. 🙌 15 | 16 | ```json 17 | { 18 | "contributors": [ 19 | "Your Name (http://your.website)" 20 | ] 21 | } 22 | ``` 23 | 24 | ## 📬 Creating a Pull Request 25 | Open a pull request and reference the initial issue (e.g., *fixes #*). Provide a clear title and consider adding visual aids for clarity. 📊 26 | 27 | ## ⏳ Wait for Feedback 28 | Your contributions will be reviewed. If feedback is given, update your branch as needed, and the pull request will auto-update. 🔄 29 | 30 | ## 🎉 Everyone Is Happy! 31 | Your contributions will be merged, and everyone will appreciate your effort! 😄❤️ 32 | 33 | Thanks! 🤩 34 | 35 | [1]: /issues 36 | [2]: https://github.com/IonicaBizau/code-style -------------------------------------------------------------------------------- /DOCUMENTATION.md: -------------------------------------------------------------------------------- 1 | ## Documentation 2 | 3 | You can see below the API reference of this module. 4 | 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-25 Ionică Bizău (https://ionicabizau.net) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | # GitHub Old Header 21 | 22 | [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/github-old-header.svg)](https://www.npmjs.com/package/github-old-header) [![Downloads](https://img.shields.io/npm/dt/github-old-header.svg)](https://www.npmjs.com/package/github-old-header) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github) 23 | 24 | Buy Me A Coffee 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | > Brings the old header links back. 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | [![github-old-header](http://i.imgur.com/Otx9HcQ.png)](#) 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | ## Installation 57 | 58 | 59 | If you are using Chrome/Chromium you can install [this extension I wrote](https://chrome.google.com/webstore/detail/github-old-header/bbencfiifelhglgknaheifiekmjndlek). It's just a faster way to install the same thing. 60 | 61 | If you don't want to install the extension, you have the alternative to add the script located in [`lib/index.js`](/lib/index.js)) to: 62 | 63 | 64 | - [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) (in Chrome/Chromium) 65 | - [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/), if you are using Firefox 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | ## :question: Get Help 85 | 86 | There are few ways to get help: 87 | 88 | 89 | 90 | 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question. 91 | 2. For bug reports and feature requests, open issues. :bug: 92 | 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket: 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | ## :yum: How to contribute 112 | Have an idea? Found a bug? See [how to contribute][contributing]. 113 | 114 | 115 | ## :sparkling_heart: Support my projects 116 | I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, 117 | this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it). 118 | 119 | However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it: 120 | 121 | 122 | - Starring and sharing the projects you like :rocket: 123 | - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book: 124 | - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea: 125 | - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone). 126 | - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6` 127 | 128 | ![](https://i.imgur.com/z6OQI95.png) 129 | 130 | 131 | Thanks! :heart: 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | ## :scroll: License 157 | 158 | [MIT][license] © [Ionică Bizău][website] 159 | 160 | 161 | 162 | 163 | 164 | 165 | [license]: /LICENSE 166 | [website]: https://ionicabizau.net 167 | [contributing]: /CONTRIBUTING.md 168 | [docs]: /DOCUMENTATION.md 169 | [badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg 170 | [badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg 171 | [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg 172 | [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg 173 | [patreon]: https://www.patreon.com/ionicabizau 174 | [amazon]: http://amzn.eu/hRo9sIZ 175 | [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW 176 | -------------------------------------------------------------------------------- /build/main: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | // Dependencies 4 | var Barbe = require("barbe") 5 | , Fs = require("fs") 6 | , UglifyJS = require("uglify-js") 7 | ; 8 | 9 | // Constants 10 | const LIB_CONTENT = Fs.readFileSync(__dirname + "/../lib/index.js", "utf-8"); 11 | const EXT_CONTENT = Fs.readFileSync(__dirname + "/../extension/tmpl.js", "utf-8"); 12 | 13 | // Uglify the library code 14 | Fs.writeFileSync(__dirname + "/../extension/index.js", Barbe(EXT_CONTENT, { 15 | lib: UglifyJS.minify(LIB_CONTENT, { 16 | fromString: true 17 | }).code.replace(/\"/g, "\\\"") 18 | })); 19 | -------------------------------------------------------------------------------- /extension/tmpl.js: -------------------------------------------------------------------------------- 1 | var script = document.createElement("script"); 2 | script.innerHTML = "{lib}"; 3 | (document.head || document.documentElement).appendChild(script); 4 | -------------------------------------------------------------------------------- /icons/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IonicaBizau/github-old-header/ab3144a2502cd45f82249ba1d935a2e81e3f77d4/icons/icon128.png -------------------------------------------------------------------------------- /icons/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IonicaBizau/github-old-header/ab3144a2502cd45f82249ba1d935a2e81e3f77d4/icons/icon16.png -------------------------------------------------------------------------------- /icons/icon32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IonicaBizau/github-old-header/ab3144a2502cd45f82249ba1d935a2e81e3f77d4/icons/icon32.png -------------------------------------------------------------------------------- /icons/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IonicaBizau/github-old-header/ab3144a2502cd45f82249ba1d935a2e81e3f77d4/icons/icon48.png -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name GitHub Old Header 3 | // @version 1.0.0 4 | // @description Brings the old header links back. 5 | // @author Ionică Bizău (http://ionicabizau.net) 6 | // @match https://github.com/* 7 | // ==/UserScript== 8 | 9 | (function () { 10 | 11 | function $ (sel) { 12 | var elm = document.querySelector(sel); 13 | return elm; 14 | } 15 | 16 | // Get the logged in username 17 | var me = $(".header-nav.user-nav.right .css-truncate-target").innerHTML; 18 | if (!me) { return; } 19 | 20 | // Doesn't look so ugly as I expected :) 21 | $(".header-nav.left").innerHTML = "
  • Explore
  • " 22 | + "
  • Gist
  • " 23 | + "
  • Blog
  • " 24 | + "
  • Pull Requests
  • " 25 | + "
  • Issues
  • "; 26 | 27 | var newLi = document.createElement("li"); 28 | newLi.setAttribute("class", "header-nav-item"); 29 | newLi.innerHTML = "" + me + ""; 30 | var avatarLi = $("#user-links .avatar").parentNode.parentNode; 31 | avatarLi.parentNode.insertBefore(newLi, avatarLi); 32 | })(); 33 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "GitHub Old Header", 3 | "short_name": "github-old-header", 4 | "version": "2.4.0", 5 | "manifest_version": 2, 6 | "icons": { 7 | "16": "icons/icon16.png", 8 | "32": "icons/icon32.png", 9 | "48": "icons/icon48.png", 10 | "128": "icons/icon128.png" 11 | }, 12 | "description": "Brings the old header links back.", 13 | "permissions": ["https://github.com/*"], 14 | "content_scripts" : [{ 15 | "matches" : [ "https://github.com/*"], 16 | "js" : ["extension/index.js"] 17 | }] 18 | } 19 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "github-old-header", 3 | "version": "2.4.11", 4 | "description": "Brings the old header links back.", 5 | "main": "lib/index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git@github.com:IonicaBizau/github-old-header.git" 12 | }, 13 | "keywords": [ 14 | "github", 15 | "old", 16 | "header" 17 | ], 18 | "author": "Ionică Bizău (https://ionicabizau.net)", 19 | "license": "MIT", 20 | "bugs": { 21 | "url": "https://github.com/IonicaBizau/github-old-header/issues" 22 | }, 23 | "homepage": "https://github.com/IonicaBizau/github-old-header", 24 | "blah": { 25 | "ex_img": "http://i.imgur.com/Otx9HcQ.png", 26 | "title": "GitHub Old Header", 27 | "show_installation": false, 28 | "installation": [ 29 | { 30 | "h2": "Installation" 31 | }, 32 | { 33 | "p": [ 34 | "If you are using Chrome/Chromium you can install [this extension I wrote](https://chrome.google.com/webstore/detail/github-old-header/bbencfiifelhglgknaheifiekmjndlek). It's just a faster way to install the same thing.", 35 | "If you don't want to install the extension, you have the alternative to add the script located in [`lib/index.js`](/lib/index.js)) to:" 36 | ] 37 | }, 38 | { 39 | "ul": [ 40 | "[Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) (in Chrome/Chromium)", 41 | "[Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/), if you are using Firefox" 42 | ] 43 | } 44 | ] 45 | }, 46 | "devDependencies": {}, 47 | "dependencies": { 48 | "uglify-js": "^2.4.23", 49 | "barbe": "^2.0.0" 50 | }, 51 | "files": [ 52 | "bin/", 53 | "app/", 54 | "lib/", 55 | "dist/", 56 | "src/", 57 | "scripts/", 58 | "resources/", 59 | "menu/", 60 | "cli.js", 61 | "index.js", 62 | "index.d.ts", 63 | "package-lock.json", 64 | "bloggify.js", 65 | "bloggify.json", 66 | "bloggify/" 67 | ] 68 | } --------------------------------------------------------------------------------