// ==UserScript==
// @name BiliBili 少年Pi的视频更新监控 (2020巫术之路)
// @namespace https://mesa-lab.cn/
// @version 0.3
// @description 失眠小助手B→‿→
// @author https://space.bilibili.com/4460411/#黑山東雲光圈研究所
// @match https://www.bilibili.com/apiww
// @grant GM_addStyle
// @grant GM_notification
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`.face-buy-header { position: relative; margin-top: 80px; }.face-buy-avatar { border-radius: 48px; display: block; width: 96px; height: 96px; margin: 0 auto 20px; top: -20px; position: relative; }.face-buy-g { position: absolute; top: -55px; left: 351px; width: 168px; height: 168px; } .f1 { width: 870px; margin: 0 auto; } .error-panel.server-error.error-404 { padding: 0 0 40px 0; } .face-buy-name { color: #111; font-size: 24px; line-height: 1em; padding-bottom: 16px; text-align: center; margin-top: 40px; }@keyframes blink{ 0%{ filter: none; } 50%{ filter: url(#a); } 100%{ filter: none; } }@keyframes blinkf{ 0%{ text-shadow:0; } 50%{ text-shadow: #ff22ff 0px 2px 3px; } 100%{ text-shadow:0; } } @-webkit-keyframes blink{ 0%{ filter: none; } 50%{ filter: url(#a); } 100%{ filter: none; } }@-webkit-keyframes blinkf{ 0%{ text-shadow:0; } 50%{ text-shadow: #ff22ff 0px 2px 3px; } 100%{ text-shadow:0; } } .blink img.face-buy-avatar { animation: blink 1s infinite; -webkit-animation: blink 1s infinite; } .blink .face-buy-name > .font { animation: blinkf 1s infinite; -webkit-animation: blinkf 1s infinite; } .blinkf img.face-buy-avatar { animation: blink 0.1s infinite; -webkit-animation: blink 0.1s infinite; } .blinkf .face-buy-name > .font { animation: blinkf 0.1s infinite; -webkit-animation: blinkf 0.1s infinite; } .g img.face-buy-avatar { filter: url(#a); } .g .face-buy-name > .font { text-shadow: #ff22ff 0px 2px 3px; } .face-buy-name > .font { margin: 0 12px; font-family: "KaiTi"; font-size: 28px; position: relative; display: inline-block; cursor: pointer; }.font .num { height: 12px; line-height: 12px; color: #fff; background-color: #f25d8e; border-radius: 10px; position: absolute; padding: 1px 2px; font-size: 12px; top: -9px; right: -13px; min-width: 16px; z-index: 30; text-align: center; }.m-loading .icon { width: 24px; height: 24px; margin-right: 5px; background-image: url(https://s1.hdslb.com/bfs/static/jinkela/space/asserts/loadingS.gif); background-repeat: no-repeat; display: inline-block; } .m-loading span { position: relative; top: -5px; color: #4c5155; } .f2 { margin: 0 auto; width: 870px; } .m-loading { display: inline-block; text-align: center; margin: 0 auto; width: 870px; position: relative; top: 10px; } font.iconf { color: #9ca6af; position: relative; top: -5px; left: -7px; }.ops { float: left; height: 24px; width: 100%; }.ops>span { width: 85px; margin-right: 8px; transition: all .3s; display: inline-block; white-space: nowrap; color: #505050; position: relative; }.ops>span i { font-size: 28px; vertical-align: top; margin-right: 6px; width: 28px; height: 28px; color: #757575; }[class^=van-icon-] { display: inline-block; font-style: normal; vertical-align: baseline; text-align: center; text-transform: none; line-height: 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }.van-icon-error:before{content:"\\E62B"}.van-icon-serach:before{content:"\\E62F"}.van-icon-info:before{content:"\\E67D"}.van-icon-loading:before{content:"\\EEE3"}.van-icon-warning:before{content:"\\E664"}.van-icon-success:before{content:"\\E6F7"}.van-icon-jianpan:before{content:"\\E616"}.van-icon-lv0:before{content:"\\E6CB"}.van-icon-lv1:before{content:"\\E6CC"}.van-icon-lv2:before{content:"\\E6CD"}.van-icon-lv3:before{content:"\\E6CE"}.van-icon-lv4:before{content:"\\E6CF"}.van-icon-lv5:before{content:"\\E6D0"}.van-icon-lv6:before{content:"\\E6D1"}.van-icon-close:before{content:"\\E604"}.van-icon-fasong:before{content:"\\E666"}.van-icon-cai:before{content:"\\E638"}.van-icon-pinglun:before{content:"\\E639"}.van-icon-ding:before{content:"\\E63A"}.van-icon-guanbi:before{content:"\\E63C"}.van-icon-gengduo:before{content:"\\E63D"}.van-icon-biaoqing:before{content:"\\E63E"}.van-icon-videodetails_play:before{content:"\\E6E3"}.van-icon-videodetails_messag:before{content:"\\E6E5"}.van-icon-info_playnumber:before{content:"\\E6E6"}.van-icon-info_barragenumber:before{content:"\\E6E7"}.van-icon-info_rank:before{content:"\\E6E8"}.van-icon-info_prohibit:before{content:"\\E6E9"}.van-icon-general_moreactions:before{content:"\\E6EA"}.van-icon-general_pulldown_s:before{content:"\\E6EB"}.van-icon-general_pullup_s:before{content:"\\E6EC"}.van-icon-general_more:before{content:"\\E6ED"}.van-icon-general_close_s:before{content:"\\E6EE"}.van-icon-general_addto_s:before{content:"\\E6EF"}.van-icon-videodetails_collec:before{content:"\\E6E1"}.van-icon-videodetails_usemo:before{content:"\\E6E2"}.van-icon-videodetails_throw:before{content:"\\E6E4"}.van-icon-videodetails_like:before{content:"\\E6E0"}.van-icon-general_enter_s:before{content:"\\E6F0"}.van-icon-general_back_s:before{content:"\\E6F1"}.van-icon-floatwindow_custome:before{content:"\\E6F2"}.van-icon-share_weibo_default:before{content:"\\E71C"}.van-icon-share_tieba_default:before{content:"\\E71D"}.van-icon-share_wechat_default:before{content:"\\E721"}.van-icon-tuodong:before{content:"\\E665"}.van-icon-share_qq_default:before{content:"\\E71E"}.van-icon-share_news_default:before{content:"\\E71F"}.van-icon-share_qzone_default:before{content:"\\E720"}.van-icon-info_up:before{content:"\\E723"}.van-icon-Navbar_mobile:before{content:"\\E724"}.van-icon-Navbar_logo:before{content:"\\E725"}.van-icon-download:before{content:"\\E744"}.van-icon-general_viewlist:before{content:"\\E706"}.van-icon-general_viewmodule:before{content:"\\E707"}.van-icon-videodetails_share:before{content:"\\E70F"}@font-face{font-family:vanfont;src:url(//s1.hdslb.com/bfs/static/jinkela/video/asserts/iconfont.6f84c4e.eot);src:url(data:font/woff;base64,d09GRgABAAAAAB6wAAsAAAAAOIwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8e1DtY21hcAAAAYAAAAHfAAAE5F/fqBRnbHlmAAADYAAAFzYAACrchcvsi2hl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uaw0D59aTlyraIEfgj3HXlTwU6wPnvB/88NdtBBFz30EWKAXexhHwcY4hAjjHGECBMc4w7u4h7u4wEe4hEe4wme4gTP8Bwv8BKv8Bpv8Bbv8B4f8BGf8Blf8BWnOMM5LnCJK1zjG27wPegxrZXuG6YpnXW5nKpQKMq4zMOKtFx9jUtTZkz4k5MsSXbE8tTrzOvc68Lr0uvK67qXCmVYf0pGybyTEg9LH0E42V1F7OeOZMLDnMk8c2qQcFILz4+WPGMqY5a4MHEp6NekRQqfnfLRqrjaK12RMB3VdkJakw9Yo90aaZLz4fqyVjOecDvxF3yDIi6UZpRarqSJGlY6ITJVydiMt5ErY3Ow/W7UGHWPsdnYlGVWxaZdc6qEYGnUYs6wQrWRnWlVtfsXfP43F5OW6dgcNnZC6dynmvod2YpLX3ecOmNVwSZmRprFFeOJijM2JSfsLbOcJdSw4+ZeOiPbwNA6lfmVjdfOxaJxRGsgWWX+Cbr4rSTbvK/H7crhD1r6jfh5JVyw/VtLqFwNViNe/VmbIS85qwQ3NtoGhcqcYO0Z1fmC4A9jcAr5AAA=) format("woff"),url(//s1.hdslb.com/bfs/static/jinkela/video/asserts/iconfont.0b40a61.ttf) format("truetype"),url(//s1.hdslb.com/bfs/static/jinkela/video/asserts/iconfont.8d945a9.svg#iconfont) format("svg")}.vanfont{display:inline-block;font-style:normal;vertical-align:baseline;text-align:center;text-transform:none;line-height:1;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vanfont:before{display:block;font-family:vanfont!important}[class^=van-icon-]{display:inline-block;font-style:normal;vertical-align:baseline;text-align:center;text-transform:none;line-height:1;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class^=van-icon-]:before{display:block;font-family:vanfont!important} .video-toolbar { line-height: 30px; height: 28px; font-size: 14px; color: #505050; border-bottom: 1px solid #e5e9f0; padding-bottom: 8px; border-top: 1px solid #e5e9f0; padding-top: 8px; text-align: center; width: 100%; margin-top: 30px; }`);
$('.bili-header-m.report-wrap-module').remove();
$('title').html('奇妙催更中~');
$('.error-container').html(` <div class="error-panel server-error error-404">
<div class="f1">
<div class="face-buy-header">
<img src="//i0.hdslb.com/bfs/face/d851f48a579778b06249bf3debaa62d353694e91.jpg" class="face-buy-avatar">
<img src="//i2.hdslb.com/bfs/face/6fbee28f782926612eb1ad71d6c8aa7264206fe9.png" class="face-buy-g">
<div class="face-buy-name">战神Pi的
<div class="font">巫术之路
<div class="num">0</div>
</div>
<font class="result">更新了吗?</font>
</div>
</div>
</div>
<div class="f2">
<div class="m-loading"><font class="iconf" title="秒后更新状态">0s</font><i class="icon"></i><span>监控中... 将在视频审核时发出通知~</span></div>
<div class="video-toolbar"><div class="ops">
<span title="播放数" class="playcount">
<i class="van-icon-info_playnumber"></i><font>0</font></span>
<span title="弹幕数" class="vcomment">
<i class="van-icon-info_barragenumber"></i><font>0</font></span>
<span title="点赞数" class="like">
<i class="van-icon-videodetails_like"></i><font>0</font></span>
<span title="评论数" class="comment">
<i class="van-icon-fasong"></i><font>0</font></span>
<span title="硬币数" class="coin">
<i class="van-icon-videodetails_throw"></i><font>0</font></span>
<span title="收藏数" class="collect">
<i class="van-icon-videodetails_collec"></i><font>0</font></span>
<span title="分享数" class="share">
<i class="van-icon-videodetails_share"></i><font>0</font></span>
</div></div>
</div>
</div>
<svg height="0" xmlns="http://www.w3.org/2000/svg"><defs><filter id="a"><feColorMatrix values="1 1 1 0 0 0.1 1 0 0 0 1 1 1 0 0 0 0 0 1 -0.04"></feColorMatrix></filter></defs></svg>
`);
function numup(element,newNumber){
var n=newNumber-parseInt(element.text());
n=n>=0?"+"+n:n;
if(n==0){return;}
var $i=$("<b>").text(n);
var x=Math.min(element.offset().left+element.width()-5,$(window).width()-30),y=element.offset().top;
$i.css({top:y-10,left:x,position:"absolute",color:"#E94F06",'font-size':element.css("font-size")});
$("body").append($i);
setTimeout(function(){element.text(newNumber);},300);
$i.animate({top:y-30,opacity:0},1000,'swing',function(){
$i.remove();
});
}
function numup1(element,a){
var $i=$("<b>").text(a);
var x=Math.min(element.offset().left+element.width()-5,$(window).width()-30),y=element.offset().top;
$i.css({top:y-10,left:x,position:"absolute",color:"#E94F06",'font-size':element.css("font-size")});
$("body").append($i);
$i.animate({top:y-30,opacity:0},1000,'swing',function(){
$i.remove();
});
}
var pnum=0,status=0,video=0;//0无更新,1审核中,2已更新,结束
function check(element){
$.get('https://api.bilibili.com/x/web-interface/archive/stat?aid=86022417',function(data){
numup($('.playcount font'),data.data.view);
numup($('.vcomment font'),data.data.danmaku);
numup($('.like font'),data.data.like);
numup($('.comment font'),data.data.reply);
numup($('.coin font'),data.data.coin);
numup($('.collect font'),data.data.favorite);
numup($('.share font'),data.data.share);
},'json');
$.get('https://space.bilibili.com/ajax/member/getSubmitVideos?mid=13046&page=1&pagesize=50&order=pubdate',function(data){
var has=0;
//$.each(data.data.vlist,function(i,e){if(e.aid=='86022417'){has=1;}});
var nowtitle;
$.each(data.data.vlist,function(i,e){if(e.aid=='86022417'){nowtitle=e.title;}});
if(!!nowtitle.match(/\d+$/)&&video>0){if(video==nowtitle.match(/\d+$/)[0]){has=1;}}
if(has==1&&status==0){
numup1($('.m-loading span'),"\u5495\u5495\u5495\u007e");
$('.error-container').removeClass('g blinkf').addClass('blink');}
else if(has==0&&status==0){
$('.result').html('正在审核中!');
status=1;start=3;
$('.error-container').removeClass('g blink').addClass('blinkf');
$('.m-loading span').html('监控中... 将在视频审核通过后发出通知!');
GM_notification('新视频已进入审核阶段!', '注意啦啦啦啦啦', 'https://i0.hdslb.com/bfs/face/d851f48a579778b06249bf3debaa62d353694e91.jpg');}
else if(has==0&&status==1){
numup1($('.m-loading span'),"\u5ba1\u6838\u541b\u53c8\u7761\u7740\u4e86\uff01\u007a\u007a\u005a");}
else if(has==1&&status==1){
$('.result').html('审核结束');status=3;
$('.m-loading').html('若审核通过,视频将在十余分钟后出现,届时将会通知');}
else if(has==1&&status==1){
numup1($('.m-loading span'),"有没有?");}
},'json');
$.get('https://api.bilibili.com/x/web-interface/view?aid=86022417',function(data){
if(video==0){
numup($('.num'),data.data.videos);
video=data.data.videos;
}else{
if(video!=data.data.videos){
numup($('.num'),data.data.videos);
$('.result').html('<font style="color:green">第'+data.data.videos+'P已更新!</font>');
status=2;
$('.error-container').removeClass('blinkf blink').addClass('g');
$('.m-loading').html('监控完成,还不快去看视频?');
GM_notification('战神的新视频更新啦!', '视频更新啦!视频更新啦!', 'https://i0.hdslb.com/bfs/face/d851f48a579778b06249bf3debaa62d353694e91.jpg');}
}
},'json');
}
var start = 9;
var start1 = 1;
var step = -1;
function count(){
var not=start1==0?'获取中':start1+'s';
$('.iconf').html(not);
start1 += step;
if(start1 < 0){start1 = start;}
if(start1==start){check();}
setTimeout(function(){if(status!=2){count()}},1000);
}
count();
$('.error-container').on('click','div.font',function(){window.open('https://www.bilibili.com/video/av86022417');});
})();