Protect Eye

Protect Eye

Protect your eyes and reduce eye fatigue by modifying the background color and adjusting the screen brightness.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "Protect Eye",
  "short_name": "Protect Eye",
  "version": "2.0.0.0",
  "manifest_version": 2,
  "offline_enabled": true,
  "description": "Protect your eyes and reduce eye fatigue by modifying the background color and adjusting the screen brightness.",
  "default_locale": "en",
  "browser_action": {
    "default_icon": {
      "19": "img/grey19.png",
      "38": "img/icon38.png"
    },
    "default_popup": "popup.html"
  },
  "background": {
    "persistent": true,
    "scripts": [
      "scripts/background.js"
    ]
  },
  "icons": {
    "16": "img/icon16.png",
    "48": "img/icon48.png",
    "128": "img/icon128.png"
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "exclude_matches": [
        "*://*.redditmedia.com/*",
        "*://www.youtube.com/ad_companion/*",
        "*://staticxx.facebook.com/*",
        "*://platform.twitter.com/widgets/*",
        "*://*.googlesyndication.com/*",
        "*://*.doubleclick.net/*",
        "*://js.stripe.com/v2/m/outer.html*",
        "*://*.amazon-adsystem.com/*",
        "*://*.lijit.com/beacon*",
        "*://*.doubleverify.com/*",
        "*://pixel.sitescout.com/*",
        "*://*.2mdn.net/*",
        "*://acdn.adnxs.com/dmp/async_usersync.html"
      ],
      "js": [
        "scripts/content.js"
      ],
      "run_at": "document_start",
      "all_frames": true
    }
  ],
  "permissions": [
    "tabs",
    "storage",
    "file:///*",
    "<all_urls>"
  ],
  "incognito": "spanning",
  "minimum_chrome_version": "57",
  "commands": {
    "0-toggle": {
      "suggested_key": {
        "default": "Alt+Shift+S"
      },
      "description": "Toggle Protect Eye on/off"
    },
    "1-increase-color-temperature": {
      "suggested_key": {
        "default": "Alt+Shift+Up"
      },
      "description": "Increase current color temperature"
    },
    "2-decrease-color-temperature": {
      "suggested_key": {
        "default": "Alt+Shift+Down"
      },
      "description": "Decrease current color temperature"
    },
    "3-increase-darkness": {
      "description": "Increase darkness"
    },
    "4-decrease-darkness": {
      "description": "Decrease darkness"
    },
    "5-change-color": {
      "description": "Iterate through colors"
    }
  }
}