Page Source Word Search
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Page Source Word Search lets you search the complete HTML source of the current page for any word or phrase. The tool scans the raw source code line by line, displaying results with line numbers, the matching line of code, and surrounding context. Each match is highlighted in the preview for easy visual scanning. You can search the raw HTML source or the rendered text content of the page. The search supports case-sensitive matching and whole-word-only search to help you find exactly what you're looking for. The total number of matches and lines containing matches are displayed, and you can copy all results to your clipboard.
WHERE IT RUNS
The extension runs entirely within your browser's local environment using the BotGentz framework. All source code retrieval, search, and rendering occur on your machine without any network requests. No page content, search queries, or user activity is ever transmitted, uploaded, or stored externally. The tool works on any website and respects the browser's security boundaries, operating within the isolated extension sandbox. The HTML source is read directly from the DOM.
HOW TO USE
Click the extension toolbar icon to open the Page Source Word Search panel. Type your search term into the search box—results appear instantly as you type. Each result shows the line number, the matching line of code with highlighted matches, and a preview of the surrounding context. Use the search mode dropdown to choose between searching the "HTML Source" (raw code) or "Rendered Text" (visible page text). Toggle "Case sensitive" to match exact capitalization. Toggle "Whole word only" to find only complete words. Adjust "Context lines" to control how many surrounding lines are shown (0-5). Adjust "Max results" to limit the number of matches displayed (10-500). Change the highlight color to suit your preference. Click "Copy Results" to export all matched lines with their line numbers to your clipboard.
THE SOURCE SEARCH ENGINE — WHY IT WORKS
Most search tools only search the rendered text content of a page, missing important information hidden in attributes, comments, and script tags. This tool performs a direct search of the raw HTML source by retrieving document.documentElement.outerHTML, which contains the complete unprocessed source including tags, attributes, and comments. The search engine splits the source into individual lines and applies a regular expression search using the user's query. For whole-word matching, the regex pattern uses \b word boundaries to ensure only complete words are matched. For case-sensitive search, the regex flags are adjusted accordingly. When searching rendered text, the tool uses document.body.textContent to extract visible text, then displays results with calculated line numbers. The highlighting engine splits each matching line into parts and wraps matched segments in styled spans with the user's chosen highlight color. This dual-mode approach gives you the flexibility to search either the underlying code or the user-facing content.
THE PANEL
The Page Source Word Search panel is fully draggable by its title bar and remembers its position on screen per website. It snaps to the edges of your browser window for clean alignment. Collapse the panel to a compact icon strip using the minimize button, restoring it with a single click. Resize the panel by dragging any edge or corner; the search results and controls adjust proportionally. Press the Escape key to close the panel instantly. The panel maintains independent state for each browser tab, allowing you to search source code in multiple tabs simultaneously.
PLEASE NOTE
This extension requires the free BotGentz extension framework to be installed and enabled. Searching very large pages with thousands of lines may take a moment; the tool limits results to the configured maximum to maintain performance. The raw HTML source includes everything in the document, including dynamically generated content. All search queries and source data are processed locally and are never transmitted, logged, or shared. The extension requests no network permissions and functions entirely offline. The source code is fully auditable and available for review.