***URL CATCHER***, Vote easier, visit websites with a click!

Scripts and support for your favorite MUD client.
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

***URL CATCHER***, Vote easier, visit websites with a click!

Postby Yasden » Thu Apr 28, 2005 9:38 pm

Update: Added a color highlighter so that URL's come up in a nice, noticeable orange color.

This code works in both zMUD 4.62 and 7.05. All you have to do is copy/paste it to your zMUD command line and press enter.

There is only *one* restriction to using this at this time...there must be a space after the url or else it tries to catch other stuff after it...

You say 'www.google.com'

compared to:

You say 'www.google.com '

I'll post an update once I can fix that. Credits to the Zuggsoft forums!

This should make voting and other browsing activities much much easier for you, as you only have to single click on a link to visit it!

And yes, this code *DOES* underline the url for you so it's easy to notice!

Enjoy!

Code: Select all

#TRIGGER {({http://|www.})(%x)} {#sub {~<color orange>~<a "%1%2">"%1%2"~</a~></color~>}} "" {notrig}
Support Your Addiction! Vote for TorilMUD Today!

Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev

Why Nerox is jealous of me:

Nerox tells you 'man this thing is kicking my ass and i have blisters!'
Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Sun May 08, 2005 12:28 am

I fixed this a little, no need to worry about spaces now:


Code: Select all

#TRIGGER {({http://|www.})(%x)} {#sub {~<color orange>~<a %replace(%1%2,',"")~>%replace(%1%2,',"")~</a~></color~>}} "" {notrig}
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Sun May 08, 2005 2:05 am

That works great for the ' character, but what about the others?

. " ! ? ( ) ,

>:)
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Sun May 08, 2005 3:32 am

hrm we could probably put a full mask like {'|!|.|,|"|}

I dunno man Ill play with it, im still more of a wintin guy but im using zmud till i can stop hacking it every 30 days with registry hack :p
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Sat May 14, 2005 7:08 pm

I've also noticed it doesn't work for 2 of the 3 voting links due to the "different" url strings (Top Mud Sites and MudConnector)...care to fix?
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Torir
Sojourner
Posts: 3
Joined: Fri May 13, 2005 11:45 am

Postby Torir » Sat Jul 02, 2005 8:41 am

Try this:

#TRIGGER {http://(%x)*~'$} {#var LAST_URL "http://%1";#sub {~<color orange>~<a ~"%1~"~>%1~</a~></color~>}}


Torir
Yasden
Sojourner
Posts: 1597
Joined: Sat Feb 03, 2001 6:01 am
Location: Lake Stevens, WA, USA

Postby Yasden » Sat Jul 02, 2005 5:29 pm

If there's a ' at the end of the line, it kills it with %1.

Otherwise, seems to work ok. :P
Support Your Addiction! Vote for TorilMUD Today!



Top Mud Sites: http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?id=shev



Why Nerox is jealous of me:



Nerox tells you 'man this thing is kicking my ass and i have blisters!'

Nerox tells you 'ok attempting it again put tape on my fingers for easier sliding'
Torir
Sojourner
Posts: 3
Joined: Fri May 13, 2005 11:45 am

Postby Torir » Wed Jul 06, 2005 8:40 am

Use this instead:

#TRIGGER {(*)http://(%x)(*~')$} {#sub {%1~<color orange~>~<a ~"http://%2~"~>%2~</a~></color~>%3}}

Yasden, can you post an example URL where it breaks this? I haven't found one yet. Thanks.


Torir
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Mon May 01, 2006 3:07 pm

I win:

Code: Select all

#TRIGGER {~'(*)http://(%x)(*~')$} {#sub {~'%1~<color orange~>~<a http://%2~>http://%2~</a~></color~>%3}}
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 6 guests