K-Meleon
Cascading Style Sheets (CSS) control how a web page looks. Nearly all web designers use CSS. K-Meleon lets users change how a page looks on their own computer with user stylesheets. These do not affect the content (HTML) or the scripting, only the page's appearance. K-Meleon offers several ways to implement user stylesheets.
The simplest way to create a user stylesheet is:
The recommended way is to use K-Meleon's ad-blocking stylesheet. The only difference between adblock.css and userContent.css is the ad-blocking stylesheet can be toggled on and off. The steps are almost the same. To use the ad-blocking stylesheet:
To create a keyboard shortcut:
# Toggle user stylesheet. CTRL SHIFT U = macros(KM_ToggleAdblock)
There are several ways to create a button to toggle the ad-blocking stylesheet. The quickest way is to add it to the privacy bar:
!User CSS{ macros(KM_ToggleAdblock) Turn on the user stylesheet. check.png[0,32,32] }
Cookie warnings pop up on most websites today. Current regulations require websites to notify you of their use of cookies. If you block or clear cookies, websites will show you these popups every single time. Daniel Kladnik's extension I Don't Care About Cookies will hide most of these popups. You can use the extension's CSS without the extension itself:
To hide cookie warnings, just copy and paste the CSS rules from I Don't Care About Cookies into your stylesheet.
User stylesheets can hide some types of ads like banners. Most ads now use more complex scripting, so this technique makes more sense if you are browsing with javascript disabled or using an extension like NoScript to whitelist scripts. There are several online CSS files to hide ads. You can use any of these in K-Meleon, and even combine them into your adblock.css: