-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
33 lines (31 loc) · 1.23 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var mapping = {
'https?://9anime.to/watch/': '9anime.js',
'https?://www.animakai.info/anime/': 'animakai.js',
'https?://animehaven.to/': 'animehaven.js',
'https?://twist.moe/a/': 'animetwist.js',
'https?://www.crunchyroll.com/': 'crunchyroll.js',
'https?://www.daisuki.net/': 'daisuki.js',
'https?://www.funimation.com/shows/': 'funimation.js',
'https?://ww1.gogoanime.io/': 'gogoanime.js',
'https?://play.google.com/music/': 'googleplaymusic.js',
'https?://www.hulu.com/watch/': 'hulu.js',
'https?://kissanime.ru/Anime/': 'kissanime.js',
'https?://www.masterani.me/anime/watch': 'masterani.js',
'https?://moetube.net/watch/': 'moetube.js',
'https?://www.netflix.com/title/': 'netflix.js',
'https?://play.pocketcasts.com/': 'pocketcasts.js',
'https?://soundcloud.com/': 'soundcloud.js',
'https?://www.superanimes.com/': 'superanimes.js',
'https?://www.viewster.com/serie/': 'viewster.js',
'https?://www.viz.com/watch/streaming': 'viz.js',
'https?://www.vrv.co/watch': 'vrv.js',
'https?://www.youtube.com/watch': 'youtube.js'
}
var findStrategy = function(url) {
for (var strategy in mapping) {
if (url.match(strategy)) {
return mapping[strategy]
}
}
}
module.exports = { mapping, findStrategy }