Skip to content

Instantly share code, notes, and snippets.

@wmh
Created January 26, 2018 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmh/ae1c1e990986d949e11f2756792b92bf to your computer and use it in GitHub Desktop.
Save wmh/ae1c1e990986d949e11f2756792b92bf to your computer and use it in GitHub Desktop.
Fix go-ethereum wiki anchors
# https://github.com/ethereum/go-ethereum/wiki/Management-APIs
document.querySelectorAll('a').forEach(function (a) {
var href = a.getAttribute('href');
if (href.indexOf('#') === 0 && href !== href.toLowerCase()) {
a.setAttribute('href', href.toLowerCase());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment