Skip to content

Commit

Permalink
Increase spacefinder minAbove distance by 100px
Browse files Browse the repository at this point in the history
  • Loading branch information
arelra committed May 17, 2024
1 parent 2ac42dd commit 475f0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/insert/spacefinder/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const addDesktopInline1 = (fillSlot: FillAdSlot): Promise<boolean> => {
const rules: SpacefinderRules = {
bodySelector: articleBodySelector,
candidateSelector: ':scope > p, [data-spacefinder-role="nested"] > p',
minAbove: isImmersive ? 700 : 300,
minAbove: isImmersive ? 800 : 400,
minBelow: 300,
opponentSelectorRules: {
// don't place ads right after a heading
Expand Down Expand Up @@ -322,7 +322,7 @@ const addDesktopRightRailAds = (fillSlot: FillAdSlot): Promise<boolean> => {
};

const addMobileInlineAds = (fillSlot: FillAdSlot): Promise<boolean> => {
const minDistanceFromArticleTop = 100;
const minDistanceFromArticleTop = 200;

const ignoreList = `:not(p):not(h2):not(hr):not(.${adSlotContainerClass}):not(#sign-in-gate):not([data-spacefinder-type$="NumberedTitleBlockElement"])`;

Expand Down

0 comments on commit 475f0d8

Please sign in to comment.