├── content.js ├── .gitignore ├── icon.png ├── img ├── 1.png ├── 2.png ├── 3.png └── 4.png ├── paddings.css ├── manifest.json ├── LICENSE └── README.md /content.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dann254/stack-overflow-padding/HEAD/icon.png -------------------------------------------------------------------------------- /img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dann254/stack-overflow-padding/HEAD/img/1.png -------------------------------------------------------------------------------- /img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dann254/stack-overflow-padding/HEAD/img/2.png -------------------------------------------------------------------------------- /img/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dann254/stack-overflow-padding/HEAD/img/3.png -------------------------------------------------------------------------------- /img/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dann254/stack-overflow-padding/HEAD/img/4.png -------------------------------------------------------------------------------- /paddings.css: -------------------------------------------------------------------------------- 1 | 2 | .post-text pre, .wmd-preview pre { 3 | padding-bottom: 20px; 4 | padding-top: 20px; 5 | } 6 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Stack Overflow Padding", 3 | "version": "1.0", 4 | "description": "Fix the bottom scrollbar hiding pre formated text/code on stack overfow", 5 | "manifest_version": 2, 6 | "author": "Daniel Kipkemei", 7 | "homepage_url": "https://github.com/dann254/stack-overflow-padding", 8 | "icons": { 9 | "429": "icon.png" 10 | }, 11 | "permissions": ["https://stackoverflow.com/*"], 12 | "content_scripts": [{ 13 | "css": ["paddings.css"], 14 | "js": ["content.js"], 15 | "matches": ["https://stackoverflow.com/*"] 16 | }] 17 | } 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2010-2018 Google, Inc. http://angularjs.org 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 13 | all 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 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Chrome extension for stackoverflow 2 | 3 | This chrome extension fixes an issue where the bottom scrollbar blocks the last line of stackoverflow pre text or blocks of code. Pretty annoying right? 4 | 5 | > [Find it on chrome webstore](https://chrome.google.com/webstore/detail/stack-overflow-padding/fblinjehcjdhoilblhogpjpcadkceamj) 6 | 7 | If you don't know what i'm talking about here is a screenshot: 8 | ![sample](img/1.png) 9 | 10 | here is another. 😱 how am I gonna read that one liner now?:
11 | 12 | ![sample](img/2.png) 13 | 14 | I know what you are gonna say.. 15 | 16 | "But MacOs auto hides scrollbars by default 🙄" 17 | 18 | Well who is this MacOs you speak of?...... 😂 😂 😂 😂 😂 😂 19 | 20 | Sometimes it doesn't work and it gets more annoying every time you encounter it. 21 | 22 | 23 | ##### Are you waiting for superman? 24 | 25 | It is I, the much anticipated hero here to add some padding.
26 | Also I couldn't find a way to give feedback to stackoverflow. 🧐 27 | 28 | Here is how the fixed one looks like: 29 | ![sample4](img/4.png) 30 | 31 | and I saved the one liner too: 🤓 32 | 33 | ![sample3](img/3.png) 34 | 35 | ### Here is how to set up, or not, I don't know what you want to do. It's not like I can read minds or anything like that, or can I. 👀 36 | 37 | - Clone this repo or download it, or copy every file one by one. 38 | - Open chrome or switch to it if you had it Open 39 | - Enter `chrome://extensions/` on a new tab or an old one. 40 | - Click on `load unpacked` and look for this extension wherever you cloned it to. If you don't know where, you are wrapped helically around an inclined plane 🔩. Coz you have to clone it again or something. 41 | - Once you are done, The extension should work every time you are on stackoverflow. 42 | - If you make a change on the extension you have to refresh it, every time 🔄. 43 | 44 | *** Insert celebrating noises here *** 45 | 46 | 👀 47 | 48 | *** Celebrating Noise intensify *** 49 | --------------------------------------------------------------------------------