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.
|
|
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 |
|
|
Well with the updated script I no longer experience the problem. Thanks. |
|
|
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 |
|
|
With the script enabled: http://i14.tinypic.com/71xvfhy.png and script disabled: |
|
|
Do you have a link and/or screenshot? |
|
|
It seems that when I have this script enabled, Google Images will not show. |
|
|
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:
|
|
|
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. |
|
|
Kim A. Brandt thanks for the fix! |
|
|
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.. |
|
|
I found something: if the numbers are following by a question mark like: 2.0.0.9? Then it will be linkified. |
|
|
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 |
|
|
If you have version numbers for software, it recognise it as a link (IP): Example:
|
|
|
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)'). |
|
|
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? |
|
|
Thanks again; its works great. |
|
|
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 |
|
|
page: http://www.userstyles.org/styles/290 The url at the bottom of the description is not linkified. |
|
|
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 |
|
|
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. |
|
|
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 |
|
|
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:
and even if it would've said
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
|
|
|
This script is great but it does not work on the links in google search results: |
|
|
Thanks, Kim. That’s the ticket. |
|
|
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.
