Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • A adblockpluscore
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 90
    • Issues 90
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • eyeoeyeo
  • adblockplus
  • abc
  • adblockpluscore
  • Issues
  • #98
Closed
Open
Issue created Oct 24, 2019 by Ollie@shoniko

Tackle Facebook with a machine learning snippet

Background

Facebook is a complicated case because there are multiple ways they display sponsored posts. Different users have slightly different variants of Facebook, and it is very hard to come up with a scalable filter to block them all. In situations where there is a need of complicated rules machine learning approaches tend to deliver good results. We would like to try a ML-based snippet for hiding ads on Facebook.

In #25 (closed) we are adding a way to run machine learning models inside an extension using tensorflow.js. We should leverage that to implement Facebook specific snippet.

What to change

Implement a ML-based snippet to hide sponsored posts on Facebook. The idea is to use a CSS selector to narrow down on a list of potential candidates to be hidden and then apply a trained machine learning model to distinguish which of the candidates should be hidden.

See also #25 (closed) for more implementation details. The tracking ticket for producing the best possible model for this task is here [internal].

In a spirit of data ethics and transparency we should release a snippet together with a dataset it has been trained on.

Hint for testers

It is useful to use a debug version of a filter, to see how it performs in the Developer Console. A snippet with a debug flag enabled can be added, by adding this filter: facebook.com#$#debug; ml-hide-if-graph-matches [id^=hyperfeed_story_id] DIV

Edited Dec 06, 2019 by Ollie
Assignee
Assign to
Time tracking