. Free, browser-only.'},zh:{name:'追踪像素代码生成器',desc:'一键生成 Facebook Pixel、Google Ads 转化、LinkedIn Insight Tag、TikTok Pixel、Pinterest Tag 与 Twitter (X) Pixel 的安装代码。输入像素 ID,复制并粘贴到
前。免费,浏览器本地运行。'}},
{id:'text-to-emoji',cat:'text',icon:'😄',path:'/text/text-to-emoji.html',en:{name:'Text to Emoji Translator',desc:'Translate words and phrases into emoji — perfect for fun social captions, chat messages and text slang. 150+ keywords, click to toggle, no signup.'},zh:{name:'文字转 Emoji 翻译器',desc:'将文字和短语自动翻译为 emoji,适合有趣的社交动态、聊天消息和文字梗。150+ 关键词,点击即可切换,无需注册。'}},
{id:'sitemap-comparison',cat:'seo',icon:'🆚',path:'/seo/sitemap-comparison.html',en:{name:'Sitemap Comparison Tool',desc:'Diff two XML sitemaps and surface added, removed, modified and unchanged URLs. Use for SEO launches, content migrations and staging-vs-prod audits. Detail view of priority and lastmod changes. Browser-only.'},zh:{name:'站点地图对比工具',desc:'对比两个 XML 站点地图,找出新增、删除、修改和未变更的 URL。适用于 SEO 发布、内容迁移和 staging-vs-prod 审计。可查看 priority 和 lastmod 详情变化。100% 浏览器本地运行。'}},
{id:'random-animal-generator',cat:'fun',icon:'🦁',path:'/fun/random-animal-generator.html',en:{name:'Random Animal Generator',desc:'Discover a random animal from around the world. Browse 80+ animals with emoji, fun facts, scientific names and habitats. Perfect for kids, classrooms and trivia. Free, browser-only, no signup.'},zh:{name:'随机动物生成器',desc:'探索世界各地的随机动物。浏览 80+ 种动物,含 emoji、有趣事实、学名和栖息地。适合孩子、课堂和趣味问答。免费、浏览器本地运行。'}},
{id:'random-joke-generator',cat:'fun',icon:'😂',path:'/fun/random-joke-generator.html',en:{name:'Random Joke Generator',desc:'Get a random joke instantly — dad jokes, puns, knock-knock jokes, one-liners and family-friendly humor. 100+ jokes across 6 categories. Free, browser-only, no signup.'},zh:{name:'随机笑话生成器',desc:'立即获取随机笑话 — 老爸笑话、双关、敲门笑话、单口相声和家庭友好幽默。100+ 条笑话覆盖 6 个分类。免费、浏览器本地运行。'}},
{id:'random-fact-generator',cat:'fun',icon:'💡',path:'/fun/random-fact-generator.html',en:{name:'Random Fact Generator',desc:'Discover random interesting facts — science, history, animals, space, human body and food trivia. 120+ facts across 6 categories. Free, browser-only, no signup.'},zh:{name:'随机冷知识生成器',desc:'发现有趣的随机事实 — 科学、历史、动物、太空、人体和食物趣味。120+ 条事实覆盖 6 个分类。免费、浏览器本地运行。'}},
{id:'random-emoji',cat:'fun',icon:'😄',path:'/fun/random-emoji.html',en:{name:'Random Emoji Generator',desc:'Generate random emojis by category — smileys, animals, food, travel, objects, symbols and flags. 500+ curated emojis with names. Click to copy or share. Free, browser-only, no signup.'},zh:{name:'随机 Emoji 生成器',desc:'按分类生成随机 emoji — 笑脸、动物、食物、旅行、物品、符号和旗帜。500+ 个精选 emoji,带名称。点击复制或分享。免费、浏览器本地运行。'}},
{id:'random-recipe',cat:'fun',icon:'🍳',path:'/fun/random-recipe.html',en:{name:'Random Recipe Generator',desc:'Get random recipe ideas for breakfast, lunch, dinner or dessert. 100+ recipes across 7 categories — quick meals, vegetarian, comfort food and more. Free, browser-only, no signup.'},zh:{name:'随机菜谱生成器',desc:'获取随机菜谱灵感 — 早餐、午餐、晚餐或甜点。100+ 道菜谱覆盖 7 个分类 — 快手菜、素食、家常菜等。免费、浏览器本地运行。'}},
// Batch 304 - time and certificate of deposit calculators (2026-07-18)
{id:'time-duration-calculator',cat:'calc',icon:'⌛',path:'/calc/time-duration-calculator.html',en:{name:'Time Duration Calculator',desc:'Calculate exact elapsed time between two local date-times. See total days, hours, minutes, seconds, and a calendar component breakdown.'},zh:{name:'时间间隔计算器',desc:'计算两个本地日期时间之间的精确经过时间,显示总天数、小时、分钟、秒数和日历组成。'}},
{id:'hours-from-now',cat:'calc',icon:'⏰',path:'/calc/hours-from-now.html',en:{name:'Hours From Now Calculator',desc:'Add or subtract hours, minutes, days, or weeks from now or a custom local date-time. Live results handle negative values and daylight saving time.'},zh:{name:'几小时后计算器',desc:'从现在或自定义本地日期时间加减小时、分钟、天或周。实时处理负数和夏令时。'}},
{id:'cd-calculator',cat:'calc',icon:'🏦',path:'/calc/cd-calculator.html',en:{name:'CD Calculator',desc:'Estimate certificate of deposit maturity balance, contributions, interest, after-tax interest, inflation-adjusted value, and a month-by-month schedule.'},zh:{name:'CD 存单计算器',desc:'估算定期存单的到期余额、总投入、利息、税后利息、通胀调整后价值和逐月明细。'}},
{id:'auto-loan-calculator',cat:'calc',icon:'🚗',path:'/calc/auto-loan-calculator.html',en:{name:'Auto Loan Calculator',desc:'Estimate your monthly car loan payment, total interest, total cost and full amortization schedule — including down payment, trade-in, sales tax and APR.'},zh:{name:'汽车贷款计算器',desc:'估算每月车贷还款、总利息、总还款额和完整摊销表 — 含首付、置换、销售税和 APR。'}},
{id:'salary-after-tax-calculator',cat:'calc',icon:'🪙',path:'/calc/salary-after-tax-calculator.html',en:{name:'Take-Home Pay Calculator',desc:'Estimate your net take-home pay after federal and state income tax, FICA, 401(k), health insurance and other pre-tax deductions. Hourly or salary, all 50 US states.'},zh:{name:'税后工资计算器',desc:'估算扣除联邦和州所得税、FICA、401(k)、医疗保险和其他税前扣除后的税后实发工资。年薪或时薪,支持美国 50 州。'}},
{id:'ambient-sound-mixer',cat:'fun',icon:'🎚️',path:'/fun/ambient-sound-mixer.html',en:{name:'Ambient Sound Mixer',desc:'Mix white, pink, brown, fan, rain, ocean and wind sounds into a custom ambient soundscape. Volume per layer, sleep timer and presets for sleep, focus and relaxation.'},zh:{name:'环境音混合器',desc:'混合白噪声、粉噪声、褐噪声、风扇、雨声、海浪和风声,自定义睡眠 / 专注 / 放松的环境音。每层独立音量、睡眠定时和预设。'}},
{id:'severance-pay-calculator',cat:'calc',icon:'💼',path:'/calc/severance-pay-calculator.html',en:{name:'Severance Pay Calculator',desc:'Estimate your severance package based on years of service, weeks per year of tenure, salary, unused PTO and bonuses. Includes weekly payout and unemployment runway.'},zh:{name:'遣散费计算器',desc:'根据工作年限、每年补偿周数、工资、未休年假和奖金估算遣散费总额,并计算周薪与失业补助综合续航。'}},
{id:'promotion-raise-calculator',cat:'calc',icon:'📈',path:'/calc/promotion-raise-calculator.html',en:{name:'Raise & Promotion Calculator',desc:'Compare your current salary to a new offer — see gross increase, percent raise, post-tax monthly impact and new annual take-home pay.'},zh:{name:'加薪 / 晋升计算器',desc:'比较当前薪资与新 offer — 查看加薪总额、加薪比例、税后月收入变化和新年薪到手收入。'}},
{id:'resume-action-verbs-generator',cat:'text',icon:'⚡',path:'/text/resume-action-verbs-generator.html',en:{name:'Resume Action Verbs Generator',desc:'Browse 200+ powerful resume action verbs across 8 categories - leadership, communication, achievement, technical, analytical, creative, organizational and teamwork. Pick a category, shuffle and copy the perfect verb for your resume bullet. Free, no signup.'},zh:{name:'简历动作动词生成器',desc:'收录 200+ 强有力的简历动作动词,分为 8 大类别。选择分类、随机切换并复制最适合你简历要点的动词。免费、无需注册。'}},
{id:'job-description-generator',cat:'text',icon:'📋',path:'/text/job-description-generator.html',en:{name:'Job Description Generator',desc:'Generate clear, professional job descriptions for 30+ roles across engineering, marketing, sales, design, operations, customer support and finance. Pick a role, shuffle responsibilities and requirements, then customize. Free, no signup.'},zh:{name:'岗位描述生成器',desc:'为 30+ 岗位生成清晰、专业的职位描述,覆盖工程、市场、销售、设计、运营、客户支持和财务。选择角色、随机切换职责与要求,定制后使用。免费、无需注册。'}},
{id:'elevator-pitch-generator',cat:'text',icon:'🎤',path:'/text/elevator-pitch-generator.html',en:{name:'Elevator Pitch Generator',desc:'Generate a 30-second elevator pitch for your startup, product, project or personal brand. 7 audiences including startup, freelancer, job seeker, student, author and nonprofit. Shuffle hooks, value props and CTAs. Free, no signup.'},zh:{name:'电梯演讲生成器',desc:'为你的创业项目、产品、个人品牌生成 30 秒电梯演讲。7 大受众:创业、自由职业、求职者、学生、创作者、非营利等。随机切换开场、价值主张和行动号召。免费、无需注册。'}},
{id:'spin-the-bottle',cat:'fun',icon:'🍾',path:'/fun/spin-the-bottle.html',en:{name:'Spin the Bottle',desc:'Free online Spin the Bottle party game. Add players, customize truth or dare prompts, spin the animated bottle, play rounds. Browser-only, no signup.'},zh:{name:'在线转瓶子',desc:'添加玩家名字,选择真心话、大冒险或真心话大冒险模式,转动动画瓶子。适合派对、公路旅行和游戏之夜,无需注册。'}},
{id:'letter-of-recommendation-generator',cat:'text',icon:'📜',path:'/text/letter-of-recommendation-generator.html',en:{name:'Letter of Recommendation Generator',desc:'Write stronger recommendation letters in minutes. 50+ templates across manager, colleague, academic advisor, student, scholarship, character reference and graduate school. Shuffle tone and examples, customize placeholders. Free, no signup.'},zh:{name:'推荐信生成器',desc:'几分钟写出更有力的推荐信。50+ 模板覆盖上级、同事、学术导师、学生、奖学金、品格证明与研究生申请。随机切换语气与示例,定制占位符。免费、无需注册。'}},
{id:'cold-email-template-generator',cat:'text',icon:'📧',path:'/text/cold-email-template-generator.html',en:{name:'Cold Email Template Generator',desc:'Generate cold emails in under 5 minutes. 60+ B2B templates for sales, partnership, recruiting, PR, investor intro, customer reactivation, backlink, event and follow-up. Short copy (under 120 words), clear next step. Free, no signup.'},zh:{name:'冷邮件模板生成器',desc:'5 分钟内写出得体的冷邮件。60+ B2B 模板覆盖销售、合作、招聘、PR、投资者引荐、客户唤醒、外链、活动邀请与跟进。文案简练(每封不超过 120 词),单一清晰的下一步。免费、无需注册。'}},
{id:'virtual-piano-keyboard',cat:'fun',icon:'🎹',path:'/fun/virtual-piano.html',en:{name:'Virtual Piano Keyboard',desc:'Play a free virtual piano keyboard in your browser. Two full octaves with Web Audio synthesis, computer key and on-screen input, sustain pedal, record and replay. Switch waveforms (sine, triangle, square, sawtooth, soft piano). No download, no signup.'},zh:{name:'虚拟钢琴键盘',desc:'在浏览器中演奏的免费虚拟钢琴键盘。两八度琴键使用 Web Audio 合成,支持电脑键盘、屏幕点击和触屏,可切换音色(正弦、三角、方波、锯齿、柔和钢琴)、开启延音踏板、录制与回放。无需下载、无需注册。'}},
{id:'1099-tax-calculator',cat:'calc',icon:'🧾',path:'/calc/1099-tax-calculator.html',en:{name:'1099 Tax Calculator',desc:'Free 1099 tax calculator for freelancers and self-employed. Estimate self-employment tax (15.3%), federal income tax, QBI deduction (20%), state tax, quarterly estimated payments and net take-home pay. Uses 2024/2025 brackets.'},zh:{name:'1099 税计算器',desc:'为自由职业者和自雇人士提供的免费 1099 税计算器。估算自雇税(15.3%)、联邦所得税、QBI 抵扣(20%)、州税、季度预估税款和税后净收入。使用 2024/2025 税表。'}},
{id:'dmarc-record-generator',cat:'dev',icon:'🛡️',path:'/dev/dmarc-record-generator.html',en:{name:'DMARC Record Generator',desc:'Free DMARC, SPF and DKIM TXT record generator. Build valid email authentication DNS records with policy modes (none/quarantine/reject), reporting URIs, alignment modes, percentages and DKIM selectors. Copy and paste into your DNS provider.'},zh:{name:'DMARC 记录生成器',desc:'免费的 DMARC、SPF 和 DKIM TXT 记录生成器。构建有效的邮件认证 DNS 记录,含策略模式(none/quarantine/reject)、报告 URI、对齐模式、百分比和 DKIM 选择器。复制粘贴到您的 DNS 提供商。'}},
{id:'url-redirect-checker',cat:'dev',icon:'🔗',path:'/dev/url-redirect-checker.html',en:{name:'URL Redirect Checker',desc:'Trace the full HTTP redirect chain of any URL. See each hop with status code (301, 302, 307, 308), server header, location and timing. Detect redirect loops, long chains and slow hops. Browser-only, no signup.'},zh:{name:'URL 重定向检查器',desc:'追踪任意 URL 的完整 HTTP 重定向链。查看每个跳转的状态码(301、302、307、308)、服务器头、Location 和耗时。检测重定向循环、长链和慢跳转。'}},
{id:'business-loan-calculator',cat:'calc',icon:'🏢',path:'/calc/business-loan-calculator.html',en:{name:'Business Loan Calculator',desc:'Estimate business loan monthly payments, lender fees, extra-payment savings, payoff time and a full amortization schedule. Free, private and browser-only.'},zh:{name:'企业贷款计算器',desc:'估算企业贷款月供、贷款费用、额外还款节省、还清时间和完整摊还计划。免费、私密、浏览器本地运行。'}},
{id:'sba-loan-calculator',cat:'calc',icon:'🇺🇸',path:'/calc/sba-loan-calculator.html',en:{name:'SBA Loan Calculator — 7(a) & 504',desc:'Compare SBA 7(a) and 504 financing. Estimate payments, guarantee or CDC fees, borrower contribution, DSCR, interest and amortization.'},zh:{name:'SBA 贷款计算器 — 7(a) 与 504',desc:'比较 SBA 7(a) 和 504 融资,估算月供、担保费或 CDC 费用、借款人出资、DSCR、利息和摊还计划。'}},
{id:'commercial-loan-calculator',cat:'calc',icon:'🏬',path:'/calc/commercial-loan-calculator.html',en:{name:'Commercial Loan Calculator',desc:'Estimate commercial property loan payment, balloon balance, DSCR, lender fees, LTV, total interest and amortization schedule.'},zh:{name:'商业贷款计算器',desc:'估算商业物业贷款月供、气球尾款、DSCR、贷款费用、LTV、总利息和摊还计划。'}},
{id:'dscr-rental-property-calculator',cat:'calc',icon:'🏘️',path:'/calc/dscr-rental-property-calculator.html',en:{name:'DSCR Rental Property Calculator',desc:'Estimate rental-property NOI, debt service, DSCR, cap rate and the maximum loan supported by a target coverage ratio. Private and browser-only.'},zh:{name:'出租物业 DSCR 计算器',desc:'估算出租物业的 NOI、偿债额、DSCR、资本化率,以及目标覆盖率支持的最高贷款额。私密、浏览器本地运行。'}},
{id:'va-loan-calculator',cat:'calc',icon:'🇺🇸',path:'/calc/va-loan-calculator.html',en:{name:'VA Loan Calculator',desc:'Estimate VA loan payment, funding fee, financed loan amount, total interest and cash to close with adjustable assumptions. Browser-only.'},zh:{name:'VA 贷款计算器',desc:'使用可调假设估算 VA 贷款月供、资金费、融资后贷款额、总利息和结算现金。浏览器本地运行。'}},
{id:'rental-property-cash-flow-calculator',cat:'calc',icon:'💵',path:'/calc/rental-property-cash-flow-calculator.html',en:{name:'Rental Property Cash Flow Calculator',desc:'Estimate rental income, expenses, NOI, pre-tax cash flow, cap rate, cash-on-cash return and break-even occupancy.'},zh:{name:'出租物业现金流计算器',desc:'估算出租收入、费用、NOI、税前现金流、资本化率、现金回报率和盈亏平衡入住率。'}},
{id:'equipment-lease-vs-buy-calculator',cat:'calc',icon:'🏗️',path:'/calc/equipment-lease-vs-buy-calculator.html',en:{name:'Equipment Lease vs Buy Calculator',desc:'Compare equipment leasing and buying costs, including loan payments, maintenance, resale value and the estimated lower-cost option.'},zh:{name:'设备租赁与购买对比计算器',desc:'比较设备租赁与购买成本,包含贷款月供、维护费、转售价值和预计成本更低的方案。'}},
{id:'insurance-deductible-calculator',cat:'calc',icon:'🛡️',path:'/calc/insurance-deductible-calculator.html',en:{name:'Insurance Deductible Calculator',desc:'Compare low and high insurance deductibles using annual quotes, claim probability, premium savings and expected cost.'},zh:{name:'保险免赔额计算器',desc:'使用年度报价、理赔概率、保费节省和预期成本比较低免赔额与高免赔额。'}},
{id:'rent-increase-calculator',cat:'calc',icon:'🏠',path:'/calc/rent-increase-calculator.html',en:{name:'Rent Increase Calculator',desc:'Project future rent after percentage or fixed increases, including total housing cost and a year-by-year schedule.'},zh:{name:'房租上涨计算器',desc:'按百分比或固定金额预测未来房租,查看住房总成本和逐年明细。'}},
];
const lang = GZI18n.getLang();
const DISPLAY_TOOL_COUNT = '2,440';
const { t } = GZ;
// Add social category fallback if not in shared definitions
if (!GZ.CATEGORIES.find(c => c.id === 'social')) {
GZ.CATEGORIES.push({ id: 'social', icon: '💬', path: '/?cat=social' });
}
// Register social i18n keys if missing
if (!GZI18n._data.en.socialTools) {
GZI18n._data.en.socialTools = 'Social Media Tools';
GZI18n._data.zh.socialTools = '社交媒体工具';
GZI18n._data.en.socialToolsDesc = 'Generate chat mockups, social posts, thumbnails and shareable content for WhatsApp, iMessage, Instagram, Twitter and more.';
GZI18n._data.zh.socialToolsDesc = '为 WhatsApp、iMessage、Instagram、Twitter 等平台生成聊天截图、社交帖子、缩略图和分享内容。';
}
// Render page
document.getElementById('hero-title').textContent = lang === 'zh' ? '🛠️ 免费在线工具箱' : '🛠️ Free Online Toolbox';
document.getElementById('hero-sub').textContent = lang === 'zh' ? `${DISPLAY_TOOL_COUNT}+ 免费工具,无需注册,即开即用` : `${DISPLAY_TOOL_COUNT}+ free tools, no signup required`;
document.getElementById('tool-count').textContent = lang === 'zh' ? `✨ ${DISPLAY_TOOL_COUNT} 个工具` : `✨ ${DISPLAY_TOOL_COUNT} tools`;
document.getElementById('hero-more-link').textContent = lang === 'zh' ? '← 更多免费工具尽在 GameZipper.com →' : '← More free tools at GameZipper.com →';
document.querySelector('.gz-search input').placeholder = t('search');
// Render header
GZ.renderHeader(null);
// Render filters
const cats = [
{id:'all', en:'All', zh:'All'},
...GZ.CATEGORIES.map(c => ({id:c.id, en:t(c.id+'Tools'), zh:t(c.id+'Tools')}))
];
document.getElementById('filters').innerHTML = cats.map(c => {
const icon = c.id==='all' ? '' : (GZ.CATEGORIES.find(x=>x.id===c.id)?.icon+' '||'');
const label = lang==='zh' ? c.zh : c.en;
const cls = c.id==='all' ? ' active' : '';
return ``;
}).join('');
let currentFilter = 'all';
// Auto-filter from URL param (e.g. ?cat=fun)
(function() {
const params = new URLSearchParams(location.search);
const cat = params.get('cat');
if (cat && cats.some(c => c.id === cat)) {
currentFilter = cat;
document.querySelectorAll('.gz-filter-btn').forEach(b => b.classList.remove('active'));
const activeBtn = document.querySelector(`.gz-filter-btn[onclick="setFilter('${cat}',this)"]`);
if (activeBtn) activeBtn.classList.add('active');
}
})();
function setFilter(cat, btn) {
currentFilter = cat;
document.querySelectorAll('.gz-filter-btn').forEach(b => b.classList.remove('active'));
if (btn) btn.classList.add('active');
renderTools();
}
function filterTools() {
renderTools();
}
function renderTools() {
const q = document.getElementById('searchInput').value.toLowerCase();
const sections = document.getElementById('tool-sections');
const filtered = TOOLS.filter(tool => {
if (currentFilter !== 'all' && tool.cat !== currentFilter) return false;
if (q) {
const info = tool[lang] || tool.en;
return info.name.toLowerCase().includes(q) || info.desc.toLowerCase().includes(q) || tool.id.includes(q);
}
return true;
});
// Group by category
const groups = {};
filtered.forEach(tool => {
if (!groups[tool.cat]) groups[tool.cat] = [];
groups[tool.cat].push(tool);
});
const catOrder = ['text','dev','color','image','css','convert','seo','social','calc','fun','fortune'];
let html = '';
for (const cat of catOrder) {
if (!groups[cat]) continue;
const catInfo = GZ.CATEGORIES.find(c => c.id === cat);
html += `
${catInfo?.icon||''} ${t(cat+'Tools')}
`;
html += '
';
for (const tool of groups[cat]) {
const info = tool[lang] || tool.en;
html += `${tool.icon}