Instructables

Who wants to test a new GM Script?

I've been working on this new Greasemonkey script that, IMO, is a lot better than the others.
It allows you to rate comments. Your ratings aren't for your own benefit alone: they're stored on a server where they are mashed together with everyone else's to create a full-blown rating system!

And, I'm using Google App Engine as a backend, so there won't be any server downtime!

For this, you actually have to do a little sign-up procedure. Go here, & put in your username. You'll then have to post a comment*, and then you can get the script. This makes sure that one user can't cheat the system by having 100 accounts.

From there, its pretty easy to use. Next to the username, 5 pseudo-boxes will appear. Use them as follows:
[!] - This comment answered the question in the topic (use sparingly)[+] - Positive vote[-] - Negative vote[x] - Remove your vote[?] - Help

If you run across any bugs, or have any suggestions, please let me know. I'll be glad to hear them!

From there, if I do fix a bug, here's the best part: you usually don't have to update anything! It will automagically use the newer version. In the future, I may require you to manually update, but there is a notifier in place, and yet it is very unlikely that it will be needed.

bumpus5 years ago
I don't like the new script.... The stars are off the page... :(
. Same here. I only see three stars on some posts. . Disabled all other scripts and it still happens.
zachninme (author)  NachoMahma5 years ago
I'll leave my post on the instructable ;-)
Derin5 years ago
how do i add the code into gm
zachninme (author)  Derin5 years ago
If you're just having trouble actually installing the script, what browser are you using? After clicking the link firefox should automatally install it if you have greasemonkey installed.
Derin zachninme5 years ago
it was probably because i looked at it when i didnt use gm,it works now
zachninme (author)  Derin5 years ago
If you haven't received the code yet, and you're having trouble with posting that random comment, make sure you used your instructables username when you signed up.
xACIDITYx5 years ago
Wow, Dude! This is freaking awesome!
zachninme (author)  xACIDITYx5 years ago
Glad you like it ;-) I'm working on building a stats page, so you can view best comments &c.
Uh-oh. I just upgraded and it wouldn't let me post comments. When I disabled Greasemonkey and reloaded the page it let me.
Derin xACIDITYx5 years ago
test
Derin Derin5 years ago
no it works
Yep, same problem here. I can't post comments with GM enabled.
Oh, I can post comments with most Gm scripts. But with this one it won't let me post comments. I can flag comments, but not reply or add comment. Hmm...
Yeah, I meant since I upgraded the script.
yeah, me too. Now, I have to disable the script. *sigh* Nice job, Zachninme. You totally dropped the ball. Actually, It was a pretty cool script... until I couldn't post.
(removed by author or community request)
Erm... That's what the <sarcasm> tags were for.
He did do a good job.
zachninme (author)  xACIDITYx5 years ago
(removed by author or community request)
M'Kay.
Heck. Yes. Please. _
zachninme (author)  V-Man7375 years ago
Its a lot trickier than I thought it would be. I didn't plan well at all.
Take all the time you need, this is a 1337 feature and deserves the careful programming of an awesome scripter such as yourself.
zachninme (author)  V-Man7375 years ago
Heh, thanks.
zachninme (author) 5 years ago
Due to the *ahem* recent popularity of the script, I think I can bump this so its a bit easier to find...

Mod me down if you think otherwise :P
ll.135 years ago
It changes comment text opacity. o.0
zachninme (author)  ll.135 years ago
Yes. I think its a good thing, no?
ll.13 zachninme5 years ago
mm, no, it makes it hard to read, on my laptop screen. :) so I hate it with a vengeance. :D
raider25 years ago
pls give the script
zachninme (author)  raider25 years ago
In order to get the script, you have to go through a little signup procedure here. This is important as each user has a customized script.
NachoMahma5 years ago
. The voting buttons don't show up for the top reply to a topic. :(
zachninme (author)  NachoMahma5 years ago
They do for me... If you add a comment, the rating buttons won't show up for your new comment, that is an acknowledged non-bug (you aren't allowed to vote for yourself anyway)
I find I am able to rate my own posts made prior to installing the script (or perhaps the significant factor is "before installing Greasemonkey").
LOL! Scratch that. I went to click on the + and my name blinked and the tags disappeared. Cute.
. hmmmm
  • Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
  • WinXP Pro SP3
