Greasy Fork is available in English.
Übersichtlichere Darstellung der Favoriten
< 腳本BS Favoritendarstellung的回應
neuer codedocument.getElementById("other-series-nav").children[0].onmouseenter = function () { var list = document.getElementById("other-series-nav").children[1].children; var width = document.getElementById("other-series-nav").getBoundingClientRect().width; var offset = 0; var amount = 0; for (var i = 0; i < list.length; i++) { list[i].style.width = list[i].parentElement.parentElement.children[0].offsetWidth + "px"; list[i].style.position = "absolute"; list[i].style.top = amount + "px"; list[i].style.left = (offset * width) + "px"; amount += JSON.parse(document.defaultView.getComputedStyle(list[i]).height.split("px")[0]); if (document.getElementById("other-series-nav").getBoundingClientRect().top+amount > sc.g.W().innerHeight - 100) { offset++; amount = 0; } } };
登入以回復
neuer code
document.getElementById("other-series-nav").children[0].onmouseenter = function () {
var list = document.getElementById("other-series-nav").children[1].children;
var width = document.getElementById("other-series-nav").getBoundingClientRect().width;
var offset = 0;
var amount = 0;
for (var i = 0; i < list.length; i++) {
list[i].style.width = list[i].parentElement.parentElement.children[0].offsetWidth + "px";
list[i].style.position = "absolute";
list[i].style.top = amount + "px";
list[i].style.left = (offset * width) + "px";
amount += JSON.parse(document.defaultView.getComputedStyle(list[i]).height.split("px")[0]);
if (document.getElementById("other-series-nav").getBoundingClientRect().top+amount > sc.g.W().innerHeight - 100) {
offset++;
amount = 0;
}
}
};