解除B站大会员观影限制,理论支持番剧和放映厅,不支持的视频请反馈留地址让我修复,或自行在代码搜索‘大会员’并添加识别div与语句。
< Opiniones de 解锁b站vip视频+弹幕字幕移植
javascript: (function() { window.addScriptTag = function(fName, pn) { if (!fName) { fName = 'log'; } if (!pn) { pn = 1; } var src = 'https://api.bilibili.com/x/v2/reply?callback=' + fName + '&jsonp=jsonp&pn=' + pn + '&type=1&oid=' + window.aid + '&sort=2&_=' + new Date().getTime(); var script = document.createElement('script'); script.setAttribute("type", "text/javascript"); script.setAttribute("async", "false"); script.src = src; document.body.appendChild(script); }; /*获取data*/ window.log = function(data) { this.data = data; console.log(window.data); this.allReply = []; this.allReply[0] = data.data.replies; getPage(data); }; /*获取总页数*/ window.getPage = function(data) { var data2 = data.data; this.page = data2.page; this.count = page.count; this.maxPage = Math.ceil(page.count / page.size); this.pageCount = maxPage; window.pageConstant=30; console.log(window.pageCount); getAllReply(); }; /*获取留言*/ window.getReply = function(data) { var data2 = data.data; this.allReply.push(data2.replies); }; /*获取全部留言*/ window.getAllReply = function() { if(pageCount>pageConstant){ pageCount=pageConstant; } for (var i = 2; i < pageCount; i++) { addScriptTag('getReply', (i)); } }; /*获取更多留言*/ window.getMoreReply = function() { window.lastPage=pageCount; pageCount=pageCount+pageConstant; if(pageCount>maxPage){ pageCount=maxPage; } for (var i = lastPage; i < pageCount; i++) { addScriptTag('getReply', (i)); } if(pageCount$2$3"); contents.push(msgData); /*console.info(parseReplyContent(allReply[idx1][idx2]));*/ } } } window.contents=contents; console.info(contents); return contents; }; /*过滤粉丝用户信息*/ window.filterFansReply = function (){ fansData = []; for (idx1 in allReply) { for (idx2 in allReply[idx1]) { if(!!allReply[idx1][idx2].member.fans_detail){ var userData=parseReplyContent(allReply[idx1][idx2]); userData.page=idx1; userData.row=idx2; fansData.push(userData); } } } window.fansData=fansData; console.info(fansData); return fansData; }; /*初始化*/ window.init=function(){ if(!this.allReply){ addScriptTag(); } }; init(); /*创建子窗口*/ window.createSubWin=function(){ window.subWin=window.open('','子窗口','width=900,height=600,left=450,top=200'); var src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"; window.subDoc=subWin.document; window.subBody=subWin.document.body; window.iniJQ=function(){ var script = subDoc.createElement('script'); script.setAttribute("type", "text/javascript"); script.setAttribute("async", "async"); script.src = src; subDoc.head.appendChild(script); }; iniJQ(); var htmlContent=`bilibili评论统计分析工具
.*?版本号###.*?###.*?<\/blockquote>/; versionElem=versionReg.exec(data); console.log(versionElem); if(!!versionElem){ newVersion=versionElem[0].replace(/.*?(版本号###.*?###).*?<\/blockquote>/,"$1"); } subWin.newVersion=window.newVersion; subWin.checkVersion(); } }); }; setTimeout("createVersionFrame()",2*1000); })();
能帮我看看脚本哪里有错误吗,能执行,就是无法上传到油猴上
我发现个bug,弹幕显示会有一个重复的
我发现个bug,弹幕显示会有一个重复的
贴个地址和视频时间我看看,但是这些不影响整体运行的bug好难找。
javascript: (function() { window.addScriptTag = function(fName, pn) { if (!fName) { fName = 'log'; } if (!pn) { pn = 1; } var src = 'https://api.bilibili.com/x/v2/reply?callback=' + fName + '&jsonp=jsonp&pn=' + pn + '&type=1&oid=' + window.aid + '&sort=2&_=' + new Date().getTime(); var script = document.createElement('script'); script.setAttribute("type", "text/javascript"); script.setAttribute("async", "false"); script.src = src; document.body.appendChild(script); }; /*获取data*/ window.log = function(data) { this.data = data; console.log(window.data); this.allReply = []; this.allReply[0] = data.data.replies; getPage(data); }; /*获取总页数*/ window.getPage = function(data) { var data2 = data.data; this.page = data2.page; this.count = page.count; this.maxPage = Math.ceil(page.count / page.size); this.pageCount = maxPage; window.pageConstant=30; console.log(window.pageCount); getAllReply(); }; /*获取留言*/ window.getReply = function(data) { var data2 = data.data; this.allReply.push(data2.replies); }; /*获取全部留言*/ window.getAllReply = function() { if(pageCount>pageConstant){ pageCount=pageConstant; } for (var i = 2; i < pageCount; i++) { addScriptTag('getReply', (i)); } }; /*获取更多留言*/ window.getMoreReply = function() { window.lastPage=pageCount; pageCount=pageCount+pageConstant; if(pageCount>maxPage){ pageCount=maxPage; } for (var i = lastPage; i < pageCount; i++) { addScriptTag('getReply', (i)); } if(pageCount$2$3"); contents.push(msgData); /*console.info(parseReplyContent(allReply[idx1][idx2]));*/ } } } window.contents=contents; console.info(contents); return contents; }; /*过滤粉丝用户信息*/ window.filterFansReply = function (){ fansData = []; for (idx1 in allReply) { for (idx2 in allReply[idx1]) { if(!!allReply[idx1][idx2].member.fans_detail){ var userData=parseReplyContent(allReply[idx1][idx2]); userData.page=idx1; userData.row=idx2; fansData.push(userData); } } } window.fansData=fansData; console.info(fansData); return fansData; }; /*初始化*/ window.init=function(){ if(!this.allReply){ addScriptTag(); } }; init(); /*创建子窗口*/ window.createSubWin=function(){ window.subWin=window.open('','子窗口','width=900,height=600,left=450,top=200'); var src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"; window.subDoc=subWin.document; window.subBody=subWin.document.body; window.iniJQ=function(){ var script = subDoc.createElement('script'); script.setAttribute("type", "text/javascript"); script.setAttribute("async", "async"); script.src = src; subDoc.head.appendChild(script); }; iniJQ(); var htmlContent=`bilibili评论统计分析工具评论统计分析工具首页用户性别统计评论时间段统计用户等级统计关键字搜索牌粉留言信息插件更新检测...
5s后抓取更多评论数据
注意事项:
请勿短时间内在多个视频中使用该插件,否则可能会被B站官方暂时封锁IP,导致10分钟内无法查看视频评论,同时也无法使用该插件(目前该插件每次抓取30页的评论)`; subDoc.write(htmlContent); subWin.data=window.data; setTimeout("subWin.ready();",1*1000); }; createSubWin(); /*复制b站CSS*/ $(document).find("style").each(function (i,o){ $(o).clone().appendTo(subDoc.head); }); /*检测版本页面*/ window.createVersionFrame=function(){ $.ajax({ url:'https://www.bilibili.com/read/cv7275487', success:function (data){ /*console.log(data);*/ versionReg=/搜索.*?版本号###.*?###.*?<\/blockquote>/; versionElem=versionReg.exec(data); console.log(versionElem); if(!!versionElem){ newVersion=versionElem[0].replace(/.*?(版本号###.*?###).*?<\/blockquote>/,"$1"); } subWin.newVersion=window.newVersion; subWin.checkVersion(); } }); }; setTimeout("createVersionFrame()",2*1000); })();
能帮我看看脚本哪里有错误吗,能执行,就是无法上传到油猴上
他有提示为什么上传不了的,仔细看看全页面,我也卡了一会儿才能上传。
showwx无法加载弹幕,还有ok多线