Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-07-08 04:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls