bangumi sort

sort items in alphabet order so you won't confuse any more

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         bangumi sort
// @name:zh-CN   Bangumi 番组计划 - 排序
// @namespace    http://ladio.me/
// @version      0.2
// @description  sort items in alphabet order so you won't confuse any more
// @description:zh-CN  按字母顺序排序观看中的节目单, 不再晕菜了
// @author       Xuefer
// @include      http://bangumi.tv/*
// @include      http://bgm.tv/*
// @include      http://chii.in/*
// @run-at       document-start
// ==/UserScript==

function changeLayout() {
    // wait for element to finish
    if (!unsafeWindow.loadXML) {
        setTimeout(changeLayout, 1);
        return;
    }
    var list = document.getElementById("cloumnSubjectInfo");
	var link = document.createElement("a");
	link.href = "https://greasyfork.org/en/scripts/382353-bangumi-enhancement"
	var text = document.createTextNode("请替换 bangumi sort 为另一个脚本");
	link.style.color = "red";
	link.style.textDecoration = "underline";
	link.appendChild(text);
	list.insertBefore(link, list.childNodes[0]);
}
changeLayout();