mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add server script
This commit is contained in:
parent
373f7b79f5
commit
8b5fd92f73
@ -2,11 +2,10 @@ const Koa = require('koa');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
const dirPath = path.resolve(__dirname);
|
|
||||||
|
|
||||||
app.use((ctx) => {
|
app.use((ctx) => {
|
||||||
ctx.body = fs.readFileSync(
|
ctx.body = fs.readFileSync(
|
||||||
path.join(dirPath, '..', '/bilibili-evolved.dev.js'),
|
path.resolve(__dirname, '../bilibili-evolved.dev.js'),
|
||||||
'utf-8'
|
'utf-8'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -161,13 +161,13 @@
|
|||||||
position: -webkit-sticky !important;
|
position: -webkit-sticky !important;
|
||||||
position: sticky !important;
|
position: sticky !important;
|
||||||
bottom: 0 !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;
|
pointer-events: none;
|
||||||
width: calc(100% + 12px) !important;
|
width: calc(100% + 12px) !important;
|
||||||
margin: 0 0 0 -12px !important;
|
margin: 0 0 0 -12px !important;
|
||||||
padding-left: 97px !important;
|
padding-left: 97px !important;
|
||||||
body.dark & {
|
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 {
|
.comment-emoji-lite {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|||||||
@ -85,7 +85,6 @@ let createObserver = (mode?: string) =>
|
|||||||
e.isIntersecting ? intersectingCall() : disIntersectingCall();
|
e.isIntersecting ? intersectingCall() : disIntersectingCall();
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
root: document,
|
|
||||||
threshold: getToTop(mode ? mode : settings.scrollOutPlayerTriggerPlace),
|
threshold: getToTop(mode ? mode : settings.scrollOutPlayerTriggerPlace),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user