PDA

View Full Version : Greasemonkey Scripts (Firefox Extension)


thehandofzarquon
August 21st, 2006, 07:45 PM
Well, since we've at least temporarly lost a few features, I thought I'd share some Greasemonkey scripts that add the same functionality from the User End... as well as some new ones :D

If you don't know what Greasemonkey is, it's an extension for Mozilla Firefox (http://www.getfirefox.com) that allows people to create scripts to insert bits of Javascript and such into websites to fix annoyances or fill in gaps of functionality. And just for fun, sometimes. :wink:

You can download and get more info on Greasemonkey here. (http://greasemonkey.mozdev.org/)

Here are some scripts that people might find useful:
phpBB Quick Reply (http://userscripts.org/scripts/show/1667)
This adds a Quick Reply box to the bottom of each page of a thread. It's pretty barren, only being a text box and a submit button, but it's better than nothing. :)

phpBB Quick Edit (http://userscripts.org/scripts/show/3528)
When installed, this adds a [QE] symbol to each of your posts near the Edit button. When clicked, it replaces the view of your post with an editable text box (no other controls, however) instantly, no page loading required. Hit sumbit when you are done, and that's it. VERY useful. :up:

phpBB Redirect Removal (http://userscripts.org/scripts/show/2277)
This page simply automatically skips the confirmation/redirect page after you submit a new/edited post. This does not remove the confirmation for posting a new thread. I might get around to modifying the code so that it does at somepoint.

phpBB User Hide (http://userscripts.org/scripts/show/831)
This adds an [X] next to everyone's name. Click it to collapse all their posts, allowing you to emulate the Ignore Feature. Saves your ignore list via a cookie. I find ignoring people weak, but hey... I can understand why people do it. I'm sure it's useful for someone. :shrug: As a side note, this also hides their posts when someone quotes them properly :wink:

phpBB Image Resizer (http://userscripts.org/scripts/show/2430)
This is supposed to resize images on posts so that they don't stretch the thread's width to crazy lengths. I haven't tried it yet, so I'll get back to it when I do. I'm sure if it works, it will be extremely useful.
Edit: This does actually what it says, it resizes large images to a more managable size so that they don't stretch out threads. You can always Right Click on the image and choose View Image to see it in its full size.

phpBB No Stretch (http://userscripts.org/scripts/show/2679)
Like the one above, this one deals with making sure posts don't go so long as to have to scroll horizontally. Again, I haven't tried it out yet...
Edit: This prevents posts from going past the width of your browser window and adds a scrollbar to all applicable posts, or at least it should. For me it was adding the scrollbar in the signature of the next post. :? It also doesn't work with my scroll wheel, so.. I'm not using it currently unless I find a situation where a non-image part of a post makes a thread super-wide...

Heroscapers Forums Uncensorer (http://netraptor2345.bravehost.com/heroscapersforumuncensor.user.js)
This is a personal creation of mine. It simply replaces the censored words that these forums use with the actual swear word. I created it because, personally, fantasy/sci-fi swear words make me sick :wink:. It's VERY limited in what it replaces at the moment, only doing three words, so if anyone can supply me a list of the words and their replacement... I'd be grateful, as I'm sure others would be too. See my post here (http://www.heroscapers.com/community/showthread.php?p=62128#69317) for more details about this script. I'll probably be working more on this to improve it later, maybe making it an actual Firefox extension for those that don't want to use Greasemonkey if there is enough interest.

bbCodeXtra (https://addons.mozilla.org/firefox/491/)
This last one isn't a Greasemonkey Script, but instead a Firefox Extension that adds new context menus that insert bbCodes into textboxes. This is very useful when combined with the barren Quick Edit and Quick Reply scripts above!

You can find other scripts for Greasemonkey at Userscripts.org (http://userscripts.org/).

Hopefully someone will find these scripts/extensions useful like I have. :up:

netherspirit
August 21st, 2006, 08:46 PM
I use the BBCodeExtra all the time, its awesome when you are typing in the quick reply box when you need to bold something or have an image link on the clipboard or something.

I love me some Firefox extensions. I will have to check out the Greasemonkey thing. Thanks!!!

netherspirit
August 21st, 2006, 09:10 PM
Just installed the Quick Reply Script....very nice.

So the quick edit rocks my socks too!!!!!!

thehandofzarquon
August 21st, 2006, 10:23 PM
No problem, those are two very nice scripts, although the Quick Reply is only useful if it isn't enabled on the forum in the first place. :P

I checked out how the Image Resizer and the No Stretch scripts work.

Image Resizer does exactly that, resizes the images down to a more managable size. You can always Right Click-View Image to see it in its actual size.

No Stretch seems to want to add a horiztonal scrollbar to long posts... put in my tests, it seems to add it in the signature of the next post... Images and such don't look squashed and stuff, but it is kinda quirky.

Personally, I'm using Image Resizer until I see a reason to use No Stretch.

netherspirit
August 21st, 2006, 10:29 PM
Yeah I will definately uninstally the Quick Reply script if Truth reinstalls it to the board.

I tried out one called "Endless Forum Pages (http://userscripts.org/scripts/show/1894)" basically it took each page of a thread and loaded when you scrolled down to the bottom of the page. It eliminates the need to click the next page link. The only problem with it was that the QE didn't show up on anything past the first page.

I am not sure how I would function now without the Quick Edit, it is so freaking handy.

phpBB sort topic list (http://userscripts.org/scripts/show/4086) is another cool one I am trying out. Whenever I use the View Topics Since Last Visit link or refresh the results page, it will sort the ones I have read to the bottom instead of just removing the highlight.

Edit - I just found out the sorting one works on all pages, not just the search page. It will put all unread topics above stickies and announcments! Now that is cool!

thehandofzarquon
August 21st, 2006, 10:45 PM
Yeah I will definately uninstally the Quick Reply script if Truth reinstalls it to the board.
If you browse other phpBB boards, it's still useful to have it installed, just exclude Heroscapers.com from being affected.


I tried out one called "Endless Forum Pages (http://userscripts.org/scripts/show/1894)" basically it took each page of a thread and loaded when you scrolled down to the bottom of the page. It eliminates the need to click the next page link. The only problem with it was that the QE didn't show up on anything past the first page.

I am not sure how I would function now without the Quick Edit, it is so freaking handy.
Indeed it is! It plus Redirect Removal really speed up posting/editing. As for the Endless Page... I'll take a look and see if I can get it to work with Quick Edit.


phpBB sort topic list (http://userscripts.org/scripts/show/4086) is another cool one I am trying out. Whenever I use the View Topics Since Last Visit link or refresh the results page, it will sort the ones I have read to the bottom instead of just removing the highlight.

Edit - I just found out the sorting one works on all pages, not just the search page. It will put all unread topics above stickies and announcments! Now that is cool!I saw that, but wasn't really sure what it would do. I do like it putting the unread topics above stickies... hmm, I'll have to try it out.

netherspirit
August 21st, 2006, 10:50 PM
If anyone out there is using Firefox, you need this extension and some of the scripts above. Truely amazing, I don't know how I have functioned for so long without these Scripts, and I have only been using them for an hour or so!!!

And if you aren't using Firefox, you should be!!!

thehandofzarquon
August 22nd, 2006, 02:34 AM
Alright, been messing around with that Endless Forum Pages script... I gotta say that's it's pretty much incompatible with all the above scripts, except the Redirect Removal and bbCodeXtra, obviously. This is because the loading of the next page's content doesn't trigger any other Greasemonkey scripts...

I was able to get it working with Quick Edit... however, Quick Reply doesn't work with it and I just can't seem to get it to work right :frustrated:

Oh well, I think it's about time for bed, been up for 24hrs now... maybe it will make more sense later.

Agent Minivann
August 22nd, 2006, 02:47 AM
How quickly can you "turn on/off" these scripts? I like the idea of the endless forum page thing, but mostly on the posts since last visit search. Usually by the time I get past the first page, it has been too long since the original search query, and I don't get the second page. I've been opening all the pages in separate tabs, and then working through them, but it would be nice to get it all at once.

On the flip side, I wouldn't want to unleash that script on picture intensive threads. My craptacular dial up connection would disown me.

thehandofzarquon
August 22nd, 2006, 12:56 PM
How quickly can you "turn on/off" these scripts? I like the idea of the endless forum page thing, but mostly on the posts since last visit search. Usually by the time I get past the first page, it has been too long since the original search query, and I don't get the second page. I've been opening all the pages in separate tabs, and then working through them, but it would be nice to get it all at once.

On the flip side, I wouldn't want to unleash that script on picture intensive threads. My craptacular dial up connection would disown me.The endless forum page doesn't load the pages all at once. It loads an inserts in more posts once you scroll down far enough, not really sure about how far, but I'd say 50%'sih, so it might not actually be so bad, not sure, it's been far too long since I've had dial up and I try to forget those days (mostly because it was high school... :P)

However, there should be a Monkey picture in the status bar at the bottom of Firefox. Click that icon to disable Greasemonkey entirely (the picture will change B&W). You can also right click that icon and it will show a list of all applicable scripts with any one that are enabled checked, if you uncheck them in that menu, it will be disabled until you reenable it.

Hope that helps!

Agent Minivann
August 22nd, 2006, 03:18 PM
That told me pretty much what I needed to know. Now I just need to find the time to download and start trying it.

ultradoug
August 22nd, 2006, 03:37 PM
i dont trust no gressy monkey.

thehandofzarquon
August 22nd, 2006, 04:24 PM
That told me pretty much what I needed to know. Now I just need to find the time to download and start trying it.One thing I did forget: You need to disable it before you load the page, or disable it then reload.

And for those out there that care, I updated my Uncensor script to include as many words (thanks to Bunjee for sending me the list!) as I could resonably recongnize and replace. Many words are replace by a series of four asterisks, so I can't really do anything about them. Sorry.

You can download that script here. (http://netraptor2345.bravehost.com/heroscapersforumuncensor.user.js)

netherspirit
January 18th, 2007, 09:58 PM
With the Quick Reply being unistalled I thought I would bump this thread to remind all Firefox users that there is an alternative. Read the first post of this thread.

netherspirit
January 19th, 2007, 12:40 AM
I was doing some looking for something that would do this: a script that adds a new quote button that when you clicked it it would add the quote to the Quick Reply box. Kind of like a Quick Quote. If anyone finds anything like this or knows javascript well enough to write it, let me know!

Revdyer
January 19th, 2007, 08:08 AM
Okay, since I got broadband only last week, I am just now installing and using Firefox. What a difference! I'll not go back to clunky IE.

Thanks, guys, for pointing me in the right direction.

netherspirit
January 19th, 2007, 08:17 AM
Okay, since I got broadband only last week, I am just now installing and using Firefox. What a difference! I'll not go back to clunky IE.

Thanks, guys, for pointing me in the right direction.

Are you using Greasemonkey now? The Quick Edit and Quick Reply scripts are a MUST! I can't tell you how awesome Quick Edit is.

There is another thread around here that has some links to some other must-have firefox extensions. Since search isn't working properly it probably won't show up. I will see I can dig up, if I can't I can always PM you about some great things you can do with Firefox, if you're interested. :)

Revdyer
January 19th, 2007, 10:00 AM
netherspirit, I haven't installed any of the extensions yet. I thought I'd take a day or two to get used to the basic browser stuff. But, from the enthusiasm I'm hearing from you, I guess I'd better hustle and get at least the QuickEdit going. You've got to remember that I am an old guy and change takes a while with us codgers <grin>...oops, mean :smile:

netherspirit
January 19th, 2007, 10:01 AM
netherspirit, I haven't installed any of the extensions yet. I thought I'd take a day or two to get used to the basic browser stuff. But, from the enthusiasm I'm hearing from you, I guess I'd better hustle and get at least the QuickEdit going. You've got to remember that I am an old guy and change takes a while with us codgers <grin>...oops, mean :smile:

*gets his big stick to teach Rev some new tricks*

Revdyer
January 19th, 2007, 10:17 AM
netherspirit, I haven't installed any of the extensions yet. I thought I'd take a day or two to get used to the basic browser stuff. But, from the enthusiasm I'm hearing from you, I guess I'd better hustle and get at least the QuickEdit going. You've got to remember that I am an old guy and change takes a while with us codgers <grin>...oops, mean :smile:

*gets his big stick to teach Rev some new tricks*

Hey!! I'll teach you young wipper-snappers an old trick about where you can store that stick, sonny! <laughing>