Skip to content

Commit

Permalink
dアニメストアのURL変更に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
k-khr committed Apr 29, 2022
1 parent 2f24357 commit af6caac
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 54 deletions.
6 changes: 3 additions & 3 deletions dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "dアニメストア ツイートボタン",
"description": "PC版dアニメストアに、モバイル版dアニメストアと同機能のツイートボタンを追加します。",
"version": "0.0.3",
"version": "0.0.4",
"options_ui": {
"page": "options.html",
"open_in_tab": false
Expand All @@ -12,7 +12,7 @@
"declarativeContent"
],
"host_permissions":[
"https://anime.dmkt-sp.jp/animestore/ci_pc*"
"https://animestore.docomo.ne.jp/animestore/ci_pc*"
],
"action": {
"default_title": "dアニメの話数をツイート"
Expand All @@ -22,6 +22,6 @@
},
"content_scripts": [{
"js": ["contentScript.js"],
"matches": ["https://anime.dmkt-sp.jp/animestore/ci_pc*"]
"matches": ["https://animestore.docomo.ne.jp/animestore/ci_pc*"]
}]
}
129 changes: 79 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ chrome.declarativeContent.onPageChanged.removeRules(undefined, async ()=>{
new chrome.declarativeContent.PageStateMatcher({
pageUrl: {
schemes: ['https'],
hostEquals: 'anime.dmkt-sp.jp',
hostEquals: 'animestore.docomo.ne.jp',
pathPrefix: '/animestore/ci_pc',
queryContains: 'partId',
},
Expand Down

0 comments on commit af6caac

Please sign in to comment.