Privacy Guard Firefox

Examine source code of Privacy Guard

Inspect and view changes in Privacy Guard source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "Privacy Guard",
  "version": "1.54.0",
  "description": "Block ads & trackers, warn on risky pages, check download links against known malware lists, block phishing & malware sites, blur private chats on WhatsApp & Telegram, shoulder-surf blur on any page — with local learning and per-site controls.",
  "browser_specific_settings": {
    "gecko": {
      "id": "privacy-guard@sesb.local",
      "strict_min_version": "140.0",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    },
    "gecko_android": {
      "strict_min_version": "142.0"
    }
  },
  "permissions": [
    "activeTab",
    "scripting",
    "storage",
    "unlimitedStorage",
    "alarms",
    "tabs",
    "webNavigation",
    "webRequest",
    "declarativeNetRequest",
    "declarativeNetRequestWithHostAccess",
    "downloads",
    "notifications"
  ],
  "commands": {
    "toggle-shoulder-surf": {
      "suggested_key": {
        "default": "Alt+Shift+S",
        "mac": "Alt+Shift+S"
      },
      "description": "Toggle shoulder-surf blur on the current page"
    }
  },
  "host_permissions": [
    "<all_urls>"
  ],
  "declarative_net_request": {
    "rule_resources": [
      {
        "id": "network_ads",
        "enabled": true,
        "path": "rules/network_ads.json"
      },
      {
        "id": "network_trackers",
        "enabled": false,
        "path": "rules/network_trackers.json"
      }
    ]
  },
  "action": {
    "default_popup": "popup/popup.html",
    "default_title": "Privacy Guard",
    "default_icon": {
      "16": "icons/icon16.png",
      "48": "icons/icon48.png",
      "128": "icons/icon128.png"
    }
  },
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "background": {
    "service_worker": "background.js",
    "scripts": [
      "background-trackers.js",
      "background-phishing.js",
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "*://*.youtube.com/*",
        "*://*.youtube-nocookie.com/*",
        "*://youtu.be/*",
        "*://*.youtu.be/*",
        "*://web.whatsapp.com/*",
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*",
        "*://challenges.cloudflare.com/*",
        "*://*.challenges.cloudflare.com/*",
        "*://*.hcaptcha.com/*",
        "*://*.newassets.hcaptcha.com/*",
        "*://*.recaptcha.net/*",
        "*://www.google.com/recaptcha/*",
        "*://www.gstatic.com/recaptcha/*",
        "*://*.arkoselabs.com/*",
        "*://*.funcaptcha.com/*",
        "*://*.captcha-delivery.com/*",
        "*://*.datadome.co/*"
      ],
      "js": [
        "content/guard-flags.js"
      ],
      "run_at": "document_start",
      "all_frames": true,
      "match_about_blank": true
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "*://*.youtube.com/*",
        "*://*.youtube-nocookie.com/*",
        "*://youtu.be/*",
        "*://*.youtu.be/*",
        "*://web.whatsapp.com/*",
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*",
        "*://challenges.cloudflare.com/*",
        "*://*.challenges.cloudflare.com/*",
        "*://*.hcaptcha.com/*",
        "*://*.newassets.hcaptcha.com/*",
        "*://*.recaptcha.net/*",
        "*://www.google.com/recaptcha/*",
        "*://www.gstatic.com/recaptcha/*",
        "*://*.arkoselabs.com/*",
        "*://*.funcaptcha.com/*",
        "*://*.captcha-delivery.com/*",
        "*://*.datadome.co/*"
      ],
      "js": [
        "content/shadow-main.js",
        "content/stream-antibounce-main.js"
      ],
      "run_at": "document_start",
      "world": "MAIN"
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "*://*.youtube.com/*",
        "*://*.youtube-nocookie.com/*",
        "*://youtu.be/*",
        "*://*.youtu.be/*",
        "*://web.whatsapp.com/*",
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*",
        "*://challenges.cloudflare.com/*",
        "*://*.challenges.cloudflare.com/*",
        "*://*.hcaptcha.com/*",
        "*://*.newassets.hcaptcha.com/*",
        "*://*.recaptcha.net/*",
        "*://www.google.com/recaptcha/*",
        "*://www.gstatic.com/recaptcha/*",
        "*://*.arkoselabs.com/*",
        "*://*.funcaptcha.com/*",
        "*://*.captcha-delivery.com/*",
        "*://*.datadome.co/*"
      ],
      "js": [
        "content/stream-antibounce-main.js",
        "content/popguard-main.js"
      ],
      "run_at": "document_start",
      "world": "MAIN",
      "all_frames": true,
      "match_about_blank": true
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "*://*.youtube.com/*",
        "*://*.youtube-nocookie.com/*",
        "*://youtu.be/*",
        "*://*.youtu.be/*",
        "*://web.whatsapp.com/*",
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*"
      ],
      "js": [
        "content/popguard.js"
      ],
      "run_at": "document_start",
      "all_frames": true,
      "match_about_blank": true
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "*://web.whatsapp.com/*",
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*"
      ],
      "js": [
        "content/site-pause.js",
        "content/shadow.js",
        "content/learner.js",
        "content/aggressive.js",
        "content/embed-guard.js",
        "content/detector.js",
        "content/content.js"
      ],
      "css": [
        "content/highlight.css"
      ],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "*://*.youtube.com/*",
        "*://*.youtube-nocookie.com/*"
      ],
      "js": [
        "content/youtube-main.js"
      ],
      "run_at": "document_start",
      "world": "MAIN"
    },
    {
      "matches": [
        "*://*.youtube.com/*",
        "*://*.youtube-nocookie.com/*"
      ],
      "js": [
        "content/site-pause.js",
        "content/youtube.js"
      ],
      "css": [
        "content/highlight.css"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "*://web.whatsapp.com/*",
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*"
      ],
      "js": [
        "content/safety.js"
      ],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "*://web.whatsapp.com/*"
      ],
      "js": [
        "content/whatsapp-blur.js"
      ],
      "css": [
        "content/whatsapp-blur.css"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "*://web.telegram.org/*",
        "*://webk.telegram.org/*",
        "*://webz.telegram.org/*"
      ],
      "js": [
        "content/telegram-blur.js"
      ],
      "css": [
        "content/telegram-blur.css"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "content/shoulder-surf.js"
      ],
      "css": [
        "content/shoulder-surf.css"
      ],
      "run_at": "document_start"
    }
  ]
}

Best Privacy Guard Alternatives

Here are some Firefox add-ons that are similar to Privacy Guard: