Untitled
unknown
plain_text
2 years ago
1.8 kB
9
Indexable
// ==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";
var htt = "btYellowBig"
// Buton oluştur
var myButton = document.createElement('button');
myButton.innerHTML = 'refresh ';
myButton.style.position = 'fixed';
myButton.style.top = '60px';
myButton.style.left = '60px';
myButton.id = keciId; // Keçi ID'si ekleyin
myButton.class = htt;
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);
}
})();
Editor is loading...
Leave a Comment