Greasy Fork

Fimfiction - Verbose

enter something useful

目前为 2014-10-10 提交的版本。查看 最新版本

// ==UserScript==
// @name       Fimfiction - Verbose
// @namespace  arcum42
// @version    0.3
// @description  enter something useful
// @match      http://www.fimfiction.net/*
// @copyright  2014+, You
// ==/UserScript==

//$("span.by").each(function()
//{
//	$(this).find("b").replaceWith("by");
//    $(this).css("color", "#507e2c");
//}
//);

$("a.story_category").each(function() {
    txt = $(this).attr("title");
    if (txt == "Alternate Universe") {
        txt = "AU";
    }
    $(this).text(txt);
}
);

$(".story-card h2 span, .story_content_box a:first").each(function() {
    txt = $(this).attr("title").replace("Rated ", "").replace("for", "");
    if (txt == " adults ( 18+ )") {
        txt = "Mature";
    }
    
    $(this).text(txt);
    $(this).css("line-height", "20px");
}
);

$("div.inner_margin").css("max-width","90%");