Update chrome extension matching
This commit is contained in:
parent
a2f95a98b2
commit
43f3791ffe
1 changed files with 27 additions and 9 deletions
|
@ -5,27 +5,45 @@ chrome.runtime.onInstalled.addListener(function() {
|
||||||
chrome.declarativeContent.onPageChanged.addRules([
|
chrome.declarativeContent.onPageChanged.addRules([
|
||||||
{
|
{
|
||||||
conditions: [
|
conditions: [
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'beatsmusic.com', pathPrefix: "/album" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'beatsmusic.com', pathPrefix: "/track" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'deezer.com', pathPrefix: "/album" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'deezer.com', pathPrefix: "/track" },
|
||||||
|
}),
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
pageUrl: { hostEquals: 'play.google.com', pathPrefix: "/music" },
|
pageUrl: { hostEquals: 'play.google.com', pathPrefix: "/music" },
|
||||||
}),
|
}),
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
pageUrl: { hostEquals: 'itunes.apple.com', pathPrefix: "/music" },
|
pageUrl: { hostEquals: 'itunes.apple.com', pathPrefix: "/music" },
|
||||||
}),
|
}),
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
|
||||||
pageUrl: { hostSuffix: 'spotify.com' },
|
|
||||||
}),
|
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
|
||||||
pageUrl: { hostSuffix: 'beatsmusic.com' },
|
|
||||||
}),
|
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
|
||||||
pageUrl: { hostSuffix: 'deezer.com' },
|
|
||||||
}),
|
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
pageUrl: { hostSuffix: 'rdio.com' },
|
pageUrl: { hostSuffix: 'rdio.com' },
|
||||||
}),
|
}),
|
||||||
new chrome.declarativeContent.PageStateMatcher({
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
pageUrl: { hostSuffix: 'rd.io' },
|
pageUrl: { hostSuffix: 'rd.io' },
|
||||||
}),
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'spotify.com', pathPrefix: "/album" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'spotify.com', pathPrefix: "/track" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'music.xbox.com', pathPrefix: "/track" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'music.xbox.com', pathPrefix: "/album" },
|
||||||
|
}),
|
||||||
|
new chrome.declarativeContent.PageStateMatcher({
|
||||||
|
pageUrl: { hostSuffix: 'youtube.com' },
|
||||||
|
}, [])
|
||||||
],
|
],
|
||||||
|
|
||||||
actions: [ new chrome.declarativeContent.ShowPageAction() ]
|
actions: [ new chrome.declarativeContent.ShowPageAction() ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue