Niconico-PepperMint+

Niconico-PepperMint+

ニコニコ動画をもっとクールにする拡張機能

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 3,
  "name": "Niconico-PepperMint+",
  "short_name": "PepperMint+",
  "description": "ニコニコ動画をもっとクールにする拡張機能",
  "version": "2.0.1",
  "version_name": "2.0.1",
  "author": "CYakigasi",
  "homepage_url": "https://github.com/castella-cake/niconico-peppermint-extension",
  "icons": {
    "64": "icons/peppermint-logo-64.png"
  },
  "background": {
    "service_worker": "js/background.js"
  },
  "content_scripts": [
    {
      "matches": [
        "*://live.nicovideo.jp/*",
        "*://blog.nicovideo.jp/*",
        "*://anime.nicovideo.jp/*",
        "*://inform.nicovideo.jp/*",
        "*://koken.nicovideo.jp/*"
      ],
      "css": [
        "style/dm_external.css"
      ],
      "run_at": "document_start",
      "all_frames": true
    },
    {
      "matches": [
        "*://*.nicovideo.jp/*"
      ],
      "js": [
        "lib/jquery.min.js",
        "lib/jquery-ui.min.js",
        "js/global_function.js",
        "js/index.bundle.js"
      ],
      "css": [
        "style/index.css"
      ],
      "run_at": "document_start",
      "all_frames": true
    },
    {
      "matches": [
        "*://*.nicovideo.jp/*"
      ],
      "js": [
        "js/index_end.bundle.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://dic.nicovideo.jp/*"
      ],
      "js": [
        "js/nicopedia.js"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "*://dic.nicovideo.jp/*"
      ],
      "js": [
        "js/nicopedia_end.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.nicovideo.jp/video_top*"
      ],
      "js": [
        "js/video_top.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.nicovideo.jp/ranking*"
      ],
      "js": [
        "js/ranking.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.nicovideo.jp/search/*",
        "*://www.nicovideo.jp/tag/*",
        "*://www.nicovideo.jp/mylist_search/*"
      ],
      "js": [
        "js/searchpage.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.nicovideo.jp/watch/*"
      ],
      "js": [
        "js/watch.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.nicovideo.jp/watch/*"
      ],
      "js": [
        "js/watch_first.js"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "*://www.nicovideo.jp/watch/*"
      ],
      "js": [
        "js/watch_idle.js"
      ],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "*://*.nicovideo.jp/series/*"
      ],
      "js": [
        "js/series.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "web_accessible_resources": [
    {
      "resources": [
        "style/*"
      ],
      "matches": [
        "*://*.nicovideo.jp/*"
      ]
    }
  ],
  "action": {
    "browser_style": true,
    "default_popup": "pages/quickpanel_new.html",
    "default_icon": {
      "32": "icons/peppermint-logo-32.png",
      "64": "icons/peppermint-logo-64.png",
      "128": "icons/peppermint-logo-128.png"
    },
    "default_title": "Niconico-PepperMint"
  },
  "options_ui": {
    "page": "pages/settings.html",
    "browser_style": true
  },
  "permissions": [
    "storage",
    "contextMenus",
    "alarms",
    "tabs",
    "scripting"
  ],
  "host_permissions": [
    "https://www.nicovideo.jp/user/*",
    "*://ext.nicovideo.jp/api/getthumbinfo/*",
    "https://nvapi.nicovideo.jp/v1/series/*",
    "https://fonts.googleapis.com/icon",
    "https://api.repoline.nicovideo.jp/v1/timelines/nicorepo/*",
    "https://secure-dcdn.cdn.nimg.jp/nicoaccount/usericon/*",
    "https://nicovideo.cdn.nimg.jp/thumbnails/*"
  ]
}