Created
April 5, 2012 08:04
-
-
Save suchi/2308894 to your computer and use it in GitHub Desktop.
FreeStyle Wiki Permlinker
This file contains 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== | |
var a = document.querySelectorAll('h2>a,h3>a,h4>a'); | |
for(i = 0; i < a.length; i++) { | |
h = a[i].parentNode; | |
dag = d.createElement('a'); | |
dag.classList.add('anchor_super'); | |
dag.innerHTML = "†"; | |
dag.href = '#' + a[i].name; | |
h.appendChild(dag); | |
} void(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cherenkovさんの添削を反映
https://gist.github.com/2362580/