Japers' Rink: An SB Nation Community

Navigation: Jump to content areas:


Pro Quality. Fan Perspective.
Login-facebook
Around SBN: Beyond The Boxscore's Week 17 MLB Power Rankings

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 authors, the opinions expressed in it do not necessarily reflect those of this blog or SB Nation.

5 recs  |  Comment 15 comments |

Story-email Email Printer Print

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
Start posting about the Capitals »

Join SB Nation and dive into communities focused on all your favorite teams.

Connect_with_facebook

FanPosts

Community blog posts and discussion.

Recent FanPosts

Self_portrait_avatar_small
Japers' vs. Broad Street Hockey Roller Showdown?
Bosfight_small
Concessions at the Verizon Center
Vm-hjalm_1963_small
The future looks bright for Mackan
Hobbes-sombrero_small
Aiden's Auction 7/31 To Help Local Infant Battling Cancer. Caps Items Up For Grabs *UPDATED
Crabby_appleton_small
Kovalchuk Contract - NHL Was Correct to Reject
Suck-it-canada_small
Star Wars: Return of the Dorks! rocks Verizon
Small
The Great Debate
Gould_small
In Praise Of Doug Yingst
Donkeyman_small
How good is Backstrom's contract now?
Vm-hjalm_1963_small
The Mackan Manifesto

+ New FanPost All FanPosts >

FanShots

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

Recent FanShots

Mom and a Pee Wee Hockey Fight
Aiden's Auction Caps Items Full List!
Mic'd up with Marcus Johansson
Tarik El-Bashir leaving the Capitals beat.
Félicitations and congrats to a radiant Mathieu Perreault and best buddy Francois Bouchard as they hoist the A Bout de Souffle Trophy.
Top 20 D in the NHL?
Rockin' the Red in front of El Capitolio in Havana.
Speculating about Winter Classic unis
Real American Hero John Carlson leading by example.
Have we already seen the Winter Classic jerseys? Discuss your thoughts on these jerseys and any other ideas on what the Caps might wear here.

+ New FanShot All FanShots >

Southeast Standings

GP W L OTL PT
Washington 82 54 15 13 121
Atlanta 82 35 34 13 83
Carolina 82 35 37 10 80
Tampa Bay 82 34 36 12 80
Florida 82 32 37 13 77

(updated 4.12.2010 at 9:21 AM EDT)

What We're Reading

More great SB Nation Blogs

SB Nation Local

Baseball

Football

Basketball

College

Hockey

Soccer

Combat Sports

Golf

General

The Vault

Guidelines_medium Tweeters_medium Cap_side2_medium Draft_side2_medium Exchange_medium Tracker_medium Cba_side2_medium Rules_side32_medium

SBNation.com Recent Stories

NEWARK NJ - JULY 20:  Ilya Kovalchuk of the New Jersey Devils poses for photographs following the media opportunity announcing his contract renewal at the Prudential Center on July 20 2010 in Newark New Jersey.  (Photo by Bruce Bennett/Getty Images) +9 updates

With Arbitrator And Hearing Date Set, Is Kovalchuk Contract Mess Set To End?

In this photo taken on Monday, July 19, 2010, Atlanta Thrashers forward Andrew Ladd, formerly of the Stanley Cup champion Chicago Blackhawks, spends his day with the Stanley Cup atop Crown Mountain, British Columbia., north of Vancouver. Ladd, a two-time Stanley Cup champion, was flown by helicopter to the top of Crown Mountain to watch the sunrise. (AP Photo/The Canadian Press,  Mark L. Johnson) +54 updates

NHL Free Agency: Andrew Ladd Avoids Arbitration, Signs With Thrashers

FILE - In this May 7, 2009, file photo, Milan Michalek, front left, of the Czech Republic attacks Swedish goalie Jonas Gustavsson, right, during a quarterfinal at the Ice Hockey World Championship in Bern, Switzerland. Sweden's Carl Gunnarsson is seen behind on left. The Toronto Maple Leafs landed Gustavsson with a one-year contract on Tuesday, July 7, 2009. The 24-year-old netminder, nicknamed "The Monster," was also heavily pursued by Dallas, San Jose and Colorado. (AP Photo/Anja Niedringhaus, File) link

Euro Hockey For Dummies: A Primer On How European Hockey Leagues Work

More from SBNation.com >


Managing Editor

Jp_avatar_2_small J.P.

Associate Editors

Witt_small David M. Getz

Cc_cartoon_small Becca H

Region_capture_small Stephen Pepper

Contributors

Ov_avatar_small tuvanhillbilly

Captain-c_small EmilyB

Moderators

Captainkangarooyr3_small Bald Pollack

Gould_small Gould Old Days

80px-cast_duck_small Knee high to a duck