.
. I have a few other GM scripts running. I'll see if disabling them helps.
zachninme (author)  NachoMahma5 years ago
I can haz screenshot?
. Check your dir on my FTP site.
V-Man7375 years ago
I've done it! I have the script. A bunch of text. Now what am I supposed to do with the text? I am under the impression that I should plug it into GM somehow, but 1) the instructions for installing GM are muddy and vague and 2) I have Firefox 3. Am I on the right track, at least? And what is missing in those lifehacker instructions?? Agh!
. If you get a bunch of text, you don't have GM properly installed. I'd try uninstalling and then re-installing.
lol... I should have just come out and said it... I don't have GM in the first place. I think my main problem is that the lifehacker instructions are a bit assuming. I enter a couple of boolean names into my Firefox Config list, and suddenly I have GM?
After a quick trip to the Mozilla Greasemonkey page, I figured out you simply ask Firefox to install its own plugin... Lawl. The script looks awesome! I'm excited.
xACIDITYx5 years ago
It works like a charm!
By far my favorite GM script, minus the block Kn* one because I can block users who annoy me =p
whatsisface5 years ago
Fancy compiling it as well? It'll make it a bit more accessible.
zachninme (author)  whatsisface5 years ago
Oh, and I can't easily compile it: each GM script is custom made with love :D
Good point, they're all a bit different, no?
zachninme (author)  whatsisface5 years ago
Admittedly, its only a line, and the conversion is something simple enough that I could preform server-side on demand. Just don't wait on it. Install the script now. (That means you!!!)
I have. The effects are cool, if a bit laggy.
zachninme (author)  whatsisface5 years ago
The lag is partially intentional: stuff will disappear when you send it, and then reappear after the server processes it to let you know it went through. If you think it should work in a different way, let me know ;-)
zachninme (author)  whatsisface5 years ago
No, not yet. I'm still making changes here and there, and its hard to compile & sync those changes.
Aar000n3y5 years ago
I did it and nothing happened...
zachninme (author)  Aar000n3y5 years ago
Were you the one trying to sign up as "Rooon"?
You need to use your Instructables username, exactly as it appears. I've updated it to make that more clear.
LOL!
zachninme (author)  Lithium Rain5 years ago
What's so funny? You really should use this scrip, Adrian!
I dunno, "Were you the one trying to sign up as "Rooon"? " just tickled me somehow. :) I'm trying, greasemonkey isn't taking...
zachninme (author)  Lithium Rain5 years ago
How so? Is it a bug on my end?
I don't think so, I think it's more of a matter of me being dumb.
. Commonly called Loose Nut Behind The Keyboard Syndrome. . If you're having problems installing GM, let us know. If I can install it, anyone can.
Oh, that makes more sense I've got it working now. You should make an instructable for adding this feature to instructables to spread it around more.
zachninme (author)  Aar000n3y5 years ago
I'm trying to do some testing, but I do plan on making an instructable of it ;-)
Hmm, the GorillazMiko made me think of something else...
nagutron5 years ago
100% awesome. I just blogged this, here: http://mindtangle.net/2008/07/08/now-thats-diy/
zachninme (author)  nagutron5 years ago
Thanks! I'm glad you liked it! Aside from having an actual backend, I think that another turning point was realizing that instructables already has a lot of JS libraries. There is script that utilizes Prototype & Scripilicious, and I've played around with using the stars.
It is cool. I just got it to work with some help from Zach.
zachninme (author)  fungus amungus5 years ago
It was my fault, it wasn't authenticating the user properly.
zachninme (author) 5 years ago
I've made another!

