in reply to Allowing c&p of node headers
<script> var search=location.search; var id=search.match(/\Wnode_id=(\d+).*/); if ( id.length>0) {document.writeln("`[id://"+id`[1`]+"`]")} </script>
UPDATE:
this will replace the link text in place
<script> var tbar=document.getElementById('titlebar-bottom'); tbar.innerHTML=tbar.innerHTML.replace(/#(<a.*?>)(\d{4,10})(<\/a>)/,"$1 +`[id://$2`]$3") </script>
please note, the backquotes before brackets (`[) are needed to escape them from the monastery markup in the Free Nodelet Settings. If you wanna use this code in other JS mechanisms you have to strip them.
Cheers Rolf
|
|---|