We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc65c6 commit 96a76f1Copy full SHA for 96a76f1
willian/moe.willian.bangumi.ep-onAir.user.js
@@ -8,13 +8,12 @@
8
// @run-at document-end
9
// ==/UserScript==
10
11
-const lowerLimit = 3;
12
-const factor = 5;
+// const lowerLimit = 3;
+const factor = 10;
13
14
// median
15
function median(values) {
16
values = values.slice(0).sort( function(a, b) {return a - b; } );
17
-
18
return middle(values);
19
}
20
@@ -82,7 +81,8 @@ function onAir(){
82
81
.map(b=>getComment(b.getAttribute('rel')))
83
.sort()
84
)
85
- const threshold = Math.min(medium/factor, lowerLimit);
+ // const threshold = Math.max(medium/factor, lowerLimit);
+ const threshold = medium/factor;
86
87
for(const btn of airs){
88
console.log(getComment(btn.getAttribute('rel')), threshold);
0 commit comments