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 / README.md
Last active May 27, 2026 13:12
Helper for embedding JavaScript into jQuery or SVG files

JS embed helper

Reusable CLI for embedding an arbitrary JavaScript payload into either a local jQuery build or an SVG file.

Requirements

  • Node.js
  • npx
  • for jQuery minification: terser via npx terser
@dvygolov
dvygolov / README.md
Last active May 28, 2026 18:01
YWB universal IPv6 proxy installer for Debian and Ubuntu

YWB Universal IPv6 Proxy Installer

This installer targets Debian and Ubuntu servers where:

  • the primary IPv6 connectivity already works;
  • you have either a routed IPv6 CIDR, a ready list of IPv6 addresses, or preconfigured IPv6 addresses on an interface;
  • you want HTTP and/or SOCKS5 proxies on top of 3proxy.

Tested matrix at this point:

@dvygolov
dvygolov / fb-pixel-partner-request.js
Created April 25, 2026 11:28
This script helps to send a partner request for a Facebook Dataset (not usual pixel!) event if such requests are greyed in the UI
(function fbPixelPartnerRequestBootstrap() {
"use strict";
const Config = {
VERSION: "260423-ui",
GRAPHQL_PATH: "/api/graphql/",
MODAL_QUERY_DOC_ID: "24885284537836579",
VALIDATION_QUERY_DOC_ID: "9794646500614064",
MUTATION_DOC_ID: "26181988954765546",
MODAL_QUERY_NAME: "BizKitSettingsAddPartnerToAssetByBusinessIDModalQuery",
@dvygolov
dvygolov / sharebmpixel2acc.js
Last active May 8, 2026 10:27
This script helps to share meta pixel to an ad account in a business manager when you have problems with sharing using standart methods
function bmPixelShareManagerApp() {
const APP_ID = "bm-pixel-share-ui";
const STYLE_ID = `${APP_ID}-style`;
const GRAPH_VERSION = "v22.0";
const INTERNAL_GRAPHQL_ENDPOINT = "/api/graphql/?_callFlowletID=0&_triggerFlowletID=1&qpl_active_e2e_trace_ids=";
const INTERNAL_GRAPHQL_CALLER = "RelayModern";
const INTERNAL_PIXEL_LIST_QUERY = {
friendlyName: "BusinessCometBizSuiteSettingsEventsDatasetRootQuery",
docId: "27075127438747082",
};
@dvygolov
dvygolov / exclude.json
Created February 27, 2026 13:02
Amnezia VPN pass-through filters for russian sites
[
{
"hostname": "195.178.108.0\/23",
"ip": ""
},
{
"hostname": "91.215.36.0\/22",
"ip": ""
},
{
@dvygolov
dvygolov / thisisfine-v2.js
Last active May 8, 2026 10:28
This bookmarklet script scrolls Facebook Reels imitating live account benavior. By Сельский Арбитраж at https://t.me/c/1428671974/194
javascript:(function(){const old=document.getElementById("__neutralAutoScrollUI__");if(old)old.remove();const P='__fine_'+Math.random().toString(36).substr(2,6)+'_';let running=false,countdownTimer=null,_cachedScrollTarget=null,_cacheTimestamp=0;const CACHE_TTL=15000;let stats={scrolls:0,likes:0,likeFails:0,alreadyLiked:0,startTime:null};const LIKE_LABELS=['like','нравится','thích','me gusta',"j'aime",'gefällt mir','curtir','좋아요','いいね','أعجبني','beğen','suka','mi piace','tykkää','leuk','gilla','synes godt om','lubię to','подобається','лайк','patīk','patinka'];const randInt=(a,b)=>Math.floor(Math.random()*(b-a+1))+a;const clamp=(v,a,b)=>Math.max(a,Math.min(b,v));const $=id=>document.getElementById(P+id);function simulateRealClick(el){return new Promise(resolve=>{const r=el.getBoundingClientRect();const x=r.left+r.width*(0.3+Math.random()*0.4);const y=r.top+r.height*(0.3+Math.random()*0.4);const c={view:window,bubbles:true,cancelable:true,clientX:x,clientY:y,screenX:x+window.screenX,screenY:y+window.screenY};el
@dvygolov
dvygolov / fbBlockedUsersManager.js
Last active May 8, 2026 10:28
This script can import/export blocked users to/from your Meta's Fan Pages. Run it in browser's console in Ads Manager.
class FileHelper {
readTextFile(file) {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = () => resolve(reader.result);
reader.onerror = () => reject("Error reading file");
reader.readAsText(file);
});
}
@dvygolov
dvygolov / clmnPresetsManager.js
Last active May 8, 2026 10:37
Script to manage column presets of Ads Manager: import/export columns
// ============================================
// Configuration
// ============================================
const Config = {
VERSION: "2026.03.16",
API_VERSION: "v23.0",
API_URL: "https://adsmanager-graph.facebook.com/v23.0/"
};
// ============================================
@dvygolov
dvygolov / autorulesManager.js
Last active May 8, 2026 10:45
Script for import/export Facebook Ads Autorules with ability to bulk switch rules on/off
const Config = {
VERSION: "2026.04.07",
BATCH_SIZE: 40,
BATCH_DELAY_MS: 600,
ACCOUNT_DELAY_MS: 1000,
DELETE_DELAY_MS: 300,
API_VERSION: "v23.0",
API_URL: "https://adsmanager-graph.facebook.com/v23.0/"
};
@dvygolov
dvygolov / dolphincloudadfix.js
Created April 9, 2025 10:42
removes unnecessary text from ad section in Dolphin Cloud: https://yellowweb.top/dolphincloud
// 1. Заменяем лишние div на иконку с тултипом
document.querySelectorAll(
'.v-data-table__wrapper table tbody tr td:nth-child(3) > div:first-child > div:nth-child(2)'
).forEach(originalDiv => {
const content = originalDiv.innerHTML;
const tooltipWrapper = document.createElement('span');
tooltipWrapper.style.position = 'relative';
tooltipWrapper.style.cursor = 'pointer';
tooltipWrapper.style.display = 'inline-block';