Untitled
unknown
plain_text
11 days ago
1.8 kB
1
Indexable
Never
// ==UserScript== // @name Gartic.io Otomatik Çıkış ve URL Kopyala // @namespace http://tampermonkey.net/ // @version 0.4 // @description Gartic.io için otomatik çıkış ve URL kopyalama // @author You // @match https://gartic.io/* // @match *://*/*?__cpo=aHR0cHM6Ly9nYXJ0aWMuaW8 // @grant none // ==/UserScript== (function() { 'use strict'; // Keçi ID'si var keciId = "keci"; // Buton oluştur var myButton = document.createElement('button'); myButton.innerHTML = 'refresh'; myButton.style.position = 'fixed'; myButton.style.top = '10px'; myButton.style.left = '10px'; myButton.id = keciId; // Keçi ID'si ekleyin document.body.appendChild(myButton); // Butona tıklanınca myButton.addEventListener('click', function() { // Sayfanın URL'sini kopyala var currentUrl = window.location.href; copyTextToClipboard(currentUrl); // Exit butonunu bul ve tıkla var exitButton = document.getElementById('exit'); // 'exitIdBuraya' yerine gerçek exit buton ID'sini kullanın if (exitButton) { exitButton.click(); } // 500 milisaniye bekleyip diğer işlemleri yap setTimeout(function() { // Sayfaya geri dön window.location.href = currentUrl; }, 500); }); // Metni panoya kopyalamak için yardımcı fonksiyon function copyTextToClipboard(text) { var textArea = document.createElement("textarea"); textArea.value = text; document.body.appendChild(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); } })();
Leave a Comment