This script adds anchors for all single line, non-empty block comments to all .css and .js pages so that you can link to a “section” of a script or stylesheet. All anchors are dot encoded (same this as percent encoded with . instead of %).
[[?title=User_talk:Technical_13/Scripts/Gadget-codeAnchors&action=edit§ion=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Report a bug |?title=User_talk:Technical_13/Scripts/Gadget-codeAnchors&action=edit§ion=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Report a bug]][[?title=User_talk:Technical_13/Scripts/Gadget-codeAnchors&action=edit§ion=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Request a feature |?title=User_talk:Technical_13/Scripts/Gadget-codeAnchors&action=edit§ion=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Request a feature]]
Using this script
On the English Wikipedia
This script can be imported to skin.js or common.js by adding: