// ==UserScript== // @name B站番剧评分统计 // @namespace https://pro-ivan.com/ // @version 1.3.2 // @description 自动统计B站番剧评分,支持短评/长评综合统计 // @author YujioNako & 看你看过的霓虹 // @match https://www.bilibili.com/bangumi/* // @grant GM_addStyle // @grant GM_getValue // @grant GM_setValue // @homepage https://github.com/YujioNako/true_ranking_plugin/ // @icon https://pro-ivan.com/favicon.ico // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; class ControlPanel { constructor() { this.isOpen = false; this.createUI(); this.bindEvents(); //this.autoFillInput(); } createUI() { // 侧边栏按钮 this.toggleBtn = document.createElement('div'); this.toggleBtn.className = 'control-btn'; this.toggleBtn.textContent = '评分统计'; // 控制台主体 this.panel = document.createElement('div'); this.panel.className = 'control-panel'; this.panel.innerHTML = `
平均分:${data.short_avg}(${data.short_probability}%)
样本数:${data.short_samples}
平均分:${data.long_avg}(${data.long_probability}%)
样本数:${data.long_samples}