<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on DirectLink | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/13079</link>
    <description>Recent comments on userscript: DirectLink</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>directLinkCaption ^ irreplacable, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;The code that prevents you from changing the caption directly is 'GM_getValue(&quot;directLinkCaption&quot;)'.&lt;/p&gt;

&lt;p&gt;Write &quot;about:config&quot; in your Firefox address bar and find &quot;directLinkCaption&quot;. Alter it! Screenshot: &lt;a href=&quot;http://imgur.com/VVFiI.png&quot;&gt;http://imgur.com/VVFiI.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The purpose of doing it this way is to allow you to update the script source code without losing your caption customization :)&lt;/p&gt;</description>
      <pubDate>Mon, 15 Feb 2010 08:39:38 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:46167:220586</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/220586</link>
    </item>
    <item>
      <title>directLinkCaption ^ irreplacable, replied by uplink</title>
      <description>&lt;p&gt;Hi,
&lt;br /&gt;I made a quick scan through the code, but couldn't find out, why replacing the &quot;^&quot; symbol has no effect on the actual caption of the created link.
&lt;br /&gt;It would be easier to click a little larger space, like [^].
&lt;br /&gt;But generally, it's a very useful script. Thanks for publishing.&lt;/p&gt;</description>
      <pubDate>Mon, 15 Feb 2010 00:02:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:46167:220466</guid>
      <author>uplink</author>
      <link>http://userscripts.org/posts/220466</link>
    </item>
    <item>
      <title>Not working on google image, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Hi. Thank you for your feedback, but can you please be more specific? It seems to work for me: &lt;a href=&quot;http://img188.imageshack.us/img188/3157/directlinkf.png&quot;&gt;http://img188.imageshack.us/img188/3157/directl...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 20 Oct 2009 06:28:25 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:37779:181483</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/181483</link>
    </item>
    <item>
      <title>Not working on google image, replied by asm@m</title>
      <description>&lt;p&gt;Hi.
