User:Kanegasi/copysectionlink.js

$(document).ready(function {   var i = 0;    $('span.mw-headline').each(function { var $pilcrowlink = $('¶').attr({           id:    'sectiontitlecopy' + i,            href:  mw.config.get('wgServer') + mw.config.get('wgArticlePath') + mw.config.get('wgPageName') + ' # ' + $(this).attr('id'),            style: 'display:none;'        }); $(this).append(' ', $pilcrowlink); $(this).parent.attr({           onMouseOver: '$("#sectiontitlecopy' + i + '").attr("style","display:inline")',            onMouseOut: '$("#sectiontitlecopy' + i + '").attr("style","display:none")'        }); i++; }); });