This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

LinkedIn Feed Ad Remover

Productivity · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryProductivity
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

This script automatically detects and removes sponsored content and advertisement posts from your LinkedIn feed. When you browse your home feed, company pages, search results, or notifications, the script scans each post for indicators that it is an ad—such as "sponsored" labels, "Promoted" text, or ad-specific data attributes. When an ad is detected, the script hides the entire post container by setting its display to none, effectively removing it from view. The result is a cleaner, less cluttered feed that focuses on organic content from your network. A counter in the bottom-right corner shows how many ads have been removed during your current browsing session, giving you real-time feedback on the script's activity. If you ever need to see ads again, you can temporarily disable the script or show all ads with a single click, without reloading the page.

WHERE IT RUNS

The script runs on all LinkedIn domains (*.linkedin.com). It works on the home feed (linkedin.com/feed), company pages, job search results, notification pages, and any other page that displays feed-style posts. It handles both the desktop web interface and LinkedIn's mobile-responsive view. The script uses a MutationObserver to detect new posts as they load via infinite scroll, so ads are removed as soon as they appear without requiring page refreshes.

HOW TO USE

After installation, the settings panel appears on the left side of the screen with the gear emoji (⚙️). Open the panel to control the script:

- The main toggle "Remove ads from feed" enables or disables ad removal. When enabled, ads are hidden automatically. When disabled, all ads are shown again.

- Toggle "Show ad counter" to display or hide the counter in the bottom-right corner showing how many ads have been removed.

- Click "Scan for ads now" to manually trigger a scan of the current feed if you notice ads that weren't removed.

- Click "Show all ads" to temporarily reveal all hidden ads and disable ad removal.

- Click "Reset counter" to reset the ad removal counter to zero.

The script works automatically in the background—just browse LinkedIn as usual and enjoy a cleaner feed.

TECHNICAL SECTION — REAL MECHANISM

The script identifies ad posts using a multi-layered detection strategy. First, it collects all potential feed containers using selectors such as .feed-shared-update-v2, .feed-shared-update, .feed-shared-post, and .occludable-update. For each container, it checks if the container itself or any of its child elements contain "sponsored," "promoted," or "advertisement" text. It also looks for specific data attributes like data-sponsored and data-ad that LinkedIn sometimes adds to ad containers. Additionally, it searches for badge elements with aria-label containing "sponsored" and class names that include "sponsored" or "promoted." The script also examines metadata elements such as .feed-shared-actor__description and .update-components-actor__sub-description, which often contain the "sponsored" label in a subtle font. When a post is identified as an ad, the script stores a reference to its container using a WeakSet to avoid duplicate processing, then applies CSS properties to hide it completely: display:none, visibility:hidden, height:0, overflow:hidden, and zero padding/margin/border. This ensures the ad takes up no visible space and does not affect the layout of surrounding posts. The script queues processing using setTimeout to batch rapid DOM mutations, preventing performance issues during scrolling. A MutationObserver watches for new nodes being added to the feed and triggers the ad detection logic only when new posts are detected, reducing unnecessary CPU usage.

THE PANEL

The settings panel is built with BotGentz's BGPanel component. It is draggable via its header, allowing you to reposition it anywhere on the screen. The panel snaps to the left edge by default but can be moved freely. Click the gear emoji to collapse the panel into a small bubble, and click the bubble to expand it again. The panel remembers its position per page session. Press the Escape key to quickly close or minimize the panel. The panel includes a status flash bar that provides visual feedback when settings are changed or actions are performed. All toggles and settings save automatically via GM_setValue.

PLEASE NOTE

This script requires the free BotGentz browser extension to run. It does not function as a standalone Chrome extension and does not use chrome.* APIs. LinkedIn frequently updates its DOM structure and ad delivery mechanisms, which may break the script's selectors or detection logic. If ads stop being removed, please check for script updates. The script stores only two boolean preferences (enabled and showCount) via GM_setValue. No data is sent externally. The script never reads or writes password fields, hidden inputs, or file inputs. All DOM operations use safe methods (style properties, classList, WeakSet) and never use innerHTML. The script does not block ad delivery from LinkedIn's servers—it only hides ad elements after they have loaded in your browser. This means ad impressions may still be counted by LinkedIn, but you will not see the ad content.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.