Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Kanji (Parson)
on Oct 21, 2005 at 19:32 UTC ( [id://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.


Log In?
Username:
Password:

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

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

    No recent polls found