Skip to content

fix: adjust PowerLink placeholder remover's parameters for Samsung Internet and Firefox Mobile#219

Merged
piquark6046 merged 4 commits intomainfrom
fix/samsunginternet
Mar 17, 2026
Merged

fix: adjust PowerLink placeholder remover's parameters for Samsung Internet and Firefox Mobile#219
piquark6046 merged 4 commits intomainfrom
fix/samsunginternet

Conversation

@piquark6046
Copy link
Member

No description provided.

@piquark6046 piquark6046 changed the title fix: set display: none !important; mutilple time for Samsung Internet fix: adjust PowerLink placeholder remover's parameters for Samsung Internet and Firefox Mobile Mar 17, 2026
@piquark6046 piquark6046 marked this pull request as ready for review March 17, 2026 10:26
Copilot AI review requested due to automatic review settings March 17, 2026 10:26
@piquark6046 piquark6046 merged commit 47f1417 into main Mar 17, 2026
9 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the PowerLink placeholder/skeleton container detection heuristics in the userscript to better match layout differences observed on Samsung Internet and Firefox Mobile, improving ad placeholder removal reliability.

Changes:

  • Expand container candidate filtering to accept either padding-top or margin-top thresholds.
  • Loosen the title margin-bottom vs. title height ratio threshold (0.75 → 0.65) used to identify skeleton/title-like elements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +86 to +89
ContainerElements = new Set([...ContainerElements].filter(Container => {
return Number(getComputedStyle(Container).getPropertyValue('padding-top').replaceAll(/px$/g, '')) > 10 ||
Number(getComputedStyle(Container).getPropertyValue('margin-top').replaceAll(/px$/g, '')) > 10
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants