Adds a Hide Comments or Show Comments link on each post; this feature is sticky (the hidden or shown state is recorded in the browser's local storage).
JavaScript Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
alt
.gitignore
README.md
_build.rb
googleplusplus_hide_comments.user.js

README.md

GooglePlusPlus Hide Comments

General Information

The googleplusplus_hide_comments userscript for Google Plus (aka Google+ aka G+) adds a Hide Comments or Show Comments link on each post; this feature is sticky (the hidden or shown state is recorded in the browser's local storage).

Install: http://go.wittman.org/aua5

Discussion: https://plus.google.com/111309687695898923996/posts/FD9URaSoFnk

There is also an alternate version that hides all comments by default (see below under the Alternate Version section).

So far, this userscript / extension was tested on Google Chrome 12 and Firefox 5 with Greasemonkey (download) and should also work in Safari with the plugin NinjaKit (download).

Feedback is welcome.

Alternate Versions

Alt version "hidden" hides all comments by default (as opposed to comments being visible by default using the standard version). The standard and alt versions work exactly the same in all other ways.

Install Alternate Version "hidden" - Hide all comments by default": http://go.wittman.org/aydn

Installing more than one version: The scripts are named, namespaced and versioned exactly the same so installing one over-writes a previous primary or alt version. In the description will be an ALTERNATE VERSION clause only in an alt script.

Note to Developers: The _build.rb build script creates alternate script versions. At this time there is one currently supported alt version, "hidden".

Deprecated Alternate Versions

Alt version "top" is deprecated after reworking the script to fix some deficiencies and accommodate the new hidden alt version.

Though deprecated, the "top" script is still available at the same short/redirect URL:

***Install Alternate Version "top" - Places Hide Comments link on top"***: http://go.wittman.org/auzv

Change Log

Version 0.2.8

  • Critical update needed to work with current state of Google+. Auto-healing (updating for CSS map) implemented. FIX

Version 0.2.3

  • Changes made by Google recently introduced breaking DOM tree changes. Critical update needed. FIX

Version 0.2.2

  • Changes made today by Google introduced breaking DOM tree changes. All modules needed updating and are now fixed. FIX

Version 0.2.1

  • Hide emergent comments now and updates the Recent and Old comment counts in real-time. NEW

Version 0.1.5

  • Extension is functionally, language independent (not dependant on English present in the page). NEW

Version 0.1.4

  • Fixed critical bug that cause hiding of comments to flicker. FIX
  • Added Recent and Old Comment count display. NEW

Version 0.1.3

  • Show/Hide link sometimes not working on first click resolved (enclosing div click event was interfering). FIXED.
  • Alt version "top" deprecated. REMOVED
  • Alt version "hidden" added. Using this script version hides comments by default. NEW
  • DOM selector for comments improved. FIXED