您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
虎牙免登陆可控清晰度
当前为
// ==UserScript== // @name 虎牙免登陆清晰度 // @namespace https://github.com/demon-zhonglin/tmJavaScript // @version 0.2 // @description 虎牙免登陆可控清晰度 // @author demon-zhonglin // @include https://www.huya.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== (function() { 'use strict'; function getCookieValueByName(name) { // 从 cookie 中获取 key 值 var match = document.cookie.match(new RegExp("(^| )" + name + "=([^;]+)")); return match ? match[2] : ""; } const isLogin = getCookieValueByName('udb_passport') // 当前登录用户 虎牙号 if (!isLogin) { localStorage.setItem('loginTipsCount', -1e+35); } if (typeof $ === 'function') { // huya 自带有引用 jq $(document).ready(function(){ if (!isLogin) { $('#player-login-tip-wrap').remove(); VPlayer.prototype.checkLogin(true); } }) } })();