&lt;br /&gt;its not working on google image&lt;/p&gt;</description>
      <pubDate>Mon, 19 Oct 2009 23:24:41 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:37779:181389</guid>
      <author>asm@m</author>
      <link>http://userscripts.org/posts/181389</link>
    </item>
    <item>
      <title>Tweak to reduce false positives with various script extensions, replied by ns4tne</title>
      <description>&lt;p&gt;Ah, thanks. The update is looking good so far (I'm using Firefox, and had temporarily forgotten about Opera).&lt;/p&gt;</description>
      <pubDate>Fri, 15 May 2009 22:08:54 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24108:121992</guid>
      <author>ns4tne</author>
      <link>http://userscripts.org/posts/121992</link>
    </item>
    <item>
      <title>Tweak to reduce false positives with various script extensions, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Sorry for the late reply. I just updated the script. You can now alter a TLD black list in about:config. They will however only be black listed if they miss foo:// and something like /foo.html. Thank you for the tip! I agree that .do and .py often are annoying, and also that using about:config is a good thing. Unfortunately, Opera users will not get the about:config functionality.&lt;/p&gt;</description>
      <pubDate>Sun, 10 May 2009 14:44:03 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24108:119931</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/119931</link>
    </item>
    <item>
      <title>Grabs email addresses too, replied by ns4tne</title>
      <description>&lt;p&gt;The onmouseout change is a bit confusing at first, but for your target audience of power users I don't think it matters much.&lt;/p&gt;

&lt;p&gt;At any rate, I greatly appreciate the change.&lt;/p&gt;</description>
      <pubDate>Tue, 14 Apr 2009 08:36:50 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20724:110852</guid>
      <author>ns4tne</author>
      <link>http://userscripts.org/posts/110852</link>
    </item>
    <item>
      <title>Tweak to reduce false positives with various script extensions, replied by ns4tne</title>
      <description>&lt;p&gt;Well, I actually do see links that have no protocol at times, and I do occasionally find those useful -- not, perhaps, quite often enough, but certainly at least as often as I find .py links.&lt;/p&gt;

&lt;p&gt;P.S. Sorry for not responding sooner; I forgot to check back, and userscripts.org doesn't do so hot at reminding me.&lt;/p&gt;</description>
      <pubDate>Tue, 14 Apr 2009 08:35:41 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24108:110851</guid>
      <author>ns4tne</author>
      <link>http://userscripts.org/posts/110851</link>
    </item>
    <item>
      <title>Tweak to reduce false positives with various script extensions, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Well resonated. That is absolutely a possibility. An alternative could be to (optionally) ignore URLs that do not begin with &quot;foo://&quot;. But perhaps that will exclude too many real cases, I'm not sure. How often do you see those? For example, on reddit there are links like &quot;http://www.reddit.com/domain/cnn.com&quot; which are correctly guessed to be &lt;a href=&quot;http://cnn.com&quot;&gt;http://cnn.com&lt;/a&gt;. But is that link really that useful?&lt;/p&gt;</description>
      <pubDate>Tue, 31 Mar 2009 18:13:09 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24108:107132</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/107132</link>
    </item>
    <item>
      <title>Tweak to reduce false positives with various script extensions, replied by ns4tne</title>
      <description>&lt;p&gt;I've noticed a lot of times DirectLink will see a link that ends in .py or .do or what have you and, because these are valid ccTLDs, add a direct link to them -- which of course usually goes nowhere, and is merely confusing. Ideally, this wouldn't happen, as webmasters wouldn't use extensions on there pages at all. In practice, of course, a different solution must be found.
&lt;br /&gt;On the one hand, any decent script that manipulates URLs should handle all valid TLDs, even rare ones. On the other hand, many users have no need to link to certain rare ccTLDs, especially as such sites are likely to be in a different language even if valid. And, of course, as previously mentioned, most such direct links are false positives anyway.
&lt;br /&gt;That being the case, I suggest allowing customization of which TLDs are valid -- likely only ccTLDs would be necessary, as I have never seen a page name that conflicts with the registered gTLDs. Now obviously, it is not all that hard to simply edit the script source directly to customize which names are valid, but then every time the script is updated, changes are lost and must be carried forward; also, it's poor style to rely on such hacking, as a general rule.
&lt;br /&gt;It would probably be sufficient to maintain a (pre-populated) blacklist in prefs of ccTLDs that will not be recognized, along with a simple option to turn the blacklist on or off (defaulting, likely, to off). This would make hiding those false positives a simple matter of flipping a single pref in about:config.&lt;/p&gt;</description>
      <pubDate>Tue, 31 Mar 2009 06:00:43 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:24108:106979</guid>
      <author>ns4tne</author>
      <link>http://userscripts.org/posts/106979</link>
    </item>
    <item>
      <title>Grabs email addresses too, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;I have now changed the script so that &lt;a href=&quot;mailto:foo@bar.com&quot;&gt;foo@bar.com&lt;/a&gt; is treated as an email address. However, I made the http:// interpretation available by interchanging between the two on mouseout.&lt;/p&gt;

&lt;p&gt;Email addresses are distinguished from other links by having caption &quot;@&quot;.&lt;/p&gt;

&lt;p&gt;I hope this works, and that the onmouseout change doesn't confuse too much.&lt;/p&gt;</description>
      <pubDate>Tue, 24 Mar 2009 21:02:12 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20724:105356</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/105356</link>
    </item>
    <item>
      <title>Grabs email addresses too, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Hm, thanks for the comment. It is always a dilemma whether one should handle some cases differently based on probability. I have had similar thoughts regarding the .do extension, but decided to not make any exceptions. The case you mention could be more eligible though.&lt;/p&gt;

&lt;p&gt;The question is, how often does this case occur? My guess is that an URL with an email address is not very common. On the other hand, as you say, how often is it an URL with a username?&lt;/p&gt;

&lt;p&gt;A third alternative would be to link to both the http: and mailto: versions (if it is a valid email address).&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jan 2009 17:01:30 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20724:91926</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/91926</link>
    </item>
    <item>
      <title>Grabs email addresses too, replied by ns4tne</title>
      <description>&lt;p&gt;The regex used (good job on making that readable, BTW) grabs embedded email address too with the section to allow usernames. I'm not sure this is a good thing, especially since those links come out as e.g. &amp;lt;&lt;a href=&quot;http://sample_user@hotmail.com/&quot;&gt;http://sample_user@hotmail.com/&lt;/a&gt;&gt; (from a forum link to MSN Messenger -- &amp;lt;&lt;a href=&quot;http://members.msn.com/sample_user@hotmail.com&quot;&gt;http://members.msn.com/sample_user@hotmail.com&lt;/a&gt;&gt;). Now, according to the specs, of course, that's a perfectly well-formed URL -- but in practice, it's VERY unlikely it's actually a URL.&lt;/p&gt;

&lt;p&gt;I have two suggestions for correcting this. The first possibility is to try to detect email addresses and give them the right mailto: protocol. The other possibility is to simply discard them.
&lt;br /&gt;Personally, I would say a good compromise would be to use a pref to allow discarding emails and default to adding mailto: to appropriate addresses.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Jan 2009 20:40:10 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20724:91555</guid>
      <author>ns4tne</author>
      <link>http://userscripts.org/posts/91555</link>
    </item>
    <item>
      <title>Problem, replied by JoeSimmons</title>
      <description>&lt;p&gt;Nah it's ok I made my own anyways.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Jan 2009 21:45:55 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20185:91233</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/91233</link>
    </item>
    <item>
      <title>Problem, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Hi, the problem is that we do not always want to replace the original link with the direct link. Some links are supposed to contain the URL &quot;indirectly&quot;, for example &lt;a href=&quot;http://www.stumbleupon.com/submit?url=http%3A%2F%2Fuserscripts.org%2Fscripts%2Fshow%2F13079&quot;&gt;http://www.stumbleupon.com/submit?url=http%3A%2...&lt;/a&gt; (Same goes for Digg, reddit, del.icio.us, etc.)&lt;/p&gt;

&lt;p&gt;However, if you really want to replace the normal link, it is not very difficult to modify the code to do so :)&lt;/p&gt;</description>
      <pubDate>Wed, 21 Jan 2009 18:49:59 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20185:91204</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/91204</link>
    </item>
    <item>
      <title>Problem, replied by JoeSimmons</title>
      <description>&lt;p&gt;The script works well but it's putting a caret (^) as a link after the normal link.
