- Mar 22, 2013
- 9,145
- 10,489
I visit this site that displays non-clickable links, so I found this Firefox extension called "Linkificator" which turns all the links on a page into hyperlinks or clickable links.
The extension works great. It even has a setting to allow you to have it apply only on specific sites (whitelist/blacklist).
But I often tend to copy parts of links by double-clicking on the second half of a URL.
For example:
https://somesite.com/something
https://www.anothersite.org/hereweare-text
But now that all the links are clickable, I have to select the text with the mouse, and it's prone to... delays
So this extension has an option to "Use regular expressions for domains", and I am able to add custom rules.
The current and default rule is this:
Name: URN:NBN Resolver, Redirect to document itself
Pattern: urn:nbn:[a-z0-9]{2,}[:-][^[\]{}<>\\|~^"`\s]+v
URL: http://nbn-resolving.org/redirect/$&
So I don't know anything about regular expressions, and I'm not sure if this is even possible. I mean, everything is possible, but you know.
What I want is for links to get hyperlinked, but only up to a point. For example let's say hyperlink only the first 20 characters of each link:
https://somesite.com/something
https://www.anothersite.org/hereweare-text
So in this instance, the Blue parts would be a clickable hyperlink, and the Red parts would be plain text. BUT the blue parts, if clicked, would actually open the entire link.
So I don't know. Is this possible or am I talking crazy?
The extension works great. It even has a setting to allow you to have it apply only on specific sites (whitelist/blacklist).
But I often tend to copy parts of links by double-clicking on the second half of a URL.
For example:
https://somesite.com/something
https://www.anothersite.org/hereweare-text
But now that all the links are clickable, I have to select the text with the mouse, and it's prone to... delays
So this extension has an option to "Use regular expressions for domains", and I am able to add custom rules.
The current and default rule is this:
Name: URN:NBN Resolver, Redirect to document itself
Pattern: urn:nbn:[a-z0-9]{2,}[:-][^[\]{}<>\\|~^"`\s]+v
URL: http://nbn-resolving.org/redirect/$&
So I don't know anything about regular expressions, and I'm not sure if this is even possible. I mean, everything is possible, but you know.
What I want is for links to get hyperlinked, but only up to a point. For example let's say hyperlink only the first 20 characters of each link:
https://somesite.com/something
https://www.anothersite.org/hereweare-text
So in this instance, the Blue parts would be a clickable hyperlink, and the Red parts would be plain text. BUT the blue parts, if clicked, would actually open the entire link.
So I don't know. Is this possible or am I talking crazy?