User:Enterprisey/copy-section-link

copy-section-link
Author(s)Enterprisey
StatusStable
UpdatedSeptember 8, 2021; 2 years ago (2021-09-08)
Browser supportFirefox
Skin supportVector
SourceUser:Enterprisey/copy-section-link.js

Section headers, on hover, have a pilcrow (¶ symbol) that, when clicked, shows a popup with an appropriate wikilink and external link. Very similar idea to User:Bility/copySectionLink (from which a little code was copied), but this script also shows a wikilink instead of just the external link, and also lets you get the permalink.

Installation instructions edit

Hint: It's much easier if you get ScriptInstaller, then navigate to User:Enterprisey/copy-section-link.js and click "Install" at the top.

However, here's the manual method:

  1. Place {{subst:iusc|User:Enterprisey/copy-section-link.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. Clear your cache and enjoy!

Usage edit

Add the following code to your common.js to to true to get rid of those square brackets.

window.copySectionLinkNoSquareBrackets = true;

See also edit