Navigation: Jump to content areas:


Pro Quality. Fan Perspective.
Login-facebook
Around SBN: Chauncey Billups Injures Achilles Tendon

Hide any Comment on JapersRink


Humans are forgetful. Sometimes we post a great picture, but forget to post a subject line! Now we can't hide that picture! Argh! But worst of all, now people are going to yell at you.

NOT ANYMORE

Star-divide

This Greasemonkey script uses SBNation's toggle code (like when you click a subject line) to toggle the visibility of a comment.  The only problem with SBNation's method? No subject line, no toggle.

PROBLEM SOLVED. This script adds a "Toggle" link next to the rec count of every comment.

All you need is Firefox and Greasemonkey.  If you already use zephyr's ignore/favorite script, you're all set. (And yes, it's compatible). For very specific instructions regarding Greasemonkey, please see zephyr's fanpost

Step 1: Get Firefox

Step 2: Get Greasemonkey

Step 3: Get the script (Click the Install button)

I just coded this today, but I've tested it pretty thoroughly.  If you run into any issues please let me know. I take no responsibility for you setting your computer on fire. This script, like any other script, may slow down your browser (but I've not experienced it). The "Toggle" link will not appear until the page is completely loaded.  New posts that appear live will get the "Toggle" link within 10 seconds (adjustable.. see below).

In case you want to disable the script for whatever reason: go to Tools -> Greasemonkey -> Manage User Scripts -> Select the script and deselect the "Enabled" box at the bottom left of the window.

Advanced users: There are two variables you can change within the code. The first "refreshspeed" adjusts how often to check for new posts to toggle (10 seconds is default) and the other is "word" which just changes what text is used for the link, default is "Toggle."

Visual example below.  Obviously this is mostly useful for picture posts, but you get the idea:

BEFORE

AFTER

If this FanPost is written by someone other than one of the blog's editors, the opinions expressed in it do not necessarily reflect those of this blog or SB Nation.

Comment 15 comments  |  6 recs  | 

Do you like this story?

Comments

Display:

:( I see how it is. Thanks TFG D’:

If you pay peanuts, you get monkeys.
Founding member of the Tyler Sloan Fan Club

by Ovechwin on Mar 16, 2010 7:02 PM EDT reply actions  

Aw, you were just a victim of bad timing. :(

by TFG on Mar 16, 2010 7:03 PM EDT up reply actions  

No way, this is totally personal! How dare you hide my comments! They’re all gold I tell you! GOLD!

If you pay peanuts, you get monkeys.
Founding member of the Tyler Sloan Fan Club

by Ovechwin on Mar 16, 2010 7:05 PM EDT up reply actions  

THIS. JUST. GOT. PERSONAL.

by TFG on Mar 16, 2010 7:06 PM EDT up reply actions  

YOU’RE GOING DOWN PUNK!

If you pay peanuts, you get monkeys.
Founding member of the Tyler Sloan Fan Club

by Ovechwin on Mar 16, 2010 7:08 PM EDT up reply actions  

Hid’n

I should have saved my old signature. Oh well!

by Whiter Mage on Mar 18, 2010 5:53 AM EDT up reply actions  

A FTF'er here.

Let me say, awesome! This script will be extremely useful. Thanks!

"I think people were ready to watch some hockey. We took up enough of everyone’s time."
-Jody Shelley after 87 seconds of hockey fighting against Cam Janssen

by idunno723 on Mar 16, 2010 7:37 PM EDT reply actions  

Enjoy. It can be adjusted for any sbnation site via Greasemonkey options.

by TFG on Mar 16, 2010 8:59 PM EDT up reply actions  

Does it work with new comments? Cause I coded something similar up a while ago but for some reason it doesn’t add the collapse button to new posts for some reason, never had the time to try and figure out why. You can email me if you dont want to muck up the thread discussing details (i’d email you but none listed).

↑ ↑ ↓ ↓ ← → ← → b a (select) start

by renstar on Mar 16, 2010 8:16 PM EDT reply actions  

It does. It basically cycles through the page every 10 seconds and checks for new posts.

by TFG on Mar 16, 2010 8:27 PM EDT up reply actions  

i love this stuff. i’m basically wed to my chrome at the moment, but i’ll be getting a new laptop soon (sans vista) and might give your script and zephyr’s script another run.

by Natty Bumppo on Mar 16, 2010 8:34 PM EDT reply actions  

Wow. If only I used Firefox and not Safari.

by DrinkingPartner on Mar 16, 2010 9:10 PM EDT reply actions  

Related Question

Does anyone know why, on one of my computers, new comments are shown in yellow so it’s easy to see the new comments, but on my other computer, all comments are always white?

by vzotsky on Mar 20, 2010 4:30 PM EDT reply actions  

Cookies issue perhaps?

by TFG on Mar 25, 2010 8:55 PM EDT up reply actions  

Comments For This Post Are Closed


User Tools

A Washington Capitals blog from the most powerful city in the world

FanPosts

Community blog posts and discussion.

Recent FanPosts

Img_2176_small
Why the Caps Should Trade for Jeff Carter
297235_228875923843877_197693266962143_697284_1857293148_n_small
Defending the Blue Line Needs Your Vote
Me_small
The NHL violated the CBA with the Ovechkin suspension
Hunter_small
On the positives of a suspension
Brutus-o-logo-toledo-mfjpg-29f8a7e84e5ea1c7_small
If we win the SE, who do you hope finishes at 6?
Rmu_vs_upj-029jan24-2010_small
Why I am against automatically "standing up for teammates" no matter what the circumstance
86-87_small
East-West Tracker
Semin_small
Is the 4-game win streak a sham?
Brock_small
Caps Players and "The Wire"
Rmu_vs_upj-029jan24-2010_small
Why I feel Mike Knuble is on the 4th line.

+ New FanPost All FanPosts >

FanShots

Quick hits of video, photos, quotes, chats, links and lists that you find around the web.

Recent FanShots

OT Hockey 2/6
From our good friends at CSN Washington
OT Hockey 2/4
Hockey4Hope
OT Hockey 2/3
Gill
John Erskine takes on his newest teammate
I just had to
DGB At Grantland on the All-Star Draft
Richard Zednik is a lucky man

+ New FanShot All FanShots >

Southeast Standings

GP W L OTL PT
Florida 51 24 16 11 59
Washington 52 27 21 4 58
Winnipeg 54 24 24 6 54
Tampa Bay 51 23 23 5 51
Carolina 54 20 25 9 49

(updated 2.7.2012 at 3:17 AM EST)

More great SB Nation Blogs

The Vault

Guidelines_medium Tweeters_medium Cap_side2_medium Draft_side2_medium Exchange_medium Cba_side2_medium Rules_side32_medium


Managing Editor

Jp_avatar_2_small J.P.

Associate Editors

Witt_small David Getz

At_kettler_small Becca H

Avatar_small Kareem E.

Murphy_lenin_beard_small Rob Parker

Ad34hihocwl0x15cmoubvuxdb-ehczsv8ag3k6qkujpodapllokm7crajbsbss2axbdk11fp2iur8jkoxdxmitirvrgrctxufboskj7xu4bwhtulx7o19cm_small Stephen Pepper

Captain-c_small EmilyB

Contributors

Ov_avatar_small tuvanhillbilly

Moderators

Hunter_small Bald Pollack

Gould_small Gould Old Days

79c29_small Knee high to a duck

4140101486_small Rink Moderators