Skip to content

Instantly share code, notes, and snippets.

View dvygolov's full-sized avatar
🤖
Replacing YOU with robots

Daniel Vygolov dvygolov

🤖
Replacing YOU with robots
View GitHub Profile
@dvygolov
dvygolov / youtubevideoslist.js
Created October 17, 2024 08:22
This script prompts for the number of videos to process and then console.logs all the video titles found
// Get all video elements on the page
const videoElements = document.querySelectorAll('a#video-title-link');
// Ask user for the number of videos to process
const numberOfVideos = parseInt(prompt("How many videos do you want to process?"), 10);
// Initialize an empty string to store all video lines
let videoList = '';
// Process the required number of video titles
@dvygolov
dvygolov / fbasianconverter.js
Last active September 4, 2024 10:24
FB Asian cookies converter as a browser bookmarklet
//Script as a bookmarklet
javascript:(async () => {var div = document.createElement('div'); div.style.position = 'fixed'; div.style.top = '50%'; div.style.left = '50%'; div.style.transform = 'translate(-50%, -50%)'; div.style.width = '400px'; div.style.padding = '20px'; div.style.backgroundColor = 'yellow'; div.style.border = '2px solid black'; div.style.borderRadius = '10px'; div.style.zIndex = '10000'; div.style.boxShadow = '0 0 10px rgba(0, 0, 0, 0.5)'; var titleContainer = document.createElement('div'); titleContainer.style.display = 'flex'; titleContainer.style.alignItems = 'center'; titleContainer.style.justifyContent = 'center'; titleContainer.style.marginBottom = '10px'; var blurToggle = document.createElement('button'); blurToggle.innerText = '👁️'; blurToggle.style.backgroundColor = 'transparent'; blurToggle.style.border = 'none'; blurToggle.style.cursor = 'pointer'; blurToggle.style.fontSize = '20px'; blurToggle.style.marginRight = '10px'; blurToggle.style.opacity = '1'; titleContainer.appendChild(
@dvygolov
dvygolov / shakeshttps.php
Created July 26, 2024 11:42
Place this file somewhere in your Keitaro and use it like https://youtracker.com/path/shakes.php?q={STREAMCODE}
<?php
class ShakesRedirectCorrector
{
private function get_headers($url): array
{
$ch = curl_init();
$headers = [];
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@dvygolov
dvygolov / convertcookies.php
Last active July 21, 2024 17:29
Convert cookies from "name=value" format (usually used in asian FB accounts) to JSON format
<?php
echo "Asian FB Cookies to JSON Converter v1.2\n";
echo " by Yellow Web\n\n";
// Check if the filename is provided
if ($argc < 2) {
echo "Usage: php script.php filename\n";
exit(1);
}
@dvygolov
dvygolov / firemetapixel.html
Created May 14, 2024 15:36
Example of how to fire Meta Pixel event on button click
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Example Page</title>
<script>
function fireMetaPixel(id, event) {
// Создание тега <img> с заданными параметрами
var img = document.createElement("img");
@dvygolov
dvygolov / exporttgfolder.py
Created May 11, 2024 20:27
This script can export all of your TG-channels from one folder into OPML format that can be imported into any RSS-reader. RSSHub.app is used for rss-friendly urls.
import sys
import xml.etree.ElementTree as ET
from telethon import TelegramClient
from telethon.tl.functions.messages import GetDialogFiltersRequest
from telethon.tl.types import InputPeerChannel, DialogFilter, DialogFilterDefault, DialogFilterChatlist
api_id = '<YOUR_APP_ID>'
api_hash = '<YOUR_APP_HASH>'
# Set up the Telethon client
@dvygolov
dvygolov / captchassense.html
Created April 30, 2024 09:14
White page with "press and hold" action to filter bots
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Access to this page has been denied.</title> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet"> <style> html, body { margin: 0; padding: 0; font-family: 'Open Sans', sans-serif; color: #000; } a { color: #c5c5c5; text-decoration: none; } .container { align-items: center; display: flex; flex: 1; justify-content: space-between; flex-direction: column; height: 100%; } .container > div { width: 100%; display: flex; justify-content: center; } .container > div > div { display: flex; width: 80%; } .customer-logo-wrapper { padding-top: 2rem; flex-grow: 0; background-color: #fff; visibility: visible; } .customer-logo { border-bottom: 1px solid #000; } .customer-logo > img { padding-bottom: 1rem; max-height: 50px; max-width: 100%; } .page-title-wrapper { flex-grow: 2; } .page-title { flex-direction: column-reverse; } .content-wrapper { flex-grow: 5;
@dvygolov
dvygolov / android10k.php
Created April 8, 2024 15:48
This script shows how to get real version of Android and other CH headers
<?php
header("Critical-CH: Sec-CH-UA-Full-Version-List,Sec-CH-UA-Mobile,Sec-CH-UA-Platform,Sec-CH-UA-Platform-Version,Sec-CH-UA-Bitness,Sec-CH-UA-Model");
// Extract each of the client hints from the request
$fullVersionList = $_SERVER['HTTP_SEC_CH_UA_FULL_VERSION_LIST'] ?? 'Not provided';
$mobile = $_SERVER['HTTP_SEC_CH_UA_MOBILE'] ?? 'Not provided';
$platform = $_SERVER['HTTP_SEC_CH_UA_PLATFORM'] ?? 'Not provided';
$platformVersion = $_SERVER['HTTP_SEC_CH_UA_PLATFORM_VERSION'] ?? 'Not provided';
$bitness = $_SERVER['HTTP_SEC_CH_UA_BITNESS'] ?? 'Not provided';
$model = $_SERVER['HTTP_SEC_CH_UA_MODEL'] ?? 'Not provided';
@dvygolov
dvygolov / popunder.js
Created March 9, 2024 20:10
simplest onclick popunder possible
class Popunder {
constructor(url) {
this.targetUrl = url || "http://google.com";
this.cookieName = "popunder";
this.clicksRequired = 1;
this.expirationHours = 24;
this.cookiePath = ";path=/";
this.eventName = "click";
this.documentRoot = document.documentElement;
this.init();
@dvygolov
dvygolov / ywactivitytracker.js
Last active April 7, 2024 22:22
Script that measures interactions on your landing page. If the user is active for "checkTime" seconds - an interval is valid, if total count of valid seconds = totalTime - the goal is reached and sent to Yandex.Metrika.
class ActivityTracker {
constructor(totalTime, checkTime, metrikaId, debug = false) {
this.events = [
"touchmove",
"blur",
"focus",
"focusin",
"focusout",
"load",
"resize",