Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Text to Link

Change URIs and non-URIs written as text into links.




Dec 12, 2007
Kim A. Brandt Script's author

That's cool.

An explanation for that could be the script makes changes to the HTML-source directly instead of using DOM (objects). It's faster but there're more things to take care of.

Cheers

 
Dec 12, 2007
bobielawlintine Scriptwright

Well with the updated script I no longer experience the problem. Thanks.

 
Dec 11, 2007
Kim A. Brandt Script's author

Hmm... it's working for me. Are you sure it's this script and not something else? If you can/like try to run this script alone and turn of the others. Maybe changing the order of executing scripts might help!?

Is that the only site or does that happen all the time?

I guess I would need the HTML-source from that site since it could be that you are served with a slightly different HTML-code then me. You can send it to `kimabrandt at gmx dot de'.

I'm sorry I can't be of a better help at the moment.

Cheers

 
Dec 10, 2007
bobielawlintine Scriptwright

With the script enabled:

http://i14.tinypic.com/71xvfhy.png

and script disabled:

http://i7.tinypic.com/6jmxwys.png

 
Dec 9, 2007
Kim A. Brandt Script's author

Do you have a link and/or screenshot?

 
Dec 8, 2007
bobielawlintine Scriptwright

It seems that when I have this script enabled, Google Images will not show.

 
Dec 6, 2007
Kim A. Brandt Script's author

matrixik I added a variable `AUTO_STOP' which when set to `false' will ask to continue the script (no change). You have to set it to `true' by yourself if you don't want the question to pop up.

To do this:
1) right-click on the Greasemonkey icon in the status-bar
2) click on the `Manage User Scripts' menu-item
3) select `Text to Link' from the list-box
4) click on the `Edit' button
4a) evtl. choose the editor to use
5) search for `const AUTO_STOP' in the script
6) change `const AUTO_STOP = false;' to say `const AUTO_STOP = true;'

 
Dec 5, 2007
matrixik User

Can You add option to auto stop change text to link if your script work too long? I don't want to see that message every time.

 
Nov 26, 2007
Bruno 'ReX' ... Scriptwright

Kim A. Brandt thanks for the fix!

 
Nov 26, 2007
Kim A. Brandt Script's author

I added the symbols `?' and `#' to the `removeUnwanted' function and switched arround the fixing/removing symbols and the checking with `unwantedRegExp'. I also added a `?' to the `unwantedRegExp' so that there is taken care of an only-scheme without trailing `:'.

Keep them coming..

 
Nov 25, 2007
bobielawlintine Scriptwright

I found something: if the numbers are following by a question mark like:

2.0.0.9?

Then it will be linkified.

 
Nov 23, 2007
Kim A. Brandt Script's author

Bruno 'ReX' Barbieri, I agree that a IPv4 address *alone* is too common to be linkyfied, so I added it to the `unwantedRegExp'. If you/someone want it to be included the `unwantedRegExp' variable is the place to look.

Thanks

 
Nov 23, 2007
Bruno 'ReX' ... Scriptwright

If you have version numbers for software, it recognise it as a link (IP):

Example:
* AnyDVD HD v6.1.9.5 [beta]
* CloneDVD v2.9.1.2
* CloneDVDmobile v1.1.5.4
* CloneCD v5.3.1.0
* Virtual CloneDrive v5.2.0.2
* Game Jackal Pro / Enterprise v2.9.18.600

 
Nov 21, 2007
Kim A. Brandt Script's author

That message should show up after 2 and then after every 5 seconds to allow to stop executing the script. When I was testing the script I met sites (especially large *.txt) which would run for about 10-30 seconds. This is the best I could come up with. If there are other ways to do the same please let me know.

You can also change the maximum-time (run-time after which to ask the question, search for `var maxTime = 2.0'), multiplikator (increase the run-time, search for `const MULTI = 2.5') and the run-time-boundary (run-time after which the max-time will not be increased further, search for `if (maxTime < 5.0)').

 
Nov 21, 2007
bobielawlintine Scriptwright

I installed the latest update and I got this message when viewing the page for a userstyle:

http://i2.tinypic.com/6u8n890.png

Whats the message for?

 
Nov 19, 2007
bobielawlintine Scriptwright

Thanks again; its works great.

 
Nov 17, 2007
Kim A. Brandt Script's author

bobielawlintine, that's because: see comment-20307.

But because it's interesting lets try the `linkify' approach..

I added some regular expression-stuff and now it can do what you asked for. There are some issues with the likify-way of doing things. We have to tell the script when we would like to transform an non-url. I choosed the cases when the host is an ip or the host has a valid top-level domain. The script may also become a little slower than before.

Another downside of the linkify-approach is that we now have to find all the `false positives' ;)

Cheers

 
Nov 15, 2007
bobielawlintine Scriptwright

page: http://www.userstyles.org/styles/290

The url at the bottom of the description is not linkified.

 
Nov 11, 2007
Kim A. Brandt Script's author

bobielawlintine, I made a fix which checks if the URL is encapsulated in round-brackets (URL). If so only the URL is `linkified'. Further there should be no problem with box-brackets [URL], curly-brackets {URL} nor angle-brackets 〈URL〉.

Cheers

 
Nov 10, 2007
bobielawlintine Scriptwright

When you click on the article titles at frostytech.com, you go to another page and there is a link where Text to Link also linkifies the closing parenthesis:

http://i2.tinypic.com/6pg2wid.png

This sometimes prevents the link from working.

 
Oct 16, 2007
Kim A. Brandt Script's author

Just thought about it...

those examples just show where the link (provided by Google) will link to. You have the link at the beginning of each entry already, so there's no need to transform those.

Regards,

Kim

 
Oct 16, 2007
Kim A. Brandt Script's author

georgie, I'm glad you like the script.

The reason why the script isn't working with your example is because they are not URL and thereby not URI. A scheme is missing[1] in the examples `en.wikipedia.org/wiki/Beta' and `en.wikipedia.org/wiki/Software_release_life_cycle'. If they would say `http://en.wikipedia.org/wiki/Beta' and `http://en.wikipedia.org/wiki/Software_release_l...' it would work. Just try it out! ;)

Also another reason why it wouldn't work as you might expect is because the script looks at the source code:


    <span class="a">en.wikipedia.org/wiki/<b>Beta</b> - 21k - </span>

and even if it would've said


    <span class="a">http://en.wikipedia.org/wiki/<b>Beta</b> - 21k - </span>

the `Beta' wouldn't be part of the URI.

You can think of this script as a (lazy) implementation of the Uniform Resource Identifier (URI): Generic Syntax.

Maybe you like the approaches chosen by these[2] scripts better.

Cheers!

REFERENCES

[1] 3. Syntax Components
[2] linkify scripts

 
Oct 9, 2007
georgie Scriptwright

This script is great but it does not work on the links in google search results:

http://i24.tinypic.com/ehhf6.png

 
Sep 18, 2007
sharmard User

Thanks, Kim. That’s the ticket.

 
Sep 17, 2007
Kim A. Brandt Script's author

If you set the `Text to Link' script to execute before the `Long_Word_Breaker' script it works. Links do even break as they should and you are still able to click them (niiice).

You could comment on this script if you were logged in.