A Chrome Extension to Minimize Distractions on Instagram
This extension helps you boost your productivity on Instagram by automatically hiding the Reels and Explore tabs. It's designed to reduce the temptation to endlessly scroll and focus on the content you want to see. π―
Installation & Setup βοΈ
- Download the extension files from this repository.
- Open Chrome and go to
chrome://extensions/. - Enable "Developer mode" in the top right corner.
- Click the "Load unpacked" button.
- Select the folder containing the unpacked extension files.
Source Code Overview π
The extension consists of the following files:
manifest.json: π The main configuration file for the Chrome extension. It defines the extension's metadata, permissions, and content scripts.content.js: β‘ This script is injected into the Instagram webpage. It's responsible for applying the CSS classes to hide relevant tabs. It also includes logic to clean up suggested posts.styles.css: π¨ Contains the CSS rules to hide relevant tabs.popup.html: πΌοΈ This is the HTML file for the popup window.popup.js: βοΈ This is the javascript file for the popup window.
How it Works π§
- Content Script Injection: The
content.jsscript is injected into the Instagram webpage when you visit the site. - CSS Class Application: The script identifies relevant elements and adds the
productive-insta-hiddenclass to them. - CSS Styling: The
styles.cssfile defines the CSS rules that hide elements with theproductive-insta-hiddenclass.
Issues & Contribution π€
Feel free to open a github issue or submit a PR in case you have any bugfixes / feature requests
For more detailed information, visit the official InstaFocus website: InstaFocus Official Website