mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
9 lines
344 B
JavaScript
9 lines
344 B
JavaScript
// 运行后可使b站采用新版播放器(对番剧/稍后再看页面无效)
|
|
function setCookie(key, value, expireDays)
|
|
{
|
|
const date = new Date();
|
|
date.setTime(date.getTime() + expireDays * 24 * 60 * 60 * 1000);
|
|
document.cookie = `${key}=${value};expires=${date.toUTCString()};path=/`;
|
|
}
|
|
setCookie("stardustplayer", "1", 90000);
|