Greasy Fork is available in English.

Automatically Hide Ruby / Furigana

Does what it says on the tin?

目前為 2016-04-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Automatically Hide Ruby / Furigana
// @namespace   autoHideRubyKK
// @description Does what it says on the tin?
// @include	*
// @version     1.2
// @grant       none
// ==/UserScript==

window.addEventListener('load', function() {
	javascript: (function() {
	    var newcss = "ruby rt{ visibility:hidden; } ruby:hover rt{ visibility:visible; }";
	    if ("\v" == "v") {
	        document.createStyleSheet().cssText = newcss
	    } else {
	        var tag = document.createElement("style");
	        tag.type = "text/css";
	        document.getElementsByTagName("head")[0].appendChild(tag);
	        tag[(typeof document.body.style.WebkitAppearance == "string") ? "innerText" : "innerHTML"] = newcss
	    }
	})();
}, false);