Browser/skin compatibility table
| |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Author(s) | Technical 13 |
---|---|
Status | Stable |
Updated | February 2, 2014 (10 years ago) |
Browsers | Firefox 26 |
Skins | Vector |
Source | User:Technical 13/SandBox/Gadget-codeAnchors.js |
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 %).
Using this script
editOn the English Wikipedia
editThis script can be imported to skin.js or common.js by adding:
importScript( 'User:Technical 13/Scripts/Gadget-codeAnchors.js' );// [[User:Technical 13/Scripts/Gadget-codeAnchors]]
Step two
editOnce you have saved the above to your skin.js or common.js, you will have to WP:BYPASS your cache to see the effects.