{
  "name": "Declutter Page",
  "description": "Strips away ads, sidebars, and newsletter pop-ups so any page becomes calm and easy to read.",
  "tags": [
    "declutter",
    "remove ads",
    "reading",
    "block popups",
    "focus"
  ],
  "type": "triggered",
  "nodes": [
    {
      "id": "sticky-intro",
      "position": {
        "x": 20,
        "y": 20
      },
      "data": {
        "color": "#fff266",
        "content": "🧹 Clean up any page.\n\nWhen a page opens, this removes common clutter — ads, sidebars and newsletter popups — so the content stands on its own. Add or change the selectors below to match what you want gone."
      },
      "type": "stickyNote",
      "width": 360,
      "height": 170
    },
    {
      "id": "trigger-page-load",
      "position": {
        "x": 100,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:trigger:pageLoad"
        },
        "label": "When any page opens",
        "inputs": {
          "urlPatterns": [
            "<all_urls>"
          ]
        },
        "parameters": {
          "notes": "Runs on every page load."
        }
      },
      "type": "trigger"
    },
    {
      "id": "remove-clutter",
      "position": {
        "x": 420,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:deleteUIElementsNode"
        },
        "label": "Remove the clutter",
        "inputs": {
          "selectors": [
            ".ad",
            ".sidebar",
            ".newsletter-popup"
          ]
        },
        "parameters": {
          "notes": "Deletes the matching elements from the page. Edit the list to fit the sites you read."
        }
      },
      "type": "basic"
    }
  ],
  "edges": [
    {
      "id": "e-trigger-remove",
      "type": "flowEdge",
      "source": "trigger-page-load",
      "target": "remove-clutter"
    }
  ]
}