mic_none

User:Bility/copySectionLink.js Source: en.wikipedia.org/wiki/User:Bility/copySectionLink.js

$(document).ready(function() {
  var i=0;
  $('span.mw-headline').each(function() {
    var $pilcrowlink = $('<a>¶</a>').attr({
      id:    'sectiontitlecopy'+i,
      href:  window.location.pathname+window.location.search+'#'+$(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++;
  });
});