User:Enterprisey/copy-section-link
Appearance
Author(s) | Enterprisey |
---|---|
Status | Stable |
Updated | June 20, 2024 |
Browsers | Firefox |
Skins | Vector |
Source | User: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:
- Place
{{subst:iusc|User:Enterprisey/copy-section-link.js}}
on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js. - 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;