Junk Food Blocker

Junk Food Blocker

An ad blocker extension that blocks ads and replaces them with GIFs of vegetables.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "Junk Food Blocker",
  "version": "1.0.4",
  "description": "An ad blocker extension that blocks ads and replaces them with GIFs of vegetables.",
  "permissions": [
    "webRequest",
    "<all_urls>"
  ],
  "background": {
    "scripts": [
      "src/background.js",
      "src/blocked_domains.js"
    ],
    "persistent": true
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "run_at": "document_start",
      "js": [
        "src/main.js"
      ]
    },
    {
      "matches": [
        "<all_urls>"
      ],
      "run_at": "document_idle",
      "js": [
        "src/sub.js",
        "src/lib/gsap.js",
        "src/AdReplacer.js"
      ],
      "match_about_blank": true,
      "all_frames": true
    }
  ],
  "web_accessible_resources": [
    "assets/*.gif"
  ],
  "page_action": {
    "default_icon": {
      "16": "icons/icon_16.png",
      "32": "icons/icon_32.png",
      "48": "icons/icon_48.png",
      "128": "icons/icon_128.png"
    }
  },
  "icons": {
    "16": "icons/icon_16.png",
    "32": "icons/icon_32.png",
    "48": "icons/icon_48.png",
    "128": "icons/icon_128.png"
  },
  "manifest_version": 2
}