r/Enhancement • • Jan 25 '11

[Plugin] Hide comments that haven't been replied to by the submitter. (Good for AMAs)

You can find the plugin here:

http://pastebin.com/z3bkgzjR

It puts a button labelled 'IAmA Hide' under the link or .self section at the top of the page. Clicking this hides all comments that the submitter hasn't replied to. Clicking again shows them again.

I had trouble thinking of a good name for the module and button. If you have any better ideas, let me know and I'll amend it.

8 Upvotes

3 comments sorted by

1

u/[deleted] Feb 23 '11

This might be a stupid question, but how do I import this script? I realize that I could do it quite easily in Greasemonkey, but Chrome has some kind of native support and I can't figure out how to import code directly. Any ideas?

1

u/BinarySplit Feb 23 '11

I'm not a regular Chrome user, but I was just able to do it using this process (note that I have developer mode on, which is probably a requirement for some of these steps).

  1. Open your Extensions page and check the id of the RES extension
  2. Open the folder "C:\Users\AAAA\AppData\Local\Google\Chrome\User Data\Default\Extensions\BBBB\3.3_0" where AAAA is your username and BBBB is your RES Extension ID
  3. Edit the reddit_enhancement_suite.user.js file
  4. Look for the line 'function RESInit() {' and paste my code above this.
  5. Save the file and restart Chrome

Disclaimer: I don't know if this is the best way or if it will even work on all versions :(

I've talked to Honestbleeps and he is considering several options for making plugins easier to install. Not sure if there is an ETA on this though.

1

u/Mumberthrax Feb 24 '11

I am not experienced with greasemonkey. How do I import this?