Skip to content

Restore feed filtering on linkedin.com host variants and updated feed markup#83

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-linkedin-hide-likes-issue
Draft

Restore feed filtering on linkedin.com host variants and updated feed markup#83
Copilot wants to merge 2 commits intomainfrom
copilot/fix-linkedin-hide-likes-issue

Conversation

Copy link

Copilot AI commented Feb 17, 2026

LinkedIn feed filtering regressed in two ways: on some sessions the extension no longer applied at all, and “Hide liked by connections” stopped matching new feed wording. This change updates host/URL and feed matching assumptions to align with current LinkedIn behavior.

  • Host coverage and script injection

    • Added https://linkedin.com/* alongside https://www.linkedin.com/* in manifest.json for:
      • content_scripts.matches
      • web_accessible_resources.matches
      • host_permissions
    • This ensures content scripts run when LinkedIn resolves to the non-www host.
  • Feed item selector compatibility

    • Expanded feed post selectors in src/constants.js to include both:
      • data-id*="urn:li:..."
      • data-urn*="urn:li:..."
    • Keeps filtering active if LinkedIn shifts activity metadata attributes.
  • “Liked by connections” matching update

    • Extended liked-post keyword matching in src/features/feed.js to include:
      • text::liked this
    • Existing likes this / like this behavior remains intact.
  • URL/host checks hardened in runtime logic

    • Replaced loose hostname suffix checks with explicit allowlist checks (linkedin.com, www.linkedin.com) in feed/jobs feature gates.
    • Updated company/person link matching to host-agnostic substrings:
      • linkedin.com/company/
      • linkedin.com/in/
const isLinkedInHost = (hostname) =>
  hostname === 'linkedin.com' || hostname === 'www.linkedin.com'

if (!isLinkedInHost(window.location.hostname)) return
Original prompt

LinkOff received the following issue report:

Looks like something changed in LinkedIn in the past week or so, because I now see all of the "such-and-such likes this" posts, even though "Hide liked by connections" is enabled.

Firefox 147.0.1 (64-bit) for Linux.

Update: I see now that this extension no longer does anything at all. Enabling/disabling the extension has no affect on what is displayed on linkedin.com.

We are having trouble reproducing it. Try to see if you can figure out why this could be happening on LinkedIn?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: njelich <12912633+njelich@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with hiding liked posts on LinkedIn Restore feed filtering on linkedin.com host variants and updated feed markup Feb 17, 2026
Copilot AI requested a review from njelich February 17, 2026 20:26
@valdoryu
Copy link
Collaborator

👍

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.

3 participants

Comments