Remove enable new player script, update README

This commit is contained in:
the1812 2018-09-08 20:43:12 +08:00
parent 6036aa8196
commit cb500d373b
3 changed files with 0 additions and 14 deletions

View File

@ -148,11 +148,6 @@
### 显示消息
允许在网页左下角显示来自本脚本的消息,如更新提醒,错误提示等.
# 关于新版播放器
目前新版播放器不是默认开启的,可在旧版播放页面右侧找到入口.
如果没有找到入口,也可以手动在浏览器开发者工具(快捷键通常为`F12`)中的控制台运行[脚本](video/enable-new-player.js)开启.
# 兼容性
## ![Chrome:兼容](https://img.shields.io/badge/Chrome-兼容-brightgreen.svg?style=flat-square&colorB=009688)
- 触摸调整框的背景模糊效果(`backdrop-filter`)需要手动在`chrome://flags/#enable-experimental-web-platform-features`中开启.

View File

@ -1,8 +0,0 @@
// 运行后可使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);

View File

@ -1 +0,0 @@
function setCookie(e,t,o){const i=new Date;i.setTime(i.getTime()+o*24*60*60*1e3);document.cookie=`${e}=${t};expires=${i.toUTCString()};path=/`}setCookie("stardustplayer","1",9e4);