Kogama Optimization - Lag Reduction

Script to minimize lags in Kogama by removing unnecessary elements and animations

  1. // ==UserScript== K O K U S H I B O
  2. // @name Kogama Optimization - Lag Reduction
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Script to minimize lags in Kogama by removing unnecessary elements and animations
  6. // @author K O K U S H I B O
  7. // @match https://www.kogama.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Function to optimize Kogama performance
  15. function optimizeKogama() {
  16. // Remove ads and unnecessary elements
  17. document.querySelectorAll('.advertisement, [id^="ad"], iframe[src*="ads"]').forEach(el => el.remove());
  18.  
  19. // Disable animations and transitions
  20. document.querySelectorAll("*").forEach(el => {
  21. el.style.animation = "none"; // Disable CSS animations
  22. el.style.transition = "none"; // Disable CSS transitions
  23. });
  24.  
  25. // Reduce graphical load (e.g., remove background images)
  26. document.body.style.backgroundImage = "none"; // Disable background images
  27. document.body.style.backgroundColor = "#000000"; // Set black background (optional)
  28.  
  29. console.log("Kogama optimization applied successfully.");
  30. }
  31.  
  32. // Apply optimization regularly (for dynamically loaded elements)
  33. setInterval(optimizeKogama, 2000); // Run every 2 seconds
  34. })();