Add server script

This commit is contained in:
FoundTheWOUT 2021-05-13 18:12:51 +08:00
parent 373f7b79f5
commit 8b5fd92f73
3 changed files with 3 additions and 5 deletions

View File

@ -2,11 +2,10 @@ const Koa = require('koa');
const path = require('path');
const fs = require('fs');
const app = new Koa();
const dirPath = path.resolve(__dirname);
app.use((ctx) => {
ctx.body = fs.readFileSync(
path.join(dirPath, '..', '/bilibili-evolved.dev.js'),
path.resolve(__dirname, '../bilibili-evolved.dev.js'),
'utf-8'
);
});

View File

@ -161,13 +161,13 @@
position: -webkit-sticky !important;
position: sticky !important;
bottom: 0 !important;
background: linear-gradient(to top, #fff, transparent) !important;
background: linear-gradient(to top, #fff, rgba(255,255,255,0)) !important;
pointer-events: none;
width: calc(100% + 12px) !important;
margin: 0 0 0 -12px !important;
padding-left: 97px !important;
body.dark & {
background: linear-gradient(to top, #222, transparent) !important;
background: linear-gradient(to top, #222, rgba(255,255,255,0)) !important;
}
.comment-emoji-lite {
background-color: #fff;

View File

@ -85,7 +85,6 @@ let createObserver = (mode?: string) =>
e.isIntersecting ? intersectingCall() : disIntersectingCall();
},
{
root: document,
threshold: getToTop(mode ? mode : settings.scrollOutPlayerTriggerPlace),
}
);