-
-
Save syoichi/2365793 to your computer and use it in GitHub Desktop.
add permlink dagger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FreeStyleWiki PermLinker | |
// @namespace http://www.suchi.org/ | |
// @version 0.2 | |
// @description add permlink dagger | |
// ==/UserScript== | |
Array.prototype.forEach.call( | |
document.querySelectorAll('h2 > a[name], h3 > a[name], h4 > a[name]'), | |
function addAnchor(link) { | |
link.parentNode.insertAdjacentHTML( | |
'BeforeEnd', | |
'<a class="anchor_super" href="#' + link.name + '">†</a>' | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment