Gartic.io Cookie Cleaner

Deletes specific cookies when the exit button is clicked on Gartic.io

  1. // ==UserScript==
  2. // @name Gartic.io Cookie Cleaner
  3. // @name:tr Gartic.io Çerez Temizleyici
  4. // @namespace http://tampermonkey.net/
  5. // @version 2025-04-19
  6. // @description Deletes specific cookies when the exit button is clicked on Gartic.io
  7. // @description:tr Gartic.io'da çıkış düğmesine tıklandığında belirli çerezleri siler
  8. // @author anonimbiri
  9. // @match *://gartic.io/*
  10. // @icon https://raw.githubusercontent.com/Gartic-Developers/Kawaii-Helper/refs/heads/main/Assets/kawaii-logo.png
  11. // @grant GM_cookie
  12. // @noframes
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. // Havalı neon-mor konsol log stili
  19. const cyberAnimeLog = (message, isError = false) => {
  20. const style = `
  21. background: linear-gradient(90deg, #6a00ff, #ff00ff);
  22. color: ${isError ? '#ff4d4d' : '#e0e0ff'};
  23. padding: 10px 15px;
  24. border-radius: 5px;
  25. font-family: 'Courier New', monospace;
  26. font-size: 13px;
  27. font-weight: bold;
  28. text-shadow: 0 0 8px #ff00ff, 0 0 12px #6a00ff;
  29. box-shadow: 0 0 15px #ff00ff;
  30. border: 1px solid #ff00ff;
  31. `;
  32. console.log(`%c🌌 ${message} ⚡️`, style);
  33. };
  34.  
  35. // Function to delete a cookie
  36. function deleteCookie(name) {
  37. GM_cookie.delete({ name: name }, function(error) {
  38. if (error) {
  39. cyberAnimeLog(`✖ ${name} çerezi silinirken hata oluştu!`, true);
  40. } else {
  41. cyberAnimeLog(`✔ ${name} çerezi başarıyla silindi!`);
  42. }
  43. });
  44. }
  45.  
  46. // Exit butonunu bul ve click event ekle
  47. function setupExitButton() {
  48. const exitButton = document.getElementById('exit');
  49. if (exitButton) {
  50. exitButton.addEventListener('click', function() {
  51. cyberAnimeLog('Çerez avı başladı! 🔫');
  52. deleteCookie('garticio');
  53. deleteCookie('cf_clearance');
  54. });
  55. cyberAnimeLog('Exit butonu bulundu ve hazır! 🎮');
  56. return true;
  57. }
  58. return false;
  59. }
  60.  
  61. // İlk deneme
  62. if (!setupExitButton()) {
  63. cyberAnimeLog('Exit butonu henüz yüklenmedi, gözetliyorum... 👾', true);
  64.  
  65. // MutationObserver ile butonun yüklenmesini izle
  66. const observer = new MutationObserver((mutations, obs) => {
  67. if (setupExitButton()) {
  68. obs.disconnect(); // Buton bulundu, izlemeyi bırak
  69. }
  70. });
  71.  
  72. observer.observe(document.body, {
  73. childList: true,
  74. subtree: true
  75. });
  76. }
  77.  
  78. deleteCookie('garticio');
  79. deleteCookie('cf_clearance');
  80. })();