Redirect Bandcamp /music to Tent artist page
This commit is contained in:
parent
787487764d
commit
2a3ae7d915
|
@ -415,7 +415,7 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
|
|||
if (url.hostname.endsWith('bandcamp.com')) {
|
||||
const regex = /^(.*)\.bandcamp\.com/.exec(url.hostname)
|
||||
const artist = regex[1]
|
||||
if (url.pathname == '/') {
|
||||
if (url.pathname == '/' || url.pathname == '/music') {
|
||||
return `${randomInstance}/artist.php?name=${artist}`
|
||||
} else {
|
||||
const regex = /^\/(.*)\/(.*)/.exec(url.pathname)
|
||||
|
|
Loading…
Reference in New Issue