Created
August 25, 2011 09:36
-
-
Save anonymous/1170323 to your computer and use it in GitHub Desktop.
Real World Haskell の HTML 中に節番号振るヤツ
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 section_numbers_for_real_world_haskell.js | |
// @namespace http://yuyat.jp/ | |
// @description Gives section numbers for Real World Haskell book online. | |
// @include http://book.realworldhaskell.org/read/* | |
// ==/UserScript== | |
(function () { | |
Array.forEach(document.getElementsByClassName('title'), function (e,i) { | |
if (i > 0) { | |
e.innerHTML = i + ". " + e.innerHTML; | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment