Skip to content

Reddit support: content script for posts and comments #18

@Olawoyin007

Description

@Olawoyin007

What

Create a Reddit content script that intercepts post titles and comments for classification.

From ROADMAP.md - Phase 4.

Scope

  • Create `extension/platforms/reddit.js`
  • Handle both old.reddit.com and new Reddit DOM structures
  • Intercept post titles in feeds
  • Intercept comment content
  • Send to background worker for classification
  • Apply visual treatments to Reddit elements

Considerations

  • Reddit's DOM changes frequently - selectors need to be resilient
  • old.reddit.com and new Reddit have completely different markup
  • Subreddit context could be passed to the classifier for better accuracy

Prerequisites

Ideally the platform adapter pattern (#10) lands first, but this can be built standalone and refactored later.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions