您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Changes the default blue verification badge to yellow, with panel UI for demo verification logic.
当前为
// ==UserScript== // @name Verify kour.io (Yellow Badge Only) // @namespace LC // @version 0.8 // @description Changes the default blue verification badge to yellow, with panel UI for demo verification logic. // @author strange_carrot // @license MIT // @match https://kour.io/* // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; // Add styles (yellow badge + panel) GM_addStyle(` #lcVerifyContainer { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; position: fixed; top: 20px; left: 20px; z-index: 9999; background: #1a1a1a; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 15px; width: 250px; border: 1px solid #333; } #lcVerifyHeader { color: #FFD700; margin-bottom: 15px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; } #lcVerifyBtn { background: linear-gradient(135deg, #FFD700, #FFB700); color: black; border: none; padding: 8px 15px; border-radius: 4px; font-size: 14px; font-weight: 500; cursor: pointer; width: 100%; margin-bottom: 10px; transition: all 0.2s; } #lcVerifyBtn:hover { opacity: 0.9; transform: translateY(-1px); } #lcHideBtn { background: #333; color: #ccc; border: none; padding: 5px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.2s; } #lcHideBtn:hover { background: #444; color: white; } #lcVerifyStatus { font-size: 13px; color: #aaa; margin-top: 10px; padding-top: 10px; border-top: 1px solid #333; text-align: center; } .success { color: #2ecc71 !important; } .error { color: #ff4757 !important; } .processing { color: #FFD700 !important; } .hidden { display: none; } /* 🔶 Override default blue badge → yellow */ .verify-badge { background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFD700" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 12l-2.12-2.12.12-2.98-2.98-.12L12 2 9.88 4.78 6.9 4.66l-.12 2.98L2 12l2.12 2.12-.12 2.98 2.98.12L12 22l2.12-2.12 2.98.12.12-2.98L22 12zm-12 2.59l-2.59-2.59L7 13l3 3 7-7-1.41-1.42L10 14.59z"/></svg>'); background-size: contain; background-repeat: no-repeat; display: inline-block; width: 20px; height: 20px; } `); // Create the verification panel HTML const panelHTML = ` <div id="lcVerifyContainer"> <div id="lcVerifyHeader"> <span>LC Verification <span class="verify-badge"></span></span> <button id="lcHideBtn">Hide</button> </div> <button id="lcVerifyBtn">Verify Account</button> <div id="lcVerifyStatus">Ready to verify</div> </div> `; // Insert the panel into the page document.body.insertAdjacentHTML('beforeend', panelHTML); // Get panel elements const verifyBtn = document.getElementById('lcVerifyBtn'); const statusText = document.getElementById('lcVerifyStatus'); const hideBtn = document.getElementById('lcHideBtn'); const container = document.getElementById('lcVerifyContainer'); // Hide/show functionality hideBtn.addEventListener('click', () => { container.classList.toggle('hidden'); hideBtn.textContent = container.classList.contains('hidden') ? 'Show' : 'Hide'; }); // Demo verification functionality verifyBtn.addEventListener('click', () => { statusText.textContent = "Verifying..."; statusText.className = "processing"; setTimeout(() => { statusText.textContent = "Account verified successfully!"; statusText.className = "success"; }, 500); }); })();