
The features offered by each app vary, however.
#CHROME EXTENSIONS OPEN LINKEDIN COMMENTS FOR MAC#
It has a website, Chrome extensions, desktop apps for Mac and Windows, and mobile apps for iOS and Android. Open your Control Panel, select Programs and. If you're still having trouble, this can indicate there is a previous version of Loom stuck in the device registry, you'll need to manually uninstall Loom to fix this. Click Loom then select the Uninstall button that appears. What have been the most interesting features you've seen in a chrome extension.Navigate to where you see Loom. But there are so many different options for what chrome extensions can do, like adding gifs to your PRs or for interacting with posts online. You can also interact with OpenSauced highlights and more. As you've seen from the gif at the top of this blog post, our extension has features for refactoring code, writing tests, and explaining code.
#CHROME EXTENSIONS OPEN LINKEDIN COMMENTS FULL#
You can find the full code for our chrome extension in our open-sauced/ai repo. There are a lot of different possibilities for what you can do if you create your own chrome extension. The button is successfully injected right where I wanted it!

Here, the js key expects an array of the paths where the content scripts to be executed reside, and the matches key expects an array of URLs of the webpages which this content script will be injected into. This is a snippet from the OpenSauced.ai chrome extension's manifest.json file. Here's an example snippet from the OpenSauced.ai chrome extension:Įnter fullscreen mode Exit fullscreen mode The "View on OpenSauced" button, for example, should be injected if the current page is a profile page, and the various PR review features should only be injected when the current page is a code review page.Īll your conditionals and injections should go inside this content-script.

In the OpenSauced.ai chrome extension, we use this information to decide which element needs to be injected into the page. Therefore, we can read the current URL and perform various actions based on the page the user is on! You can create your content script, a standard JavaScript/TypeScript file in the src/ folder for you chrome extension, we later discuss how you register it in manifest.json in the root.Ĭontent scripts can read details of the web pages the browser visits, make changes to them, and pass information to their parent extension. By utilizing content scripts, the OpenSauced.ai chrome extension is able to add its useful features and enhance the user experience on GitHub.Ĭreating a content script for a Chrome Extension They act as a bridge between the extension and the webpage, enabling the injection of UI elements seamlessly. Content scripts are a feature provided by Chrome extensions that allow them to manipulate and modify the DOM (Document Object Model) of a webpage. This is where content scripts play a crucial role. This extension modifies the GitHub web page and adds helpful elements with features to facilitate code reviews, enable direct interaction with OpenSauced on GitHub, and provide additional functionalities such as generating tests and explaining code.īut how does that work exactly? How can a chrome extension insert UI elements into a webpage? 🤔ĭOMination: Unleashing the Power of Content Scripts It uses AI tools and integrates smoothly with the OpenSauced platform to enhance discoverability. The OpenSauced.ai chrome extension is a versatile tool that helps both open source maintainers and contributors increase their productivity. If you want to do a deep dive into the extension, there's a link to the repository at the end of this post. I'll walk you through the process of how we do it using the OpenSauced.ai chrome extension. Hopefully, by the end of this blog post, you'll have an idea of how the magic happens, and how you can use content scripts to create your own UI magic through a chrome extension. Have you ever wondered how chrome extensions can change the UI of some of your favorite websites, like YouTube and GitHub? Chrome extensions can be a powerful tool for boosting productivity, helping you to debug code, and sometimes just plain fun.
