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
| // ============================================================================= | |
| // 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 |
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
| 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() |
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
| import { Pipe, Objects, Unions, Booleans, Tuples, _, ComposeLeft, Call, Fn, PartialApply } from "hotscript"; | |
| const example = { | |
| a: { | |
| b: 'red', | |
| c: 'green', | |
| }, | |
| d: { | |
| e: { | |
| f: { |
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
| # cloudflared tunnel --url [URL TO REDIRECT] run [TUNNEL NAME] | |
| # ex | |
| cloudflared tunnel --url http://localhost:3000 run trampo |
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
| let events = {}; | |
| const EventEmitter = { | |
| subscribe: (event, id, callback) => { | |
| if (!events[event]) { | |
| events[event] = [] | |
| } | |
| events = {...events, [event]: [...(events[event] || []), {id, callback}]} | |
| }, |