Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Fellow monks,

I just have created an extension for Firefox called Monk Links. It creates a new context menu entry (Copy link as PM shortcut) that copies links from perlmonks.org, perlmonks.com or perlmonks.thepen.com to the clipboard while transforming it to the internal site format.

For example, if you invoke the context menu on a link like

http://www.perlmonks.org/?node_id=12345,

and choose Copy link as PM shortcut, the text

[id://12345]

will end up in your system's clipboard.

Then you can easily paste it wherever you want. In your article, the CB, etc.

Tested on WindowsXP and Firefox 1.0 only. Let me know if it does not work for your system.

download version 0.2
download version 0.3

Caveat:
To install you need to save the xpi-file to disk and then do
File->open file->open monklinks.xpi
That is because the perlmonk-server does not send the correct mime-type for the xpi-file. I'll contact jcwren to fix that.


You also have to restart Firefox after the install to make it work (just as with any other extension).

Update:
Added support for perlmonks.com, www is now optional.

Update:
Added .htaccess file as adviced by The Mad Hatter

Update:
Added version 0.3 that copes with cpan:// and kobes:// links and links from perlmonks.thepen.org.

Update:
bart has made various upgrades to the extension. However, there's still the version problem. In barts version runs only till FF 2.0. To get it run a in higher version do the following:
  • Download the .xpi-file
  • Rename it to .zip
  • Extract the file install.rdf
  • edit the file and replace <em:maxVersion>2.0</em:maxVersion> with the version of your FF
  • put the file back in the .zip
  • rename the .zip file back .xpi
  • install the extension


holli, /regexed monk/

In reply to Monk Links - Copy Perlmonks-links to the clipboard in on-site-format by holli

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found