mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix script bugs, update README
This commit is contained in:
parent
51a44eb4c1
commit
9947486b27
@ -1,4 +1,4 @@
|
|||||||
# Bilibili-Evolved
|
# Bilibili-Evolved
|
||||||
增强哔哩哔哩Web端体验的油猴脚本.
|
增强哔哩哔哩Web端体验的油猴脚本.
|
||||||
|
|
||||||
作为[原脚本](bilibili-touch.js)的工程化形式,工程化目前未完成,完成之前可直接以使用原脚本.
|
作为[原脚本](bilibili-touch.js)的工程化形式,工程化目前未完成,完成之前可以先使用原脚本.
|
||||||
|
|||||||
@ -89,11 +89,6 @@
|
|||||||
settings[key] = userSettings[key];
|
settings[key] = userSettings[key];
|
||||||
}
|
}
|
||||||
const $ = unsafeWindow.$ || self$;
|
const $ = unsafeWindow.$ || self$;
|
||||||
const getEventHandler = (element, event) =>
|
|
||||||
{
|
|
||||||
return element.data("events")[event][0].handler;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(() =>
|
$(document).ready(() =>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
const getEventHandler = (element, event) =>
|
||||||
|
{
|
||||||
|
return element.data("events")[event][0].handler;
|
||||||
|
};
|
||||||
const getPosition = element =>
|
const getPosition = element =>
|
||||||
{
|
{
|
||||||
let x = 0;
|
let x = 0;
|
||||||
@ -244,7 +248,7 @@ class SwipeAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const touchVideoPlayer = () =>
|
function touchVideoPlayer()
|
||||||
{
|
{
|
||||||
waitForQuery()(
|
waitForQuery()(
|
||||||
() => $(".bilibili-player-video-web-fullscreen"),
|
() => $(".bilibili-player-video-web-fullscreen"),
|
||||||
@ -483,4 +487,4 @@ const touchVideoPlayer = () =>
|
|||||||
const videoPlayerStyles = `<style id='bilibili-touch-video-player'>${style}</style>`;
|
const videoPlayerStyles = `<style id='bilibili-touch-video-player'>${style}</style>`;
|
||||||
$("body").after(videoPlayerStyles);
|
$("body").after(videoPlayerStyles);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|||||||
2
touch/touch-player.min.js
vendored
2
touch/touch-player.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user