This commit is contained in:
ashley 2024-10-24 19:23:14 +00:00
parent 38a7d7c3af
commit 4adf09b4c9

View file

@ -10,6 +10,7 @@ document.addEventListener("DOMContentLoaded", () => {
preload: 'auto', preload: 'auto',
}); });
// todo : remove this code lol // todo : remove this code lol
const qua = new URLSearchParams(window.location.search).get("quality") || ""; const qua = new URLSearchParams(window.location.search).get("quality") || "";
localStorage.setItem(`progress-${new URLSearchParams(window.location.search).get('v')}`, 0); localStorage.setItem(`progress-${new URLSearchParams(window.location.search).get('v')}`, 0);
@ -367,8 +368,32 @@ const YoutubeAPI = {
} }
}; };
// player base // player base
const base_player = "https://www.youtube.com/s/player/a87a9450/player_ias.vflset/en_US/base.js" const base_player = "https://www.youtube.com/s/player/a87a9450/player_ias.vflset/en_US/base.js"
const style = document.createElement('style');
style.innerHTML = `
.vjs-play-progress {
background-image: linear-gradient(to right,
#ff0045,
#ff0e55,
#ff1d79
);
}
.vjs-control-bar {
border-radius: 16px;
background-color: #0007 !important;
}
.vjs-remaining-time,
.vjs-fullscreen-control {
background-color: transparent !important;
}
`;
document.head.appendChild(style);
window.pokePlayer = { window.pokePlayer = {
ver:`20-a87a9450-vjs-${videojs.VERSION}`, ver:`20-a87a9450-vjs-${videojs.VERSION}`,