Greasy Fork is available in English.
bilibili关灯及快捷操作(把被新版B站藏起来的关灯按钮揪出来,在关闭弹幕按钮左边,还可以用快捷键,默认'A')、非全屏滚轮音量控制、弹幕控制快捷操作等
< Commentaires sur bilibili关灯及快捷操作
第一个问题:我这下滚到评论区不会关灯,而且设计的也是不会关灯。发一下你的浏览器版本,按F12看看有没有报错
第二个问题:我也没遇见过,设置是保存在localStorage中的,如果被清空了相当于恢复默认,按F12看看有没有报错
控制台运行以下代码,可以看到设置,没有说明被清了
(function(){
if(!window.localStorage) {
console.log('浏览器不支持localStorage');
}
var size = 0;
for(item in window.localStorage) {
if(window.localStorage.hasOwnProperty(item)) {
if(item === 'hhh_checkboxes'){
console.log(item)
console.log(window.localStorage.getItem(item))
}
size += window.localStorage.getItem(item).length;
}
}
console.log('当前localStorage使用容量为' + (size / 1024).toFixed(2) + 'KB');
})()
第一个问题:我这下滚到评论区不会关灯,而且设计的也是不会关灯。发一下你的浏览器版本,按F12看看有没有报错
第二个问题:我也没遇见过,设置是保存在localStorage中的,如果被清空了相当于恢复默认,按F12看看有没有报错
控制台运行以下代码,可以看到设置,没有说明被清了
(function(){
if(!window.localStorage) {
console.log('浏览器不支持localStorage');
}
var size = 0;
for(item in window.localStorage) {
if(window.localStorage.hasOwnProperty(item)) {
if(item === 'hhh_checkboxes'){
console.log(item)
console.log(window.localStorage.getItem(item))
}
size += window.localStorage.getItem(item).length;
}
}
console.log('当前localStorage使用容量为' + (size / 1024).toFixed(2) + 'KB');
})()
谢谢,周末我试试,本周外出了
第一个问题:我这下滚到评论区不会关灯,而且设计的也是不会关灯。发一下你的浏览器版本,按F12看看有没有报错
第二个问题:我也没遇见过,设置是保存在localStorage中的,如果被清空了相当于恢复默认,按F12看看有没有报错
控制台运行以下代码,可以看到设置,没有说明被清了
(function(){
if(!window.localStorage) {
console.log('浏览器不支持localStorage');
}
var size = 0;
for(item in window.localStorage) {
if(window.localStorage.hasOwnProperty(item)) {
if(item === 'hhh_checkboxes'){
console.log(item)
console.log(window.localStorage.getItem(item))
}
size += window.localStorage.getItem(item).length;
}
}
console.log('当前localStorage使用容量为' + (size / 1024).toFixed(2) + 'KB');
})()
大佬,已尝试,反馈如下:
===============================
(function(){
if(!window.localStorage) {
console.log('浏览器不支持localStorage');
}
var size = 0;…
hhh_checkboxes debugger eval code:9:9
{"commonCheckbox":{"options":{"autoPlay":{"text":"自动播放","status":false,"tip":""},"autoLightOff":{"text":"自动关灯","status":true,"tip":""},"autoFullScreen":{"text":"自动全屏","status":false,"tip":""},"autoWebFullScreen":{"text":"自动网页全屏","status":false,"tip":""},"autoWideScreen":{"text":"自动宽屏","status":false,"tip":""},"videoRepeat":{"text":"自动洗脑循环","status":false,"tip":""},"lightOffWhenPlaying":{"text":"播放时自动关灯","status":true,"fn":"lightOffWhenPlaying"},"lightOnWhenPause":{"text":"暂停时自动开灯","status":true,"fn":"lightOnWhenPause"},"lightOnWhenLike":{"text":"关灯状态时滚动屏幕控制开关灯","status":true,"tip":"默认下滚超过0.3屏开灯,方便关灯时点赞、评论等","fn":"lightOnWhenLike","args":{"screen_top":0.3,"args_opt":{"tip":["占屏比(0.0~1.0)"]}}},"autoTopQualityVideo":{"text":"自动选择最高质量视频","status":true},"autoOpenDanmu":{"text":"自动打开弹幕","status":true,"tip":"","fn":"autoOpenDanmu"},"rememberVideoRepeat":{"text":"记忆洗脑循环","status":true,"tip":"记住最后选择,优先级低于【自动洗脑循环】","show":false},"dblclickFullScreen":{"text":"双击或中键、功能键全屏","status":true,"tip":"","fn":"dblclickFullScreen"},"volumeControlWhenNonFullScreen":{"text":"非全屏滚轮音量调节","status":false,"tip":"","fn___":"wheel_volumeHint","args":{"screen_left":0.3,"screen_rght":0.7,"args_opt":{"tip":["鼠标有效范围(全屏0.0~1.0)"]}}},"volumeControlWhenPause":{"text":"非全屏暂停时滚轮音量调节","status":false,"tip":""},"danmuOpacityControl":{"text":"弹幕透明度控制","status":true,"tip":"Ctrl + 滚轮","fn___":"wheel_opacity"},"keyVideoSpeed":{"text":"键盘调节视频速度","status":true,"tip":"Ctrl + ↑↓","show":false},"removeVideoTopMask":{"text":"去掉顶部mask","status":true,"tip":"","fn":"removeVideoTopMask"},"jumpElectric":{"text":"跳过充电鸣谢","status":true,"fn":"jumpElectric"}},"btn":"常用设置","type":"checkbox"},"otherCheckbox":{"options":{"openHotKey":{"text":"开启自定义快捷键","status":true,"tip":"","fn":"set_hotkey"},"reloadDanmuku":{"text":"快进快退恢复重载弹幕效果","status":false},"loopPlayback":{"text":"开启段落循环","status":false,"tip":"Ctrl+左键点击进度条设定段落循环 / 设定后L键切换","fn":"loopPlayback"},"hideThreePopup":{"text":"隐藏屏幕三连弹窗","status":true,"tip":"","fn":"hideThreePopup"},"hideScorePopup":{"text":"隐藏屏幕打分弹窗","status":true,"tip":"","fn":"hideScorePopup"},"expandList":{"text":"订阅合集列表自动展开","status":true,"tip":"","fn":"expand_list","args":{"columns":10,"args_opt":{"tip":["列表展开长度(行)"]}}},"collectionFilter":{"text":"收藏夹关键字过滤","status":true,"tip":"","fn":"collection_filter"},"saveRecommendList":{"text":"记忆首页推荐列表(暂无法设置)","status":true,"tip":"","fn":"run_save_recommend_list","disable":true},"onlinePreview":{"text":"当前在线视频预览(暂无法设置)","status":true,"tip":"","fn":"run_online_preview","disable":true},"openVideoInNewTab":{"text":"新窗口打开连播列表视频","status":false,"tip":"点击右侧自动连播列表视频在新窗口打开","fn":"run_rec_list_newtab"},"customPlayRate":{"text":"开启自定义倍速播放","status":true,"tip":"长按 → 键","fn":"customPlayRate","args":{"rate":2,"args_opt":{"tip":["播放倍速(倍),系统默认3倍"]}}},"dynamicSpace":{"text":"合理化空格键","status":true,"tip":"B站空格键不合理,恢复非视频焦点时的默认效果(翻页)"},"danmuAreaSwicth":{"text":"弹幕显示区域切换设置","status":true,"tip":"弹幕显示区域大切换到小时重新加载弹幕"},"favSetting":{"text":"加长收藏夹列表显示","status":true,"tip":"加长"},"memoryProgress":{"text":"记忆选集视频进度","status":true,"tip":"在选集列表里用颜色和进度条指示","fn":"memory_multipart_progress"},"autoJumpMemoryProgress":{"text":"选集视频自动跳转","status":false,"level":1},"autoSubtitle":{"text":"自动开启字幕","status":false,"tip":"如果当前视频有字幕,自动开启"},"autoListPlay":{"text":"选集/合集独立连播","status":true,"tip":"自动连播时选集/合集独立连播","fn":"auto_list_play"},"circlePlay":{"text":"循环播放","status":false,"level":1}},"btn":"其他设置","type":"checkbox"},"otherCheckbox2":{"options":{"hotKeyHint":{"text":"快捷键屏幕提示","status":false,"tip":"不显示有明显变化的提示,关灯、弹幕等"}},"btn":"其他设置Ⅱ","type":"checkbox"},"keyBinding":{"options":{"lightOff":{"text":"关灯/开灯","keystr":"A","keycount":1,"keycode":0,"nonuse":false},"onePerVolumeControl":{"text":"非全屏音量调节${step}%","keystr":"滚↑轮 滚↓轮 NumPad_Decimal NumPad0","keycount":4,"delimiter":"、","nonuse":false,"tempargs":[{"name":"step","value":1,"opt":{"step":1,"min":0,"max":"100","tip":["调节幅度%"]}}]},"fivePerVolumeControl":{"text":"非全屏音量调节${step}%","keystr":"↑ ↓","keycount":2,"nonuse":false,"tempargs":[{"name":"step","value":5,"opt":{"step":5,"min":0,"max":"100","tip":["调节幅度%"]}}]},"webFullscreen":{"text":"网页全屏","keystr":"W","keycount":1,"nonuse":false},"widescreen":{"text":"宽屏模式","keystr":"Q","keycount":1,"nonuse":false},"danmu":{"text":"开关弹幕","keystr":"D","keycount":1,"nonuse":false},"danmuTopBottom":{"text":"开关顶部/底部弹幕","keystr":"T B","keycount":2,"nonuse":false},"videoRepeat":{"text":"洗脑循环","keystr":"R","keycount":1,"nonuse":false},"addsubDanmuOpacity":{"text":"减增弹幕透明度${step}%","keystr":"Z C","keycount":2,"nonuse":false,"tempargs":[{"name":"step","value":10,"opt":{"step":10,"min":0,"max":"100","tip":["调节幅度%"]}}]},"addsubDanmuFontsize":{"text":"减增弹幕字号${step}%","keystr":"V N","keycount":2,"nonuse":false,"tempargs":[{"name":"step","value":10,"opt":{"step":10,"min":0,"max":"100","tip":["调节幅度%"]}}]},"danmuArea":{"text":"弹幕显示区域 1/4屏~不限","keystr":"1 2 3 4 5","keycount":5,"delimiter":"、","nonuse":false},"wheelDanmuOpacity":{"text":"增减弹幕透明度${step}%","keystr":"Ctrl+滚↑轮 Ctrl+滚↓轮","keycount":2,"nonuse":false,"tempargs":[{"name":"step","value":5,"opt":{"step":5,"min":0,"max":"100","tip":["调节幅度%"]}}]},"fastForwardBackward30s":{"text":"快进/快退${second}s","keystr":"Ctrl+← Ctrl+→","keycount":2,"nonuse":false,"tempargs":[{"name":"second","value":30,"opt":{"step":10,"min":0,"max":"600","tip":["调节幅度-秒"]}}]},"frameByFrame":{"text":"逐帧操作","keystr":"Shift+← Shift+→","keycount":2,"keycode":0,"tip":"","keyshow":"Shift + ←/→","nonuse":false},"keyVideoSpeed":{"text":"调节视频播放速度","keystr":"Ctrl+↑ Ctrl+↓","keycount":2,"nonuse":false},"keyVideoSpeed0dot1":{"text":"0.1倍速调节视频播放速度","keystr":"Ctrl+NumPad_Decimal Ctrl+NumPad0","keycount":2,"nonuse":false},"ctrl_enterFullScreen":{"text":"全屏","keystr":"Ctrl+Enter","keycount":1,"nonuse":false},"danmuZoomWithScreen":{"text":"弹幕随屏幕缩放","keystr":"S","keycount":1,"nonuse":false},"like":{"text":"点赞、投币、收藏、长按一键三连","keystr":"Y U I O","keycount":4,"delimiter":"、","nonuse":false},"setCustomPlayRate":{"text":"调节自定义倍速速度","keystr":"Shift+↑ Shift+↓","keycount":2,"nonuse":false},"subtitle":{"text":"开关字幕","keystr":"E","keycount":1,"nonuse":false},"watchLater":{"text":"开关稍后再看","keystr":"H","keycount":1,"nonuse":false},"dblclickFullScreen":{"text":"全屏","keystr":"双击/中键/功能键","keycount":0},"loop":{"text":"设定段落循环 / 设定后切换","keystr":"Ctrl+鼠标左键 L","keycount":-2},"dynamicProgress":{"text":"快进/快退时显示醒目进度条","keystr":"← →","keycount":-2},"dynamicSpace":{"text":"合理空格键","keystr":"Space","keycount":-1},"dynamicEsc":{"text":"优先取消右键菜单等","keystr":"Escape","keycount":-1},"dynamicEnter":{"text":"有投币框时回车投币","keystr":"Enter","keycount":-1},"sysLike":{"text":"单次点赞/取消点赞,长按一键三连","keystr":"Q","display":"none"},"sysCoin":{"text":"投币","keystr":"W","display":"none"},"sysCollect":{"text":"收藏","keystr":"E","display":"none"},"sysThree":{"text":"长按一键三连","keystr":"R","display":"none"},"sysPlayPause":{"text":"播放/暂停","keystr":"Space","display":"none"},"sysFastForward":{"text":"单次快进5s,长按倍速播放","keystr":"→","display":"none"},"sysFastBackward":{"text":"快退5s","keystr":"←","display":"none"},"sysVolume+":{"text":"音量增加10%","keystr":"↑","display":"none"},"sysVolume-":{"text":"音量降低10%","keystr":"↓","display":"none"},"sysEscFullScreen":{"text":"退出全屏","keystr":"Esc","display":"none"},"sysPlayPause2":{"text":"播放/暂停","keystr":"媒体键play/pause","display":"none"},"sysFullScreen":{"text":"全屏/退出全屏","keystr":"F","display":"none"},"sysPrecPart":{"text":"多P上一个","keystr":"[","display":"none"},"sysNextpart":{"text":"多P下一个","keystr":"]","display":"none"},"sysSendDM":{"text":"发弹幕","keystr":"Enter","display":"none"},"sysSwitchDM":{"text":"开启/关闭弹幕","keystr":"D","display":"none"},"sysSwitchMute":{"text":"开启/关闭静音","keystr":"M","display":"none"},"sysOneSpeed":{"text":"一倍速(正常倍速)","keystr":"Shift+1","display":"none"},"sysDoubleSpeed":{"text":"二倍速","keystr":"Shift+2","display":"none"}},"btn":"快捷键设置","type":"key"}} debugger eval code:10:9
当前localStorage使用容量为96.84KB
==========================================
用的是firefox 119.0.1
火狐设置中打开了关闭浏览器自动清理缓存,不知脚本设置被还原是否与此有关?
另外,我把火狐重置了,重新安装了篡改猴和脚本,关灯模式下滚页面还是有“超出点赞区域到达评论区自动关灯”的问题。按了F12,但不知道如何查看是否报错。
晚上我用火狐试试
第一个问题:是mini窗口的问题,显示mini窗口时top计算会出错,下次更新时修改
第二个问题:没有复现,你试试重启之后,打开b站之前控制台运行代码
第一个问题:是mini窗口的问题,显示mini窗口时top计算会出错,下次更新时修改
第二个问题:没有复现,你试试重启之后,打开b站之前控制台运行代码
第一个问题:关掉mini窗口就正常开关灯了,哈哈哈哈,太好了
第二个问题:打开火狐,按F12,输入代码后回车,显示如下
(function(){
if(!window.localStorage) {
console.log('浏览器不支持localStorage');
}
var size = 0;
for(item in window.localStorage) {
if(window.localStorage.hasOwnProperty(item)) {
if(item === 'hhh_checkboxes'){
console.log(item)
console.log(window.localStorage.getItem(item))
}
size += window.localStorage.getItem(item).length;
}
}
console.log('当前localStorage使用容量为' + (size / 1024).toFixed(2) + 'KB');
})()
当前localStorage使用容量为0.00KB main.js:2:232306
undefined
忘了localStorage不能跨域的事了
火狐恢复默认是关浏览器出现,还是关电脑出现?
其他浏览器有没有这个问题?
忘了localStorage不能跨域的事了
火狐恢复默认是关浏览器出现,还是关电脑出现?
其他浏览器有没有这个问题?
大佬,火狐恢复默认是关浏览器后出现。在你的启发下尝试了重新设置,又检查了火狐隐私设置,发现除“关闭火狐自动删除缓存”以外,还勾选了“关闭删除脱机数据”,试着取消勾选,就解决问题了,现在可以保存设置了,特意来说一声。谢谢你耐心帮助,期待解决mini窗口问题。
不是大佬,菜鸟一个,mini窗口解决了,断断续续的写了一个新功能,完了一起发
不是大佬,菜鸟一个,mini窗口解决了,断断续续的写了一个新功能,完了一起发
好的,期待新功能
谢谢大佬,自动关灯、暂停开灯问题已修复,非会员选择1080P已实现,下滚屏幕开灯也很灵敏,实在是太好用了,跟预想的一模一样。
反馈一点:下滚屏幕开灯只能点赞,不能评论,因为过了点赞区域继续下滚到评论区的话又关灯了,要手动点右侧视频浮窗暂停才会开灯。
另外请教一下,设置好脚本,关闭浏览器,关闭电脑,第二天再开,发现前一天的设置全部恢复默认了,是什么原因呢?
总之很满意了。大佬辛苦了,期待下次更新~!