Jump to content

User:Enterprisey/copy-section-link

From Wikipedia, the free encyclopedia
copy-section-link
Author(s)Enterprisey
StatusStable
UpdatedJune 20, 2024; 4 months ago (2024-06-20)
BrowsersFirefox
SkinsVector
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 get rid of those square brackets.

window.copySectionLinkNoSquareBrackets = true;

See also

[edit]