Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Navigate to OP while replying deep in a thread?

by Kanji (Parson)
on Oct 21, 2005 at 19:32 UTC ( #502106=note: print w/ replies, xml ) Need Help??


in reply to Navigate to OP while replying deep in a thread?

You could use some JavaScript via Free Nodelet Settings or proprietary browser extension (eg Greasemonkey) to rewrite the 'Comment on' node.

<!-- Free Nodelet example. Replaces the preview of the comment's parent node with a preview of the parent AND its children. Extending it to preview the entire thread (eg, root and all children) left as an exercise to the reader and to those with better knowledge of JS and/or PM tickers. :-) --> <script language="javascript1.2"> var lb = "\x5B"; // PM doesn't like you using var rb = "\x5D"; // square-brackets directly var allDivs = document.getElementsByTagName('div'); var pNodes = document.getElementsByName('note_parent_node'); if (pNodes.length) { pNodeID = eval('pNodes' + lb + 0 + rb + '.value'); for (var i = 0; i < allDivs.length; i++) { var thisDiv = eval("allDivs" + lb + i + rb); if (thisDiv.className == 'preview') { var previewHtml = thisDiv.innerHTML.split(/<hr/); var previewForm = eval("previewHtml" + lb + 1 + rb); thisDiv.innerHTML = '<iframe name="nodeThread"' + ' src="/?replies=1;displaytype=print;node_id=' + pNodeID + '" width="100%" height="50%"></iframe><hr' + previewForm; } } } </script>

    --k.



Comment on Re: Navigate to OP while replying deep in a thread?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://502106]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-08-01 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls