Repository navigation
chore(ads): remove the empty display-ad slots and the EX.CO player - #7540
Merged
Merged
Conversation
Nothing has filled these anchors since Content Ignite was removed on 2026-11-05, and both kill switches (read_ads, organic_ads) were off, so the slots rendered nothing in production. Removes the slot framework (ProgrammaticAd, ReadAdSlot, slots map, phone strip, top leaderboard, content splitter), the two GrowthBook flags, the ad props threaded through the post page, PostContent, the hybrid column, PostWidgets and the comment thread, the --phone-top-ad-height offsets, and the storybook ad-slot stories. The internal direct-sold ads are untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FodmVtwjhcXLFHfc3EtuDP
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
idoshamun
enabled auto-merge (squash)
November 30, 2026 12:32
idoshamun
disabled auto-merge
November 30, 2026 12:36
Drops the player widget (rail and inline placements), the /embed/exco frame the extension loaded it through, its styles, the exco_player flag, the video log events and the excoPlaylistId selection on the post query. EX.CO also leaves the TCF vendor list the consent banner declares. ads.txt is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FodmVtwjhcXLFHfc3EtuDP
idoshamun
enabled auto-merge (squash)
November 30, 2026 12:41
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ido · project thread
Changes
Nothing has filled the programmatic display-ad anchors since Content Ignite was removed on 2026-11-05 (#7242, #7244, #7246). Both kill switches,
read_adsandorganic_ads, were off, so the slots rendered nothing in production. This removes the framework:ProgrammaticAd,ReadAdSlot,read/slots.ts,useReadAdSlots,PhoneTopAdStrip,ReadTopLeaderboard,useTimedReleaseandsplitContentForAds, plus their specs.read_adsandorganic_adsflags fromfeatureManagement.ts./posts/[id]): drops the organic slot wiring and the phone strip banner./articles(ReadPostContent): renders the TLDR and body as plain blocks with no slots, and the header no longer pins with a leaderboard for 10 seconds.PostContent,BasePostContent,PostHybridColumn/PostHybridContent(ads,contentLeading,renderSummarySegments,aboveComments,commentAds,getWidgetRailAd/getRailAd), the rail slot wrapper andtrailinginPostWidgets, and comment interleaving inPostComments,PostEngagementsandPostHybridDiscussion.--phone-top-ad-heightoffsets (nothing sets the variable any more).AdInventory,AdPages,adSlot) and the programmatic controls.It also removes the EX.CO video player:
PostExcoPlayerWidget(rail and inline placements),ExcoPlayer,ExcoPlayerFrame,exco.ts,excoFrame.ts,useExcoPlayerLogging, the player's CSS overrides and the/embed/excopage the extension loaded it through (with its CSP header rule and bare-embed route entry).exco_playerflag and stops selectingexcoPlaylistIdon the post query. The API field stays for now, because extension builds already in the wild still request it.ads.txtis unchanged.The remaining internal ads (direct-sold sidebar card, ad as comment) are unchanged.
hideInternalAdstays onPostEngagementsfor the/articlestemplate.Verification:
pnpm typecheck(shared, webapp, extension) andtypecheck:strict:changedpass. oxlint and oxfmt are clean on the changed files; the only lint findings left in the storybook files existed before this PR. After the EX.CO commit, typecheck (webapp, extension) and the strict changed-files check pass again, oxlint/oxfmt are clean, shared tests forcomponents/postandlibpass (765 tests), and the full webapp suite passes (712 tests).Events
Removes the EX.CO player events, which nothing else logs:
video player load,video player error,video player blocked,video progress,video ad progress,video sound,video sticky(target typevideo player). The player's ad breaks also stop sending AdActions withad_provider_idexco.Experiment
No new experiments.
Manual Testing
Not run in a browser. With both flags off, production already rendered none of the display slots. The EX.CO player disappears from the post page rail and inline placement wherever
exco_playerwas on.Preview domain
https://chore-remove-programmatic-ad-slo.preview.app.daily.dev
Generated by Claude Code