perlmeditation
holli
Fellow monks,<br><br>
I just have created an extension for Firefox called <i>Monk Links</i>. It creates a new context menu entry (<i>Copy link as PM shortcut</i>) that copies links from <i>perlmonks.org</i>, <i>perlmonks.com</i> or <i>perlmonks.thepen.com</i> to the clipboard while transforming it to the internal site format.
</p>
<p>
For example, if you invoke the context menu on a link like<br><br> <code>http://www.perlmonks.org/?node_id=12345</code>,<br><br> and choose <i>Copy link as PM shortcut</i>, the text<br><br> <code>[id://12345]</code><br><br> will end up in your system's clipboard.<br><br> Then you can easily paste it wherever you want. In your article, the CB, etc.
</p>
<p>Tested on WindowsXP and Firefox 1.0 only. Let me know if it does not work for your system.</p>
[http://holli.perlmonk.org/firefox/monklinks-0.2.xpi|download version 0.2]<br>
[http://holli.perlmonk.org/firefox/monklinks-0.3.xpi|download version 0.3]<br><br>
<strike><b>Caveat:</b><br>
To install you need to save the xpi-file to disk and then do <code>
File->open file->open monklinks.xpi
</code>
That is because the perlmonk-server does not send the correct mime-type for the xpi-file. I'll contact [jcwren] to fix that.</strike><br><br>
You also have to <b>restart Firefox</b> after the install to make it work (just as with any other extension).
<br><br><b>Update:</b><br>
Added support for <i>perlmonks.com</i>, <i>www</i> is now optional.
<br><br><b>Update:</b><br>
Added <i>.htaccess</i> file as adviced by [id://235663]
<br><br><b>Update:</b><br>
Added version 0.3 that copes with <i>cpan://</i> and <i>kobes://</i> links and links from <i>perlmonks.thepen.org</i>.
<br><br><b>Update:</b><br>
[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:
<ul>
<li>Download the .xpi-file</li>
<li>Rename it to .zip</li>
<li>Extract the file install.rdf</li>
<li>edit the file and replace <c><em:maxVersion>2.0</em:maxVersion></c> with the version of your FF</li>
<li>put the file back in the .zip<li>
<li>rename the .zip file back .xpi</li>
<li>install the extension</li>
</ul>
<div class="pmsig"><div class="pmsig-241598">
<br><br>holli, <i>/regexed monk/</i>
</div></div>