Skip to content

Commit 96a76f1

Browse files
committed
Update moe.willian.bangumi.ep-onAir.user.js
1 parent bbc65c6 commit 96a76f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

willian/moe.willian.bangumi.ep-onAir.user.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
// @run-at document-end
99
// ==/UserScript==
1010

11-
const lowerLimit = 3;
12-
const factor = 5;
11+
// const lowerLimit = 3;
12+
const factor = 10;
1313

1414
// median
1515
function median(values) {
1616
values = values.slice(0).sort( function(a, b) {return a - b; } );
17-
1817
return middle(values);
1918
}
2019

@@ -82,7 +81,8 @@ function onAir(){
8281
.map(b=>getComment(b.getAttribute('rel')))
8382
.sort()
8483
)
85-
const threshold = Math.min(medium/factor, lowerLimit);
84+
// const threshold = Math.max(medium/factor, lowerLimit);
85+
const threshold = medium/factor;
8686

8787
for(const btn of airs){
8888
console.log(getComment(btn.getAttribute('rel')), threshold);

0 commit comments

Comments
 (0)