您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动选择最高清晰度、禁止弹幕、禁止广告。
当前为
- // ==UserScript==
- // @name 更好的直播体验(最高清晰度、禁弹幕、禁广告)
- // @namespace lhzbxx
- // @version 2020.06.01
- // @description 自动选择最高清晰度、禁止弹幕、禁止广告。
- // @author lhzbxx
- // @noframes
- // @require https://code.jquery.com/jquery-latest.js
- // @require https://gf.qytechs.cn/scripts/2199-waitforkeyelements/code/waitForKeyElements.js?version=6349
- // @match *://live.bilibili.com/*
- // @match *://*.douyu.com/*
- // @match *://*.huya.com/*
- // @match *://*.yy.com/*
- // @match *://egame.qq.com/*
- // @grant none
- // ==/UserScript==
- const config = {
- huya: {
- selectors: [
- '#player-danmu-btn',
- 'ul.player-videotype-list > li:nth-child(1)',
- 'div.ab-close-btn',
- ],
- timeout: 1500,
- },
- douyu: {
- selectors: [
- `div[class^='showdanmu-']`,
- `div[class^='tip-'] > ul > li:nth-child(1)`,
- ],
- },
- bilibili: {
- selectors: [
- 'i.live-icon-danmaku-on',
- ],
- },
- qq: {
- selectors: [
- 'div.vcp-extended-barrage',
- 'a.vcp-vertical-switcher-item-clarity:nth-child(1)',
- ],
- },
- }
- const site = config[document.domain.split('.').reverse()[1]];
- (function() {
- 'use strict';
- if (!site) {
- return;
- }
- site.selectors.forEach(selector => {
- setTimeout(() => {
- waitForKeyElements(selector, (node) => {
- node.click();
- });
- }, site.timeout || 0);
- });
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址