Justified Text Toggle
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
Justified Text Toggle gives you instant control over text alignment on any webpage. With a single toggle switch, you can switch between left-aligned and fully justified text—where both the left and right edges of paragraphs are straight and flush. This creates a clean, newspaper-style appearance that many readers find more polished and professional. The script also provides fine-grained controls to improve justified text quality: auto-hyphenation breaks words at line ends to reduce awkward spacing, while letter-spacing and word-spacing adjustments help prevent "rivers"—those distracting white gaps that can appear in justified text. Content detection automatically identifies the main text areas on the page, applying justification only where it matters, or you can choose to apply it to all text. Perfect for long-form reading, academic articles, and any page where you want a cleaner, more organized look.
WHERE IT RUNS
This script runs on any webpage containing text content—news articles, blog posts, documentation, forums, and social media. It operates entirely within your browser tab, injecting CSS to control text rendering. The script cannot access other tabs, your browsing history, bookmarks, downloads, or any data outside the current page. All settings—including enabled state, apply-to-all-text preference, hyphenation mode, and spacing adjustments—are stored locally using GM_setValue and never transmitted anywhere.
HOW TO USE
After installing with the BotGentz extension, simply flip the toggle switch in the panel to enable or disable justified text. The page updates instantly, so you can see the effect in real-time. Use the hyphenation dropdown to control how words break at line ends—Auto lets the browser decide, Manual uses soft hyphens, and None prevents all hyphenation. Adjust letter spacing and word spacing with fine-grained controls to achieve the perfect text density. Toggle "Apply to All Text" to justify everything on the page, or leave it off to only justify the main content area. Enable "Per-site Override" to save different settings for each domain—for example, justified text on news sites but left-aligned on coding documentation. Click "Refresh Detection" to re-scan for content areas after dynamic page updates, and "Copy CSS" to export your current settings as CSS for use in your own stylesheets.
THE REAL MECHANISM
The script uses a content detection system to identify the main text areas on a page. It scans for semantic HTML tags (main, article) and common content classes (.content, .post, .entry, .article), then falls back to the largest text block on the page if none are found. When the toggle is enabled, the script generates a CSS rule applying text-align: justify to all paragraph and heading elements within the detected content containers. The hyphenation setting uses the CSS hyphens property with cross-browser prefixes (-webkit, -moz, -ms). Letter-spacing and word-spacing are applied as CSS properties with !important to override any conflicting page styles. For more even justification, the script also sets text-justify: inter-word and -webkit-text-justify: inter-word, which tells the browser to prioritize adjusting word spacing over letter spacing for a more natural appearance. The per-site override system stores a complete settings object per domain, allowing independent configurations across different websites. All CSS injection uses a single style element that is replaced on each update, preventing accumulation of redundant styles.
THE PANEL
The Justified Text Toggle panel is a BGPanel component that you can drag anywhere on your screen by its header. It snaps to the nearest edge when released, keeping your workspace organized. The panel collapses to a small bubble showing only the emoji icon when minimised—click to expand it again. You can resize the panel horizontally to see more of the controls. Press the Escape key to collapse the panel instantly. Your panel position and size are saved per-site.
PLEASE NOTE
This script requires the free BotGentz browser extension to function. Justified text quality depends on the font, language, and column width—narrow columns with long words may produce uneven spacing even with hyphenation enabled. The script uses the !important flag to override page styles, which may cause conflicts with other CSS rules. Not all fonts or browsers support hyphenation equally—some browsers may have limited hyphenation support. The script never reads or writes password fields, hidden inputs, or file inputs. It stores only your justified text preference, apply-to-all-text setting, hyphenation mode, letter spacing, word spacing, and per-site override preference locally. No page content, reading data, or personal information is ever collected, transmitted, or shared.