Skip to content

Fork and fix User:andrybak/Scripts/copy-section-link.js (formerly User:Enterprisey/copy-section-link.js) #130

@NovemLinguae

Description

@NovemLinguae

Bugs

image

  • race condition with xfdcloser gadget. using TFD as an example, if this userscript's link ends up between the heading and the XFDCloser links, it's fine. but if this userscript's links end up after the XFDCloser links, it will grab the wrong #SectionName (because it's reading the XFDCloser link ID instead of the heading ID)
image
  • the link goes away after you do a visual editor edit/save. this can be fixed using mw.hook( 'postEdit' ).add(

Features

  • In addition to current things to copy, should have an option to copy title#section without being surrounded by brackets [[ ]]
  • paragraph symbol should be visible all the time, so stuff doesn't slide around
  • copy button for article title
  • offer both permalinks and section links

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions