注意:在您儲存之後您必須清除瀏覽器快取才可看到最新的變動。
?_=1來訪問最新頁面。
var _addText = '{{Documentation|content=* 工具介紹見[[User:BearBin/js#LyricStyleToggle]]。\n* 源代碼見[https://github.com/BearBin1215/MoegirlPedia/blob/master/src/gadgets/LyricStyleToggle GitHub]。}}';
// <nowiki>
$((()=>(async()=>{if(!(document.getElementsByClassName("Lyrics")[0]||document.getElementsByClassName("poem")[0]&&$("#catlinks").text().match(/音[樂樂]作品/)))return;await mw.loader.using(["user.options","ext.gadget.libBottomRightCorner","ext.gadget.site-lib"]);const t=insertToBottomRightCorner("歌詞除色").attr("id","lyric-style-toggle").css({"user-select":"none",order:"60"});t.on("click",(()=>{$("body").toggleClass("lyric-style-toggle-on"),document.getElementsByClassName("lyric-style-toggle-on")[0]?($(".Lyrics-original").each((function(){this.allStyles=$(this).attr("style"),$(this).attr("style","color:#000")})),$(".Lyrics-translated").each((function(){this.allStyles=$(this).attr("style"),$(this).attr("style","color:#656565")})),$(".Lyrics, .Lyrics span:not(.mw-collapsible), .poem, .poem span").each((function(){this.allStyles=$(this).attr("style"),$(this).attr("style","")})),t.text("恢復樣式")):($(".Lyrics, .Lyrics-original, .Lyrics-translated, .Lyrics span:not(.mw-collapsible), .poem, .poem span").each((function(){$(this).attr("style",this.allStyles)})),t.text("歌詞除色"))}))})()));
// </nowiki>