PushMyCode Firefox

Examine source code of PushMyCode

作者: PushMyCode Add-on
Inspect and view changes in PushMyCode source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "PushMyCode: Auto-Sync to GitHub",
  "version": "2.0.4",
  "description": "Automatically sync your coding solutions to GitHub from LeetCode, GeeksforGeeks, HackerRank, and CodeChef.",
  "permissions": [
    "storage",
    "alarms",
    "notifications"
  ],
  "host_permissions": [
    "https://leetcode.com/*",
    "https://practice.geeksforgeeks.org/*",
    "https://www.geeksforgeeks.org/*",
    "https://www.hackerrank.com/*",
    "https://www.codechef.com/*",
    "https://api.github.com/*",
    "https://pushmycode-proxy.participationcorner2025.workers.dev/*"
  ],
  "background": {
    "scripts": [
      "background.js"
    ],
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "https://leetcode.com/*",
        "https://practice.geeksforgeeks.org/*",
        "https://www.geeksforgeeks.org/*",
        "https://www.hackerrank.com/*",
        "https://www.codechef.com/*"
      ],
      "js": [
        "parsers/base_parser.js",
        "parsers/leetcode_parser.js",
        "parsers/gfg_parser.js",
        "parsers/hackerrank_parser.js",
        "parsers/codechef_parser.js",
        "content_script.js"
      ],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "https://pushmycode-proxy.participationcorner2025.workers.dev/*"
      ],
      "js": [
        "callback_script.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "action": {
    "default_popup": "popup/popup.html",
    "default_icon": {
      "16": "icons/16.png",
      "48": "icons/48.png",
      "128": "icons/128.png"
    }
  },
  "icons": {
    "16": "icons/16.png",
    "48": "icons/48.png",
    "128": "icons/128.png"
  },
  "options_page": "options/options.html",
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'none'; connect-src https://api.github.com https://leetcode.com https://practice.geeksforgeeks.org https://www.geeksforgeeks.org https://www.hackerrank.com https://www.codechef.com https://pushmycode-proxy.participationcorner2025.workers.dev"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "parsers/inject_universal.js"
      ],
      "matches": [
        "https://leetcode.com/*",
        "https://practice.geeksforgeeks.org/*",
        "https://www.geeksforgeeks.org/*",
        "https://www.hackerrank.com/*",
        "https://www.codechef.com/*"
      ]
    }
  ],
  "browser_specific_settings": {
    "gecko": {
      "strict_min_version": "126.0",
      "id": "pushmycode@pushmycode.com",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    }
  }
}

最佳 PushMyCode 替代方案

这里是一些与PushMyCode类似的Firefox add-on: