User:Technical 13/Scripts/Gadget-codeAnchors

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 %).

On the English Wikipedia
This script can be imported to skin.js or common.js by adding:

Step two
Once you have saved the above to your skin.js or common.js, you will have to WP:BYPASS your cache to see the effects.