Skip to content

Commit

Permalink
add wild url pattern for xiami s**.xiami.com
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 authored Oct 26, 2020
1 parent a25ab9a commit a30295a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ function hack_referer_header(details) {
referer_value = 'https://gist.githubusercontent.com/';
}

if (details.url.indexOf('api.xiami.com/') !== -1 || details.url.indexOf('.xiami.com/song/playlist/id/') !== -1
|| details.url.indexOf('www.xiami.com/api/') !== -1
) {
if (details.url.indexOf(".xiami.com/") !== -1) {
add_origin = false;
referer_value = 'https://www.xiami.com';
referer_value = "https://www.xiami.com";
}

if (details.url.indexOf('www.xiami.com/api/search/searchSongs') !== -1) {
Expand Down

0 comments on commit a30295a

Please sign in to comment.