FRAK - Earn Money Watching YouTube

FRAK - Earn Money Watching YouTube

Discover FRAK, the Defi protocol for earning money by watching YouTube videos!

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "FRAK - Earn Money Watching YouTube",
  "description": "Discover FRAK, the Defi protocol for earning money by watching YouTube videos!",
  "version": "1.0.35",
  "manifest_version": 3,
  "icons": {
    "16": "inactive_logged_16.png",
    "48": "inactive_logged_48.png",
    "128": "inactive_logged_128.png"
  },
  "action": {
    "default_popup": "index.html"
  },
  "background": {
    "minimum_chrome_version": "93",
    "service_worker": "background.js",
    "type": "module"
  },
  "commands": {
    "_execute_action": {
      "suggested_key": {
        "default": "Alt+Shift+F",
        "mac": "Alt+Shift+F"
      },
      "description": "Open extension"
    }
  },
  "web_accessible_resources": [
    {
      "resources": [
        "fonts/*.*",
        "*.woff2",
        "index.html"
      ],
      "matches": [
        "<all_urls>"
      ]
    },
    {
      "matches": [
        "*://*.youtube.com/*",
        "*://*.m.youtube.com/*",
        "*://youtube.com/*",
        "*://m.youtube.com/*"
      ],
      "resources": [
        "content.js"
      ]
    }
  ],
  "content_scripts": [
    {
      "matches": [
        "*://*.youtube.com/*",
        "*://*.m.youtube.com/*",
        "*://youtube.com/*",
        "*://m.youtube.com/*"
      ],
      "js": [
        "./video.js"
      ],
      "run_at": "document_end",
      "all_frames": true
    },
    {
      "matches": [
        "*://*.youtube.com/*",
        "*://*.m.youtube.com/*",
        "*://youtube.com/*",
        "*://m.youtube.com/*"
      ],
      "js": [
        "./content.js"
      ],
      "css": [
        "./content.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://dashboard-dev.frak.id/*",
        "*://dashboard.frak.id/*",
        "*://localhost/*"
      ],
      "js": [
        "./dashboard.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "permissions": [
    "notifications",
    "storage",
    "webRequest",
    "alarms"
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'; script-src-elem 'self' 'unsafe-inline';"
  },
  "host_permissions": [
    "https://api.frak.id/*",
    "https://api-dev.frak.id/*",
    "*://*.youtube.com/*",
    "*://localhost/*",
    "https://www.google-analytics.com/*"
  ]
}