@duckduckgo/content-scope-scripts
    Preparing search index...
    • Widget ID: "activity"
    • Add it to the widgets + widgetConfigs fields on initialSetup
    • Example:
    {
    "...": "...",
    "widgets": [
    {"...": "..."},
    {"id": "activity"}
    ],
    "widgetConfigs": [
    {"...": "..."},
    {"id": "activity", "visibility": "visible" }
    ]
    }
    {
    "activity": [
    {
    "favicon": "<any img url>",
    "url": "https://www.youtube.com",
    "title": "youtube.com",
    "etldPlusOne": "youtube.com",
    "favorite": true,
    "trackersFound": true,
    "trackingStatus": {
    "trackerCompanies": [{ "displayName": "Adobe Analytics" }],
    "totalCount": 0
    },
    "history": [
    {
    "title": "Electric Callboy - Hypa Hypa (OFFICIAL VIDEO) - YouTube",
    "url": "https://youtube.com/watch?v=abc",
    "relativeTime": "Just now"
    }
    ]
    }
    ]
    }

    Notes: - on macOS, history.title should be a path-like string to match current implementations - etldPlusOne will be used for fallback favicons/colors, so the logic should match the NTP

    {
    "urls": ["..."],
    "totalTrackersBlocked": 123
    }
    {
    "activity": [
    {"...": "..."}
    ]
    }

    Sends

    { "url": "..." }
    

    Response:

    { "action": "burn" }
    

    Response (do nothing)

    { "action": "none" }
    

    If { "action": "burn" } is returned, the burn animation will play, and will follow by sending the notification activity_burnAnimationComplete

    {
    "urls": ["..."],
    "totalTrackersBlocked": 123
    }
    {
    "urls": ["..."],
    "totalTrackersBlocked": 123,
    "patch": {
    "...": "..."
    }
    }

    example payload (with id):

    { 
    "url": "https://example.com/path",
    "target": "same-tab"
    }

    example payload without id (for example, on history items)

    {
    "url": "https://example.com/path",
    "target": "same-tab"
    }
    • Sent when the burn animation completes