Skip to content

Instantly share code, notes, and snippets.

View AvaelKross's full-sized avatar

Alexey Smirnov AvaelKross

  • Prague
View GitHub Profile
@AvaelKross
AvaelKross / poe2tradewhisper.js
Created January 9, 2025 01:18
POE2 Trade Auto-Whisper
document.addEventListener('DOMContentLoaded', () => {
console.log('Страница загружена. Скрипт запущен.');
let autoClickEnabled = false; // Переменная для отслеживания состояния автоклика
let observer = null; // Переменная для MutationObserver
// Функция для поиска элемента с текстом
function findElementByText(text) {
return Array.from(document.querySelectorAll('span')).find(
(el) => el.textContent.trim() === text
@AvaelKross
AvaelKross / findRusInTinder.js
Last active January 9, 2025 01:18
find russian ppl in foreign tinder
// Click on Tinder logo to start/stop searching
// Works only in "mobile" mode (low width, where Tinder logo appears on the top)
const cyrillicPattern = /[\u0400-\u04FF]+/;
const ruRegex = /([^ěščřžýáíéóúůďťňĎŇŤŠČŘŽÝÁÍÉÚŮĚÓa-z]|^)rus?($|\.|\s|\n|\,|\/)/ig;
const waitInterval = 500;
window.findReactComponent = function(el) {
for (const key in el) {
if (key.startsWith('__reactFiber$')) {
@AvaelKross
AvaelKross / hdrezka-custom.css
Created May 15, 2018 23:00
Custom modern look (+anti-adv) for hdrezka
body > #wrapper {
max-width: 1010px;
width: 100% !important;
}
body.active-brand.pp {
padding-top: 0 !important;
}
#footer {
@AvaelKross
AvaelKross / gist:012a319d7d7bfb100f93
Created August 13, 2014 21:32
task - SE api / interesting questions for user
module StackExchangeAPI
require 'net/http'
require 'json'
require 'csv'
DOMAIN = 'http://api.stackexchange.com/'
PARAMS = {site: 'stackoverflow'}
class << self
def get_user_info(id)