corrected a bug were text links are transformed but not clickable
|
|
text links like userscripts.org are transformed into a link but are not click-able because the script adds a space inside the link to correct this just paste the following line of code after the variable href is first introduced while (href.indexOf(" ") > -1) href = href.replace(" ",""); it will remove all spaces inside the linkifyed text links so they can be clicked |
|
|
Actually this isn't my script (all original copyright in source), all I did was make it not linkify emails. I fixed it though. |
|
|
I saw you removed the prefix string too, great work, thx
lets test it: "userscripts.org" userscripts.org 'userscripts.org' |
|
|
cool your bug fix corrected this too, now this script makes sense, cu :) |
|
|
Yeah like I said it wasn't my script. I fixed the space issue like you said and I changed the handling of |
|
|
i hope it is open source ;) well, do u still use this script? or did you find a better one already? |
|
|
Yeah I use it, that's why I posted this. I like the script but it was making links out of emails (and not mailto: ones, I have another script for that) and I didn't want it to do that, and thought it'd be useful for others. |
|
|
i c, great you changed that, before that script i used some linkify firefox extension, but i lost it. hey u made another update right? although it seems i cant spot the code change so far so you are combining this script with some other linkify scrip, do you? |
|
|
I've only done one update. The code was edited to exclude the linkifying of emails in the first version, and the second version I fixed the space issue.
|
|
|
The header told "last update" was later than the update we talked about first that's why i asked. With combining i meant that you wrote you are using an other script for getting mailto: links and i just wanted to know the name of it :) hey 444 installations, grats :) |
|
|
Oh I see. For mailto links, I use GmailTo. With Linkify ting original, I couldn't use this because it, too, would try to change mailto links, so I edited it to ignore them. Then the update after that was the spacing issue and prefix re-write as just a little optimization I thought I'd add.
|
|
|
ok, to get gmail to work with mailto i use google talk, so i can use other browsers too.
oh and maybe we can fix the bug with the leading space character too |
|
|
What leading space character? On this script? |
|
|
for example this text link userscripts.org has it the script converts the space before the text also into the link (the underline is also under the space and not only under the text link) |
|
|
Alright fixed that. |
|
|
wow, thank you you changed a lot in the source .. was it difficult? |
|
|
Nah easy. and (oops) I forgot to take something out. Originally I was going to encapsulate the new link in a span starting with a space but I found a better, shorter way.
|
|
|
ah now i know why the new function :) i also saw u tried to remove spaces all over the code .. tried that too in first place *ggg* do you use a program to compile and debug such small scripts or just an editor like me?
|
|
|
I just use Notepad++. It's a great program. It has spell checking, syntax highlighting, auto-indenting, everything I need. |
|
|
Fixed another bug with my "Clean Up Web Jargon" script. |
|
|
nice what do you say should we add |in|to| to the list? i added them every time |
|
|
Good idea. Added it. |
|
|
great, thx |
![]() ![]() |
missed |fr
Also, can you do that almost all the domains are taken (something like dot and after 2/3 characters). Sorry I don't know regex so I can't test/help. |
![]() ![]() |
ozzii wrote:Sure. ozzii wrote:Don't get what you mean. |

