-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98f136b
commit 457b02d
Showing
12 changed files
with
3,116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"name":"cssLoader", | ||
"file":"cssLoader.js", | ||
"devMode":true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var cssLoaderLiveReload={} | ||
fetch("https://music.163.com/betterncm_api/read_file?stylesheets/all.json") | ||
.then(function(resp){return resp.json()}) | ||
.then(function(resp){ | ||
for(var x=0;x<resp.length;x++){ | ||
var style=resp[x]; | ||
var link=document.createElement("link"); | ||
link.rel="stylesheet"; | ||
link.href="https://music.163.com/betterncm_api/read_file?stylesheets/"+style.file; | ||
document.head.appendChild(link); | ||
if(style.devMode){ | ||
|
||
setInterval(function(){ | ||
fetch("https://music.163.com/betterncm_api/read_file?stylesheets/"+style.file) | ||
.then(function(resp){return resp.text()}) | ||
.then(function(resp){ | ||
if(!cssLoaderLiveReload[style.file]) | ||
cssLoaderLiveReload[style.file]=resp | ||
|
||
if(resp!=cssLoaderLiveReload[style.file])document.location.reload() | ||
}) | ||
},1000); | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"file":"block.css", | ||
"devMode":true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
div{ | ||
border-radius: 0px !important; | ||
/* box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.404); */ | ||
} |
Oops, something went wrong.