<?xml version="1.0" encoding="Windows-1252"?>
<node id="436993" title="Monk Links - Copy Perlmonks-links to the clipboard in on-site-format" created="2005-03-05 23:56:46" updated="2005-08-14 07:10:32">
<type id="120">
perlmeditation</type>
<author id="241598">
holli</author>
<data>
<field name="doctext">
Fellow monks,&lt;br&gt;&lt;br&gt;
I just have created an extension for Firefox called &lt;i&gt;Monk Links&lt;/i&gt;. It creates a new context  menu entry (&lt;i&gt;Copy link as PM shortcut&lt;/i&gt;) that copies links from &lt;i&gt;perlmonks.org&lt;/i&gt;, &lt;i&gt;perlmonks.com&lt;/i&gt; or &lt;i&gt;perlmonks.thepen.com&lt;/i&gt; to the clipboard while transforming it to the internal site format.
&lt;/p&gt;
&lt;p&gt;
For example, if you invoke the context menu on a link like&lt;br&gt;&lt;br&gt; &lt;code&gt;http://www.perlmonks.org/?node_id=12345&lt;/code&gt;,&lt;br&gt;&lt;br&gt; and choose &lt;i&gt;Copy link as PM shortcut&lt;/i&gt;, the text&lt;br&gt;&lt;br&gt; &lt;code&gt;[id://12345]&lt;/code&gt;&lt;br&gt;&lt;br&gt;  will end up in your system's clipboard.&lt;br&gt;&lt;br&gt; Then you can easily paste it wherever you want. In your article, the CB, etc.
&lt;/p&gt;
&lt;p&gt;Tested on WindowsXP and Firefox 1.0 only. Let me know if it does not work for your system.&lt;/p&gt;

[http://holli.perlmonk.org/firefox/monklinks-0.2.xpi|download version 0.2]&lt;br&gt;
[http://holli.perlmonk.org/firefox/monklinks-0.3.xpi|download version 0.3]&lt;br&gt;&lt;br&gt;
&lt;strike&gt;&lt;b&gt;Caveat:&lt;/b&gt;&lt;br&gt;
To install you need to save the xpi-file to disk and then do &lt;code&gt;
File-&gt;open file-&gt;open monklinks.xpi
&lt;/code&gt;
That is because the perlmonk-server does not send the correct mime-type for the xpi-file. I'll contact [jcwren] to fix that.&lt;/strike&gt;&lt;br&gt;&lt;br&gt;
You also have to &lt;b&gt;restart Firefox&lt;/b&gt; after the install to make it work (just as with any other extension).
&lt;br&gt;&lt;br&gt;&lt;b&gt;Update:&lt;/b&gt;&lt;br&gt;
Added support for &lt;i&gt;perlmonks.com&lt;/i&gt;, &lt;i&gt;www&lt;/i&gt; is now optional.
&lt;br&gt;&lt;br&gt;&lt;b&gt;Update:&lt;/b&gt;&lt;br&gt;
Added &lt;i&gt;.htaccess&lt;/i&gt; file as adviced by [id://235663]
&lt;br&gt;&lt;br&gt;&lt;b&gt;Update:&lt;/b&gt;&lt;br&gt;
Added version 0.3 that copes with &lt;i&gt;cpan://&lt;/i&gt; and &lt;i&gt;kobes://&lt;/i&gt; links and links from &lt;i&gt;perlmonks.thepen.org&lt;/i&gt;.
&lt;br&gt;&lt;br&gt;&lt;b&gt;Update:&lt;/b&gt;&lt;br&gt;
[bart] has made various [id://581043|upgrades] to the extension. However, there's still the version problem. In [bart]s version runs only till FF 2.0. To get it run a in higher version do the following:
&lt;ul&gt;
&lt;li&gt;Download the .xpi-file&lt;/li&gt;
&lt;li&gt;Rename it to .zip&lt;/li&gt;
&lt;li&gt;Extract the file install.rdf&lt;/li&gt;
&lt;li&gt;edit the file and replace &lt;c&gt;&lt;em:maxVersion&gt;2.0&lt;/em:maxVersion&gt;&lt;/c&gt; with the version of your FF&lt;/li&gt;
&lt;li&gt;put the file back in the .zip&lt;li&gt;
&lt;li&gt;rename the .zip file back .xpi&lt;/li&gt;
&lt;li&gt;install the extension&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-241598"&gt;
&lt;br&gt;&lt;br&gt;holli, &lt;i&gt;/regexed monk/&lt;/i&gt;
&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