&lt;br /&gt;Will you make the script so it replaces the old link with the direct link?
&lt;br /&gt;The page I'm having trouble with is &lt;a href=&quot;http://www.demonoid.com/files/details/1354897/?page=3&amp;amp;show_files=0&amp;amp;rel=1231537547#comments&quot;&gt;here&lt;/a&gt; and it's the comment by me (thetenfold), the one with a green checkmark in it. The link says &quot;here.&quot;&lt;/p&gt;</description>
      <pubDate>Fri, 09 Jan 2009 21:50:34 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:20185:89036</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/89036</link>
    </item>
    <item>
      <title>Archived Comments, replied by anonymous_user</title>
      <description>&lt;p&gt;This doesnt work for Google Images. It doesnt go to the image.&lt;/p&gt;</description>
      <pubDate>Fri, 22 Aug 2008 05:09:57 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15258:62589</guid>
      <author>anonymous_user</author>
      <link>http://userscripts.org/posts/62589</link>
    </item>
    <item>
      <title>Archived Comments, replied by moryabdi</title>
      <description>&lt;p&gt;you can use redirect remover an extension of firefox with great option..&lt;/p&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:12:14 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15258:62590</guid>
      <author>moryabdi</author>
      <link>http://userscripts.org/posts/62590</link>
    </item>
    <item>
      <title>Archived Comments, replied by Richard H. Tingstad</title>
      <description>&lt;p&gt;Any comments are welcome..&lt;/p&gt;</description>
      <pubDate>Wed, 17 Oct 2007 08:54:01 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15258:62591</guid>
      <author>Richard H. Tingstad</author>
      <link>http://userscripts.org/posts/62591</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:05:27 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:15258:62588</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/62588</link>
    </item>
  </channel>
</rss>
