MyAnimeList(MAL) - Anime Recommendations Filter

This script can hide recommendations that you already have on your list/don't have on your list

< 脚本 MyAnimeList(MAL) - Anime Recommendations Filter 的反馈

提问 / 留言

§
发布于:2016-08-15

Request

Can you make it hide the ones that you watched and dropped and highlight the ones that you have on plan to watch/on hold? If possible would be nice that the color for the highlighted entries would be different (one for on hold and one for plan to watch). Could you also extend the scrip to work on all the page that list anime like http://myanimelist.net/search/all?q=* ? and http://myanimelist.net/anime.php?q=* user lists, lists made by x, list of seasonal anime etc? Thanks in advance.

Cptmathix作者
§
发布于:2016-08-15
编辑于:2016-08-15

"Can you make it hide the ones that you watched and dropped and highlight the ones that you have on plan to watch/on hold? If possible would be nice that the color for the highlighted entries would be different (one for on hold and one for plan to watch)."

- Sorry not going to do that because than I'll need to retrieve user information from the API and the script won't load as fast anymore.

"Could you also extend the scrip to work on all the page that list anime like http://myanimelist.net/search/all?q=* ? and http://myanimelist.net/anime.php?q=* user lists, lists made by x, list of seasonal anime etc?"

- I have another script for this: https://greasyfork.org/en/scripts/17961-myanimelist-mal-search-filter and seasonal anime has its own filter already.

§
发布于:2016-08-15
编辑于:2016-08-15

Oh I see. If you don't wanna implement it for everybody could you tell me how to do the first request so I can use it only for myself?

Cptmathix作者
§
发布于:2016-08-16

I updated the script. It's not exactly what you asked for but that's the best I can do without changing the core of my script. So I can't tell you how to do it because I'll basically have to rewrite the hide and show part of the script...

If you want you can also do this with on hold entries:

change line 274-278 to the code below:

for (var i = 0; i < rawList.length; i++) {
    if (statusList[i].textContent != '6' || statusList[i].textContent != '3') {
        list.push(rawList[i].textContent);
    }
}
Cptmathix作者
§
发布于:2016-08-16
编辑于:2016-08-16

Oh and if you want to change stuff in the code, remember that I cache some information. The changes won't have any effect unless you change an entry on your anime/mangalist.

§
发布于:2016-08-16

Thanks a lot.

§
发布于:2016-08-16

Did you also change you "search filter" script to keep the "plan to watch" entries?

Cptmathix作者
§
发布于:2016-08-16

No but here is the code:

function HideDivs(){
    for (var i = 0; i < allElements.snapshotLength; i++){
        var EditLink = allElements.snapshotItem(i);
        var notPTW = !EditLink.classList.contains("plantowatch");
        if (EditLink.parentNode.parentNode.parentNode.classList.contains("js-seasonal-anime") && notPTW)
            EditLink.parentNode.parentNode.parentNode.style.display="none";
        else if (notPTW) {
            EditLink.parentNode.parentNode.style.display="none";
        }
    }
}

function ShowDivs(){
    for (var i = 0; i < allElements.snapshotLength; i++){
        var EditLink = allElements.snapshotItem(i);
        var notPTW = !EditLink.classList.contains("plantowatch");
        if (EditLink.parentNode.parentNode.parentNode.classList.contains("js-seasonal-anime") && notPTW)
            EditLink.parentNode.parentNode.parentNode.removeAttribute('style');
        else if (notPTW) {
            EditLink.parentNode.parentNode.removeAttribute('style');
        }
    }
}
Cptmathix作者
§
发布于:2016-08-16

you don't have to change the code of the search filter, just update the script.

§
发布于:2016-08-16

Thank you again.

发布留言

登录以发布留言。