Skip to content

Instantly share code, notes, and snippets.

@al007ex
al007ex / usphonebookextractor.js
Last active February 4, 2026 14:22
usphonebook extraction script
(function() {
const clean = (text) => text ? text.replace(/\s+/g, ' ').trim() : 'N/A';
let fullName = document.querySelector('h1')?.innerText ||
document.querySelector('.name-title')?.innerText ||
document.title.split('|')[0] || '';
fullName = fullName.replace(/Age \d+/, '').trim();
let nameParts = fullName.split(' ');