driver733 / shutup-css

CSS stylesheet to hide comments on web pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shutup.css

shutup.css is a CSS stylesheet (?) that can be applied to your web browser to hide comment sections on many popular websites. It is maintained by Steven Frank and Ricky Romero.

Why would I use it?

Some people feel that website comments are an annoyance or distraction from the main content. Some choose to use shutup.css to avoid being drawn into protracted arguments or avoid being exposed to statements that instill anger or sadness in them.

How do I install it on my computer?

The simplest way to use shutup.css on a conventional desktop or laptop computer is with a browser extension. Currently there are extensions for Safari, Chrome and Firefox on any operating system:

These official browser extensions automatically update themselves with the latest shutup.css stylesheet, and allow you to toggle comment blocking on and off with a toolbar button.

If you don't want a separate extension, you can instead use the Stylish plug-in, in combination with the raw shutup.css stylesheet (detailed below).

How do I install it on my iPhone or iPad?

You must have a 64-bit device running iOS 10 or later.

The following content blocker apps include shutup.css:

Do I have to use an extension or plug-in?

shutup.css can be used in any web browser that allows the loading of custom user stylesheets. Most popular browsers do for accessibility reasons; for example, to allow a visually impaired user to make text larger.

To use shutup.css as a custom user stylesheet:

  1. Download the auto-updating shutup-user-stylesheet.css file to your system.*
  2. In your browser's preferences, configure your browser to use shutup-user-stylesheet.css as a custom user stylesheet. In Safari for OS X, for example, it looks something like this:

Safari screenshot

After selecting "Other..." from the pop-up menu, select the shutup-user-stylesheet.css file you downloaded in step 1. This process will vary in other browsers, but the general idea is the same.

If you make changes to the stylesheet, or download a new version of shutup.css, you may need to quit and restart your browser to make sure it takes effect.

*If you don't trust a remotely-imported CSS file being applied to every web page you see, or if you want to make additional customizations, you can download the most recent non-updating version instead, but you will have to occasionally update this file manually.

How about a bookmarklet instead?

Another option is to install the shutup.css bookmarklet. The bookmarklet lives in your bookmarks toolbar, and applies the shutup.css stylesheet only when you click on it rather than automatically when pages load.

The bookmarklet can be installed by selecting the text below and dragging it into your browser's bookmark bar:

javascript:%21function%28%29%7Bvar%20e%3Ddocument.getElementsByTagName%28%22head%22%29%5B0%5D%2Ct%3Ddocument.createElement%28%22link%22%29%3Bt.type%3D%22text/css%22%2Ct.rel%3D%22stylesheet%22%2Ct.href%3Dlocation.protocol+%22//rickyromero.com/shutup/updates/shutup.css%22%2Ce.appendChild%28t%29%7D%28%29%3B

Original bookmark by Justin Ridgewell. HTTPS fix by Alexandre Vallières-Lagacé

Anything I should watch out for?

shutup.css works by looking for blocks of content on the page that are identified in the page's source code as "comments" or similar identifiers. The stylesheet instructs the web browser to simply not display these blocks.

This may affect some web applications in unexpected ways. I'm told it hides the "discussion" section of Bugzilla installations, for example. Remember to try disabling shutup.css if you think you might be missing important page content.

What about privacy?

Stylesheets like shutup.css contain no executable code, so they cannot track or spy on you.

If you are using the Chrome or Safari extensions or the iOS app, it will periodically contact Ricky's web server solely to check for an update and download it if one is available. When this happens, the date and time, your IP address, and "User-Agent" string (which identifies your web browser) are logged by the web server. These logs are kept temporarily for diagnostic purposes only. The Firefox version doesn't use this update feature, per AMO policy.

Can I contribute to shutup.css?

Sure! You can send me a pull request on GitHub. If you speak CSS but not Git, just email me your proposed changes.

How do I contact you?

You can contact me at stevenf@panic.com, or on Twitter as @stevenf.

About

CSS stylesheet to hide comments on web pages


Languages

Language:CSS 100.0%