Page 1 of 4

DevNetworks useful Greasemonkey Scripts

Posted: Sun Jan 01, 2006 8:18 pm
by Chris Corbyn
Latest GM version (at last edit): 0.6.6
--------------------------------------------------------------

Any Greasemonkey scripts posted in this thread should be intended for use on this forum only. Please post in Code Snippets for anything else

For those who don't know, Greasemonkey is an extension for Firefox which allows you to manipulate web pages whilst viewing in your browser, using your own JavaScript.

To use any scripts posted here we strongly reccommend you use the lastest version of Greasemonkey with its recommended version of Firefox.

RTM Conversion

Posted: Sun Jan 01, 2006 8:22 pm
by Chris Corbyn
http://w3style.co.uk/devnet/function_highlight.user.js

Tested with GM 0.6.4 and FF 1.5

Adds a button labeled "RTM-ize" to the Reply, New Post, Quote and Edit forms. Upon clicking the button the message box is scanned for PHP functions and links are generated to point to the manual pages at PHP.net

Functions are expected to have the trailing parens on them and are permitted to contain the argument list.

Example:

Code: Select all

mysql_connect($server, $user, $pass)
mysql_connect($server, $user, $pass)

Posted: Sun Jan 01, 2006 8:43 pm
by John Cartwright
Tested on GM 0.6.2 and it fails, so make sure you upgrade.

Posted: Sun Jan 01, 2006 9:40 pm
by timvw
It doesn't seem to work on the examples below... (using 0.6.4)

Code: Select all

 
print substr(htmlentities("foo"), 5);
 
print substr(htmlentities("foo"), 5);

Posted: Sun Jan 01, 2006 9:46 pm
by Chris Corbyn
Testing....

====================

It doesn't seem to work on the examples below... (using 0.6.4)

Code: Select all

 
print substr(htmlentities("foo"), 5);
 
print substr(htmlentities("foo"), 5);
=====================

-- Note that it does deliberately evade the

Code: Select all

 tags... (and some other BBCode tags).  What version of FF are you using so I can try it with other versions?  Clicking EDIT on your post then clicking RTM-ize worked for me with 1.5.

EDIT | Minor bug just spotted.... it stops at the first paren when nesting functions... will be fixed.

Posted: Mon Jan 02, 2006 7:49 am
by m3mn0n
testing...


foreach() fwrite() madeupfuncname() mysql_connect() ereg()

Posted: Thu Jan 12, 2006 3:06 am
by Maugrim_The_Reaper
Works fine - very cool ;)

Posted: Thu Feb 02, 2006 2:06 am
by m3mn0n
Here is a GM script I found thanks to Weirdan: http://userscripts.org/scripts/show/1667

It automatically places a quickreply button so you don't need to load a page just to reply.

It's great if it's just a quick message and you aren't going to utilize any of the extras such as emoticon inserter, bbcode tag inserters and etc.

Another is: http://userscripts.org/scripts/show/2277

Removes the redirect page and automatically forwards you to your reply on the thread.

It works in conjunction with the quickreply GM script so those two are a great time saver together.

Posted: Thu Feb 02, 2006 5:58 am
by Weirdan
Sami wrote: Removes the redirect page and automatically forwards you to your reply on the thread.
Unfortunately, it breaks the "back" button :(

Posted: Thu Feb 02, 2006 7:03 am
by Chris Corbyn
Hehe... nice one guys :)

Posted: Thu Feb 02, 2006 2:29 pm
by m3mn0n
Weirdan wrote:
Sami wrote: Removes the redirect page and automatically forwards you to your reply on the thread.
Unfortunately, it breaks the "back" button :(
It's a sacrifice I'm willing to make.. hehe :)

All I need now is some sort of script to copy something like....
Weirdan wrote: Unfortunately, it breaks the "back" button :(
...into the clipboard automatically so you can paste it into the quickreply. :)

Posted: Thu Feb 02, 2006 5:28 pm
by Weirdan
or "quick quote" button :)

Posted: Thu Feb 02, 2006 5:31 pm
by m3mn0n
Exactly!

I guess for now I'll keep dreaming... I'm no GM developer. =P

Posted: Fri Feb 03, 2006 3:27 am
by Weirdan
this extension may come in handy - not as powerfull as BBCode extension, but this one is compatible with Fx 1.5.0.x :)

Posted: Fri Feb 03, 2006 3:39 am
by m3mn0n
this extension may come in handy - not as powerfull as BBCode extension, but this one is compatible with Fx 1.5.0.x
test


...oh wow... man, I'm lovin' this!