Jump to content

Javascript - CSS (Downloads)

Sub Category  

Stylus — Userstyles Manager

What it does: Stylus lets you restyle websites using custom CSS (Cascading Style Sheets). It's essentially a way to apply custom visual themes to any website you visit.

How it works:

  1. Install a "style" — You browse a gallery like userstyles.world, Greasyfork (CSS section), or the USO archive. When you find a theme you like (e.g., "dark mode for Reddit"), you click install and Stylus applies it automatically whenever you visit that site.

  2. Write your own CSS — Stylus has a built-in editor with syntax highlighting, linting (Stylelint/CSSLint), and supports CSS, LESS, or Stylus syntax. You can target specific URLs or use URL patterns (e.g., *://*.reddit.com/*).

  3. Advanced customization — Some styles support UserCSS variables, letting you tweak colors, fonts, and sizes through a simple config panel without editing code.

  4. No tracking — Stylus was created as a privacy-respecting fork of the original Stylish extension, which was sold to an analytics company. Stylus contains zero analytics or tracking.

  5. Live reload — You can edit CSS in an external IDE and have Stylus pick up changes instantly via its live reload feature.


Tampermonkey — Userscript Manager

What it does: Tampermonkey runs JavaScript userscripts — small programs that modify web pages' behavior, not just appearance.

How it works:

  1. Install a userscript — You find scripts on sites like Greasyfork or OpenUserJS. These are JavaScript files with metadata headers (the // ==UserScript== block) that tell Tampermonkey which URLs to run on.

  2. A userscript can do anything JavaScript can — Unlike Stylus which is limited to CSS styling, Tampermonkey scripts can:

    • Add, remove, or modify HTML elements and page content
    • Intercept and modify network requests (XHR/fetch)
    • Store data with GM_setValue/GM_getValue
    • Automate repetitive tasks (form filling, button clicking)
    • Download files, scrape data, or add keyboard shortcuts
    • Bypass paywalls or remove ads (depending on the script)
  3. Example metadata block — Every script starts with something like:

    javascript
     
    // ==UserScript==
    // @name         Example Script
    // @namespace    http://example.com/
    // @match        https://www.example.com/*
    // @grant        GM_setValue
    // ==/UserScript==
    

    This tells Tampermonkey: "Run this script on every page matching that URL pattern."

  4. Built-in editor — Tampermonkey comes with a CodeMirror-based editor with ESLint syntax checking, and supports syncing scripts across browsers via cloud storage.


Key Difference at a Glance

 
  Stylus Tampermonkey
What it runs CSS (stylesheets) JavaScript (full programs)
What it can do Change colors, layouts, fonts, hide elements Add/remove elements, intercept requests, automate actions, store data
Scope Visual only Full DOM and browser API access
Security Lower risk — CSS injection only Higher risk — scripts have broad access (always review what you install)
Script sources userstyles.world, Greasyfork (CSS), USO archive Greasyfork, OpenUserJS, direct URLs

Both extensions are essentially user-injected middleware that sits between the website's original code and your browser rendering engine — Stylus at the CSS layer, Tampermonkey at the JavaScript layer.

No files in this category yet.

×
×
  • Create New...