├── images ├── padhai-kar-le-bhai-128.png ├── padhai-kar-le-bhai-16.png └── padhai-kar-le-bhai-48.png ├── manifest.json ├── blocker.js ├── LICENSE └── README.md /images/padhai-kar-le-bhai-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauriimaheshwarii/padh-le-bhaii-browser-extension/HEAD/images/padhai-kar-le-bhai-128.png -------------------------------------------------------------------------------- /images/padhai-kar-le-bhai-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauriimaheshwarii/padh-le-bhaii-browser-extension/HEAD/images/padhai-kar-le-bhai-16.png -------------------------------------------------------------------------------- /images/padhai-kar-le-bhai-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gauriimaheshwarii/padh-le-bhaii-browser-extension/HEAD/images/padhai-kar-le-bhai-48.png -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 3, 3 | "name": "padh le bhaii", 4 | "version": "0.0.1", 5 | "description": "Extension to make you get back to work", 6 | "icons": { 7 | "16": "images/padhai-kar-le-bhai-16.png", 8 | "48": "images/padhai-kar-le-bhai-48.png", 9 | "128": "images/padhai-kar-le-bhai-128.png" 10 | }, 11 | "content_scripts": [ 12 | { 13 | "matches": [""], 14 | "js": ["blocker.js"] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /blocker.js: -------------------------------------------------------------------------------- 1 | const defineCSS = () => { 2 | return `` 16 | } 17 | 18 | const defineHTML = () => { 19 | return `
20 | 21 |
` 22 | } 23 | 24 | const forbiddenURLs = ["twitter.com", "web.whatsapp.com","instagram.com","netflix.com","youtube.com","pinterest.com","reddit.com","amazon.com","music.youtube.com","facebook.com"]; 25 | const set = new Set(forbiddenURLs); 26 | 27 | if (set.has(window.location.hostname)) { 28 | document.head.innerHTML = defineCSS(); 29 | document.body.innerHTML = defineHTML(); 30 | } 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Gauri Maheshwari 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 | # padh le bhaii 2 | Extension to make you get back to work. 3 | 4 | ![Visitor Badge](https://visitor-badge.laobi.icu/badge?page_id=gauriimaheshwarii.padh-le-bhaii) 5 | [![Twitter Follow](https://img.shields.io/twitter/follow/gaurii09)](https://twitter.com/gaurii09) 6 |
7 | 8 | ## How to install? 9 | 10 | 1. Clone the repository. You can do it by typing the following command in the terminal. 11 | ```bash 12 | https://github.com/gauriimaheshwarii/padh-le-bhaii-browser-extension.git 13 | ``` 14 | 2. Go to the Chrome menu icon and select [Extensions](chrome://extensions/) from the Tools menu.
15 | Ensure that the "Developer mode" checkbox in the top right-hand corner is checked. 16 | 17 | 3. Click on `Load unpacked` and then select the folder where you have cloned the repository. 18 | 19 | image 20 | 21 | The extension is now automatically loaded and enabled on your browser, so you can get back to studying now.
22 | ALL THE BEST!✨ 23 | 24 |
25 | 26 |
27 |
28 | 29 |

30 | Made in distress by Gauri Maheshwari :) 31 |

32 | --------------------------------------------------------------------------------