This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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$')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body > #wrapper { | |
max-width: 1010px; | |
width: 100% !important; | |
} | |
body.active-brand.pp { | |
padding-top: 0 !important; | |
} | |
#footer { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module StackExchangeAPI | |
require 'net/http' | |
require 'json' | |
require 'csv' | |
DOMAIN = 'http://api.stackexchange.com/' | |
PARAMS = {site: 'stackoverflow'} | |
class << self | |
def get_user_info(id) |