xStyle

xStyle

Restyle the web with xStyle, a user styles manager. With xStyle you can install themes & skins for many sites and create your own.

Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "__MSG_extName__",
  "short_name": "__MSG_extName__",
  "version": "3.1.2",
  "description": "__MSG_description__",
  "homepage_url": "http://team.firefoxcn.net",
  "manifest_version": 2,
  "icons": {
    "128": "images/128.png"
  },
  "permissions": [
    "tabs",
    "webNavigation",
    "webRequest",
    "webRequestBlocking",
    "contextMenus",
    "storage",
    "downloads",
    "*://*/*",
    "clipboardWrite",
    "unlimitedStorage"
  ],
  "background": {
    "scripts": [
      "scripts/browser-polyfill.js",
      "scripts/common.js",
      "scripts/messaging.js",
      "scripts/userstyle.js",
      "scripts/storage.js",
      "scripts/GhostText.js",
      "scripts/background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "run_at": "document_start",
      "all_frames": true,
      "js": [
        "scripts/browser-polyfill.js",
        "scripts/inject/apply.js"
      ]
    },
    {
      "matches": [
        "http://userstyles.org/*",
        "https://userstyles.org/*"
      ],
      "run_at": "document_end",
      "all_frames": false,
      "js": [
        "scripts/browser-polyfill.js",
        "scripts/common.js",
        "scripts/userstyle.js",
        "third-party/less/less.min.js",
        "third-party/clean-css/clean-css.min.js",
        "scripts/inject/install.js",
        "scripts/inject/userstyles.org.js"
      ]
    },
    {
      "matches": [
        "http://freestyler.ws/*",
        "https://freestyler.ws/*"
      ],
      "run_at": "document_end",
      "all_frames": false,
      "js": [
        "scripts/browser-polyfill.js",
        "scripts/common.js",
        "scripts/userstyle.js",
        "third-party/less/less.min.js",
        "third-party/clean-css/clean-css.min.js",
        "scripts/inject/install.js",
        "scripts/inject/freestyler.ws.js"
      ]
    },
    {
      "matches": [
        "http://*.firefoxcn.net/*",
        "https://*.firefoxcn.net/*",
        "https://*.github.io/*",
        "https://*.gitee.io/*"
      ],
      "run_at": "document_end",
      "all_frames": false,
      "js": [
        "scripts/browser-polyfill.js",
        "scripts/common.js",
        "third-party/less/less.min.js",
        "third-party/clean-css/clean-css.min.js",
        "scripts/userstyle.js",
        "scripts/inject/install.js"
      ]
    },
    {
      "matches": [
        "https://login.microsoftonline.com/*",
        "https://ext.firefoxcn.net/*"
      ],
      "run_at": "document_start",
      "all_frames": false,
      "js": [
        "scripts/browser-polyfill.js",
        "scripts/inject/cloud.js"
      ]
    }
  ],
  "browser_action": {
    "default_icon": {
      "128": "images/128.png"
    },
    "default_title": "__MSG_extName__",
    "default_popup": "popup.html"
  },
  "commands": {
    "openManage": {
      "description": "__MSG_openManage__"
    },
    "styleDisableAll": {
      "description": "__MSG_disableAllStyles__"
    }
  },
  "options_ui": {
    "page": "manage.html",
    "open_in_tab": true
  },
  "default_locale": "en"
}