This one tries to keep comments from falling off the side of the page. Its hardly perfect. It works by reducing the indent, and eventually getting rid of it entirely. Generally, once they get out that far, they've become linear enough ;-)

Although one option was to just drag them back to the left after they got too far out, I didn't want to do this as it would draw too much attention to them. Generally, comments out that far don't deserve the attention.
zachninme (author) 5 years ago
Well, I've tapped into scriptalicious, which Instructables already uses to do their effects. Let me know what you think! After this, a stats page will probably show up ;-)
I like it! It's the best GM script I have... second only to the KNEX skript.
xACIDITYx5 years ago
TEST!
It works now!
KentsOkay5 years ago
Hey how do we run GM scripts again?
zachninme (author)  KentsOkay5 years ago
(removed by author or community request)
Is it working now?
Ahh ok...
zachninme (author) 5 years ago
I've been playing around with some things, and it came up that I could use the stars to rate comments. Would people like that, or do you like the 3-point system? (Turns out, the stars are fairly flexible, so I could easily have it stay 3-points, or even 100!)
. Whatever works best for the programmer.
zachninme (author)  NachoMahma5 years ago
Heh, I really don't mind ;-)
zachninme (author) 5 years ago
So, it works!

First, you'll need to have greasemonkey installed. Just follow the link!
Get Greasemonkey

To install the script, visit the signup page, and follow the bland directions.

Rate away!
Labot20015 years ago
Automagically is my new favorite word. I think I'm going to get Greasemonkey now.... or should I wait for Firefox 3?
. Go for it!
. I use Pagerization! (autoloads next page of Google search results as you scroll), Instructables Forum Left-align (self-explanatory), Instructables without knex! (another one of Zach's), and this one (when I'm not commenting heehee).
. Lots of very useful scripts listed on the GM web site.
whatsisface5 years ago
Sweet, I'm famous!

As a side note, this has been working fine for me so far, although it has some issues displaying when the *spammy* comments get too far right.

I'm using 3 RC 1, and it works perfectly under Nightly Tester Tools.
zachninme (author)  whatsisface5 years ago
Can I get a screenshot? I don't quite understand... If you're referring to how it behaves when the comments are too far over, I can fix that. Now that I think of it, its just a matter of making some nbsp's just normal spaces ;-)
That, plus when I view topics such as http://www.instructables.com/community/Average-age-of-instructablites-How-old-are-you/, the buttons either refuse to appear or take way too long to load.
. I think that's related to the number of replies. I have the same problem with all topics that have a lot of replies.
zachninme (author)  NachoMahma5 years ago
Okay. I fixed this by limiting the amount of comment data per request. Its not optimized, but it should prevent it from just stopping, or at least improve the situation. This requires a script update (they really are rare, I swear!), as you probably were informed. I threw in a nicer update screen as well ;-)
NachoMahma5 years ago
. I thought you were too busy hacking accounts to have time to do something like this. <snicker>
. Just kidding, folks. For those of you who are nervous about installing scripts from the 'Net, Zach rates very high on my trust-o-meter. I've run several of his scripts over the past few months with no problems (maybe something displayed in the wrong place, but nothing that did any harm or crashed anything) and I really like his No K'n* script (fairly easy to set up to block more than k'n*, if you want). I've been using his rating script for a few days with no problems. It seems to slow page load by just a little bit (I haven't timed it, but it seems like less than one second), but most scripts do that.
. I'm not sure what he's doing, but, in theory, he will be able to track which account rates what and possibly your IP. I don't think he will misuse the info (or exactly what he might be gathering or doing with it), but be aware of the (IMNSHO, slight) risk as you decide to download and participate. I trust him and don't think it's a big deal, but thought I should mention it.
Even better, I think I remember Zach being an intern at Instructables? xD -
zachninme (author)  ll.135 years ago
Mhmm :-) Fun times ;-)
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!