PestPac Paste New Customer Info

Paste/Drop JSON -> fill PestPac form. Mapping editor (source only, branch renamed), picker overlay selects underlying elements, no persistent panel.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Jamie Cruz
今日安裝
0
安裝總數
3
評價
0 0 0
版本
2.18
建立日期
2025-10-03
更新日期
2025-10-21
尺寸
38.6 KB
授權條款
MIT
腳本執行於

Paste JSON → PestPac Form Helper

A small Tampermonkey/Greasemonkey userscript that pastes JSON from your clipboard into PestPac’s Add Location form. It’s designed to be used with a separate scraper or tool that copies a contact/location object as JSON to the clipboard.

Purpose

Automates filling PestPac fields from clipboard JSON so data entry is faster and less error-prone. Handles source token mapping, branch selection from state, ZIP-last behavior (to allow site autofill), and places the cursor in the appropriate field for manual follow-up (mobile or notes).

Key features

  • Paste JSON into PestPac fields via a single “Paste JSON” button.
  • Maps short source codes (H/HA → HA / ANGI, L → LIZARD, WEB → WEBFORM) to the UI tokens and clicks the autocomplete item when available.
  • Applies ZIP last with brief delays so site ZIP autofill can populate state/city before branch logic runs.
  • After ZIP autofill, reads the state (without overwriting it), copies it to the clipboard, and selects the correct Branch (DC/MD → Maryland, VA → Tidewater or Virginia based on tidewater flag).
  • If phone/mobile is missing in the JSON, final focus is placed on the mobile (or phone) field; otherwise focus lands in the comment/notes box for manual entry.
  • Lightweight mapping editor to point fields to selectors if needed.

How to use

  1. Use your external tool to copy a location/contact JSON object to the clipboard.
  2. Open PestPac Add Location, click the script's “Paste JSON” button, and the form will be filled automatically.
  3. Confirm values, add manual notes if needed, then save in PestPac.

Notes & permissions

  • This script reads and writes the clipboard (to paste JSON and optionally copy the detected state); your browser may prompt for permission.
  • It interacts with page elements (inputs, selects, autocomplete menus) to simulate normal user input; it does not send your data elsewhere.
  • Keep the mapping editor updated if the PestPac DOM changes.

Designed to be paired with a separate scraper/extension that prepares the JSON and copies it to the clipboard. Works best when mappings are configured for your PestPac instance.