Update chrome extension matching

This commit is contained in:
Jonathan Cremin 2015-01-12 22:54:44 +00:00
parent a2f95a98b2
commit 43f3791ffe

View file

@ -5,27 +5,45 @@ chrome.runtime.onInstalled.addListener(function() {
chrome.declarativeContent.onPageChanged.addRules([
{
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({
pageUrl: { hostEquals: 'play.google.com', pathPrefix: "/music" },
}),
new chrome.declarativeContent.PageStateMatcher({
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({
pageUrl: { hostSuffix: 'rdio.com' },
}),
new chrome.declarativeContent.PageStateMatcher({
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() ]