Skip to content

Instantly share code, notes, and snippets.

View JVictorV's full-sized avatar
😎
Coding

João Victor JVictorV

😎
Coding
View GitHub Profile
@JVictorV
JVictorV / zap-deleter.js
Created May 28, 2026 00:40
Simple script to bulk delete messages from whatsapp
// =============================================================================
// WhatsApp Web — bulk delete chats inactive ≥ DAYS days
//
// USAGE
// 1. Open https://web.whatsapp.com, wait until chats load.
// 2. DevTools (Cmd+Opt+I) → Console.
// 3. Edit DAYS / DRY_RUN / MAX_DELETES at the top, paste this whole file.
//
// HOW IT WORKS
// Reads chats from the page's internal model (WAWebChatCollection), filters
@JVictorV
JVictorV / script.js
Created December 4, 2024 20:26
Get all JIRA Issues
const parentsSelector =
'[data-testid="software-backlog.card-list.card.card-contents.card-container"]'
const cardKeySelector =
'[data-testid="software-backlog.card-list.card.card-contents.key"]'
const cardNameSelector =
'[data-testid="software-backlog.card-list.card.card-contents.summary"]'
const issues = new Map()
@JVictorV
JVictorV / flat-object-type-with-hotscript.ts
Last active July 9, 2023 18:22
flat object type with hotscript
import { Pipe, Objects, Unions, Booleans, Tuples, _, ComposeLeft, Call, Fn, PartialApply } from "hotscript";
const example = {
a: {
b: 'red',
c: 'green',
},
d: {
e: {
f: {
@JVictorV
JVictorV / tunnel.sh
Created March 2, 2022 00:33
Cloudflare tunnel
# cloudflared tunnel --url [URL TO REDIRECT] run [TUNNEL NAME]
# ex
cloudflared tunnel --url http://localhost:3000 run trampo
@JVictorV
JVictorV / eventEmitter.js
Created March 6, 2020 12:14
Event Emitter POC
let events = {};
const EventEmitter = {
subscribe: (event, id, callback) => {
if (!events[event]) {
events[event] = []
}
events = {...events, [event]: [...(events[event] || []), {id, callback}]}
},