This commit is contained in:
the1812 2019-08-25 15:46:11 +08:00
parent 83a9e3224f
commit 4abd66bc47
6 changed files with 12 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(()=>{return(t,e)=>{(async()=>{if(!/^https:\/\/live\.bilibili\.com\/[\d]+/.test(document.URL)){return}const t=await SpinQuery.select(".chat-popups-section");if(!t){console.warn("[自动领奖] 未能找到弹窗容器");return}Observer.childList(t,()=>{let t;while(true){t=dq(".chat-popups-section .draw>span:nth-child(3)");if(t===null){break}t.click()}})})()}})();
(()=>{return(t,e)=>{(async()=>{if(!/^https:\/\/live\.bilibili\.com\/[\d]+/.test(document.URL)){return}const t=await SpinQuery.select(".chat-popups-section");console.log(t);if(!t){console.warn("[自动领奖] 未能找到弹窗容器");return}Observer.childListSubtree(t,()=>{let t;while(true){console.log("draw button = ",dq(".chat-popups-section .draw>span:nth-child(3)"));t=dq(".chat-popups-section .draw>span:nth-child(3)");if(t===null){break}t.click()}})})()}})();

File diff suppressed because one or more lines are too long

View File

@ -1434,7 +1434,7 @@ class Subscriptions extends NavbarComponent {
this.popupHtml = /*html*/`
<div class="subscriptions">
<ul class="subscriptions-tabs">
<li class="tab selected" :class="{selected: bangumi}" @click="bangumi = true">追番</li>
<li class="tab" :class="{selected: bangumi}" @click="bangumi = true">追番</li>
<li class="tab" :class="{selected: !bangumi}" @click="bangumi = false">追剧</li>
<div class="tab-placeholder"></div>
<a class="view-all" :href="'https://space.bilibili.com/${userInfo.mid}/' + (bangumi ? 'bangumi' : 'cinema')">

View File

@ -3,13 +3,15 @@
return
}
const popupContainer = await SpinQuery.select('.chat-popups-section')
console.log(popupContainer)
if (!popupContainer) {
console.warn('[自动领奖] 未能找到弹窗容器')
return
}
Observer.childList(popupContainer, () => {
Observer.childListSubtree(popupContainer, () => {
let draw: HTMLSpanElement | null
while (true) {
console.log('draw button = ', dq('.chat-popups-section .draw>span:nth-child(3)'))
draw = dq('.chat-popups-section .draw>span:nth-child(3)') as HTMLSpanElement | null
if (draw === null) {
break