// ==UserScript==
// @name FAKO WHOWHERE Gartic.io Gartic
// @name:en FAKO WHOWHERE Gartic.io Gartic
// @version 1.5
// @description Arkadaşlarınızın hangi Gartic.io odalarında olduğunu anında görün, doğrudan katılın veya izleyin! Kullanıcı arama, favori oyuncu listesi, filtreleme ve daha fazlasıyla oyun deneyiminizi zenginleştirin. Eklentiyi çalıştırmak için https://gartic.io/?fako adresini ziyaret edin.
// @description:en Instantly see which Gartic.io rooms your friends are in, join or spectate directly! Enhance your gameplay with user search, favorite player list, filtering, and much more. To activate the extension, visit https://gartic.io/?fako.
// @author FAKO
// @match https://gartic.io/
// @match gartic.io/*
// @icon data:image/svg+xml,
// @grant none
// @namespace fakowhowhere
// @downloadURL https://update.greasyfork.icu/scripts/499529/FAKO%20WHOWHERE%20Garticio%20Gartic.user.js
// @updateURL https://update.greasyfork.icu/scripts/499529/FAKO%20WHOWHERE%20Garticio%20Gartic.meta.js
// ==/UserScript==
if (window.location.href.indexOf("?fako") != -1) {
window.lang = window.location.href.indexOf("&lang=") != -1 ? window.location.href.split("&lang=")[1] : 8;
document.body.classList.add("fako-viewer");
document.body.innerHTML = `
FAKO WHOWHERE Online: 0
`;
let favoriler = JSON.parse(localStorage.getItem('favoriler')) || [];
let oyuncular = [];
let filtreler = {
fotografli: localStorage.getItem('fotografli') === 'true',
fotografsiz: localStorage.getItem('fotografsiz') === 'true',
userlar: localStorage.getItem('userlar') === 'true',
favoriler: localStorage.getItem('favorilerGoster') === 'true'
};
document.getElementById('fotografli').checked = filtreler.fotografli;
document.getElementById('fotografsiz').checked = filtreler.fotografsiz;
document.getElementById('userlar').checked = filtreler.userlar;
document.getElementById('favoriler').checked = filtreler.favoriler;
function kullanicilariGuncelle() {
const searchValue = document.getElementById("searchInput").value.toLowerCase();
document.querySelector(".kullanicilar").innerHTML = "";
let filteredPlayers = oyuncular.filter(oyuncu => {
if (filtreler.fotografli && !oyuncu.foto) return false;
if (filtreler.fotografsiz && oyuncu.foto) return false;
if (filtreler.userlar && oyuncu.nick.toLowerCase().includes('user')) return false;
if (filtreler.favoriler && !favoriler.includes(oyuncu.id)) return false;
if (!oyuncu.nick.toLowerCase().includes(searchValue)) return false;
return true;
});
filteredPlayers.sort((a, b) => {
const aFavori = favoriler.includes(a.id);
const bFavori = favoriler.includes(b.id);
if (aFavori && !bFavori) return -1;
if (!aFavori && bFavori) return 1;
return 0;
});
filteredPlayers.forEach(oyuncu => {
const isFavori = favoriler.includes(oyuncu.id);
const oyuncuDivi = `