Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Bookmarklet to view original of node

by adrianh (Chancellor)
on Jul 17, 2004 at 19:02 UTC ( [id://375264]=monkdiscuss: print w/replies, xml ) Need Help??

Occasionally you want to look at the original version of a node. Fortunately blakem provides this very service. Unfortunately I can never remember the URL since I have little brain. Having had to go look it up again recently I threw together the following little bookmarklet:

javascript:open( 'http://perlmonks.thepen.com/' + document.URL.substr( +42, document.URL.length) + '_orig.html' )

Click on this while looking at something with a node_id will take you to the original on thepen.com. Only tested in Safari, but should be easy enough to tweak.

Replies are listed 'Best First'.
Re: Bookmarklet to view original of node
by bmann (Priest) on Jul 17, 2004 at 19:36 UTC
    Very cool++. I've seen nodes change and often wondered what exactly was changed.

    Anyway, here's a little tweak (got rid of the magic number) to make it work with perlmonks.(org|net|com), www.perlmonks.(org|net|com) as well as that funky ads.pair.com url that I saw somewhere:

    javascript:open( 'http://perlmonks.thepen.com/' + document.URL.substr(document.URL.indexOf('=') + 1, document.URL.length) + '_orig.html' )

      I just didn't have the heart to remove a 'natural' 42 :-)

Re: Bookmarklet to view original of node
by gaal (Parson) on Jul 17, 2004 at 19:18 UTC
    ++ for the magic number. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://375264]
Approved by gmax
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found