您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Script to minimize lags in Kogama by removing unnecessary elements and animations
// ==UserScript== K O K U S H I B O // @name Kogama Optimization - Lag Reduction // @namespace http://tampermonkey.net/ // @version 1.0 // @description Script to minimize lags in Kogama by removing unnecessary elements and animations // @author K O K U S H I B O // @match https://www.kogama.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to optimize Kogama performance function optimizeKogama() { // Remove ads and unnecessary elements document.querySelectorAll('.advertisement, [id^="ad"], iframe[src*="ads"]').forEach(el => el.remove()); // Disable animations and transitions document.querySelectorAll("*").forEach(el => { el.style.animation = "none"; // Disable CSS animations el.style.transition = "none"; // Disable CSS transitions }); // Reduce graphical load (e.g., remove background images) document.body.style.backgroundImage = "none"; // Disable background images document.body.style.backgroundColor = "#000000"; // Set black background (optional) console.log("Kogama optimization applied successfully."); } // Apply optimization regularly (for dynamically loaded elements) setInterval(optimizeKogama, 2000); // Run every 2 seconds })();