.btn-row{display:flex;gap:8px;margin-top:10px}
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
This userscript adds a floating Position Inspector panel to any webpage that detects and lists all CSS positioned elements (position: relative, absolute, fixed, sticky, and static) used across the page. It identifies elements with non-static position values and displays their position type, offset values (top, right, bottom, left), z-index, and whether they create a stacking context. The panel shows which elements are positioned relative to their containing blocks and helps debug layering issues. A search filter allows you to find specific positioned elements by element or property value. You can copy the complete position CSS for any element to the clipboard. An inspector mode lets you click any element on the page to view its position and offset properties instantly. All panel interactions use the BGPanel component, which automatically persists per-site position and collapse state.
WHERE IT RUNS
The script runs on all websites (*://*/*) through the BotGentz extension. It does not require any special permissions beyond those already granted by the extension. It works in any modern browser that supports the BotGentz userscript environment. The panel appears automatically on every page load, ready to assist with position debugging and layout analysis.
HOW TO USE
The panel appears as a floating bubble in the bottom-right corner of your browser window. Click the bubble to expand the panel. The "Position List" section displays all positioned elements, showing the element selector, position type, z-index, and offset values. Elements that create stacking contexts are marked with a star (⭐). Use the search input to filter by element selector or property value. Click any entry in the list to highlight the element on the page and view its detailed position properties in the "Position Details" section. The details panel shows the position type and all offset and z-index properties. Click the "Copy" button on any entry to copy the complete position CSS for that element. Click "Inspect Element" to enter inspector mode—then click any element on the page to view its position properties. Click "Clear Highlight" to remove the outline from the selected element.
COMPUTED POSITION EXTRACTION WITH STACKING CONTEXT AND OFFSET DETECTION
The script iterates through every visible element on the page using document.querySelectorAll('*'), retrieving computed styles via window.getComputedStyle(). It detects the position value (relative, absolute, fixed, sticky, or static) and extracts offset values (top, right, bottom, left). Elements with position: static but with non-auto z-index are also included. The script detects stacking contexts using CSS rules: elements with position other than static and z-index not auto, position: fixed or sticky, transform or perspective not none, isolation: isolate, mix-blend-mode other than normal, or opacity less than 1. These elements are marked with a star icon. The inspector mode adds mouseover highlighting and click detection, allowing rapid inspection of elements directly in the page layout. The copy function generates a complete CSS block with all position properties formatted for immediate use in stylesheets.
THE PANEL
The panel is built using the BGPanel component, which provides a consistent, accessible interface across all BotGentz tools. It supports drag-to-reposition via the header, collapse on click, and stores the panel's position and state per site using GM_setValue. The panel includes a close button (✕) to dismiss it temporarily—the panel reappears on next page load. The settings section includes a dropdown for selecting panel position (bottom-right, top-right, bottom-left, top-left), which is saved globally. The panel has a fixed width of 380px and a maximum height of 80vh, with scrolling for content that overflows. The position list has a maximum height of 250px and the details section has a maximum height of 180px with internal scrolling.
PLEASE NOTE
Requires the free BotGentz extension to run. The script scans all visible elements on the page—on very large pages, this may take a moment. The script does not collect, store, or transmit any personal data. All position data is read from the page and displayed locally. The copy function copies computed position properties as they appear. Inspector mode uses mouseover and click events that may interfere with some page interactions—disable inspector mode when not needed. The highlight outline may overlap with existing element styles. Elements with position:static but with non-auto z-index are included for completeness as they may affect stacking order in some contexts.