This Chrome extension highlights promoted posts on Reddit.
- Clone or download this repo to your local machine.
- Navigate to
chrome://extensions
in your Chrome browser. - Toggle on "Developer mode" at the top right.
- Click "Load unpacked" and select the directory of this extension.
Reddit Ad Highlighter
scans for elements with the data-testid="post-container"
attribute, checking for the presence of child span
elements with the text "promoted". When identified, a solid red border is added around the promoted post.
The extension also observes for changes to the DOM, re-running the scan to ensure newly loaded posts are also checked.
This extension is currently configured to work only with Reddit's HTML structure as of July 2023. Changes to Reddit's structure may impact functionality.