Forum Settings
Forums
New
Jun 4, 2022 3:22 PM
#1

Offline
Dec 2019
3519
https://greasyfork.org/en/scripts/446006-friend-requests-fix-mal

Enjoy!!!
Click here to see My Tampermonkey Scripts For MAL

If you like my work, please consider supporting it!
Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io
Jun 4, 2022 4:59 PM
#2

Offline
May 2010
1239
you have a bug as it's linking to profile comments, also for some reason it doesn't always load for me and it's not quite a complete bugfix as it would need to show a "View more" link on https://myanimelist.net/notification/friend_request/ then the disabled "Prev" and enabled "Next" link on https://myanimelist.net/notification/friend_request/history and https://myanimelist.net/notification/friend_request/history?p=1 however it works good enough not to need to complicate things.
ShaggyZEJun 4, 2022 5:15 PM
Jun 4, 2022 5:16 PM
#3

Offline
Jun 2021
199
ShaggyZE said:
you have a bug as it's linking to profile comments

Yes, this code does not fix it.


Yes, it can be solved manually.
Jun 4, 2022 5:56 PM
#4

Offline
Dec 2019
3519
@ShaggyZE

Thanks.

@Danielf6

I've fixed it now.
Click here to see My Tampermonkey Scripts For MAL

If you like my work, please consider supporting it!
Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io
Jun 4, 2022 6:13 PM
#5

Offline
Jun 2021
199
hacker09 said:
I've fixed it now.

Not exactly, when I click on "Friend request" in Notification panel, I see only the last few. When I click next it goes to second page which is empty, then when I click prev it's ok.
Jun 4, 2022 6:49 PM
#6

Offline
Dec 2019
3519
@Danielf6

Are you using this link?
https://myanimelist.net/notification/friend_request

When you click on next this should load
https://myanimelist.net/notification/friend_request/history?p=1

and so on, it's working for me but it shows "no history." from page 4 on, because I did not get that many friend requests in the past 3 years.

If you didn't get enough friend requests in the last 3 years, then you might see only 1/2 next pages before you see the "no history." text
Click here to see My Tampermonkey Scripts For MAL

If you like my work, please consider supporting it!
Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io
Jun 5, 2022 1:51 AM
#7

Offline
Jun 2021
199
hacker09 said:
@Danielf6

Are you using this link?
https://myanimelist.net/notification/friend_request

When you click on next this should load
https://myanimelist.net/notification/friend_request/history?p=1

and so on, it's working for me but it shows "no history." from page 4 on, because I did not get that many friend requests in the past 3 years.

If you didn't get enough friend requests in the last 3 years, then you might see only 1/2 next pages before you see the "no history." text

The first is https://myanimelist.net/notification/friend_request, if I go "next" then I go to https://myanimelist.net/notification/friend_request/history?p=2, then if I go "prev" I go to https://myanimelist.net/notification/friend_request/history?p=1
Jun 5, 2022 12:11 PM
#8

Offline
Dec 2019
3519
@Danielf6

I've fixed it now.
Click here to see My Tampermonkey Scripts For MAL

If you like my work, please consider supporting it!
Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io
Jun 5, 2022 2:32 PM
#9

Offline
Jun 2021
199
hacker09 said:
@Danielf6

I've fixed it now.

Yes, it is fixed now. Thank you for the code.
Jun 5, 2022 8:30 PM

Offline
May 2010
1239
@hacker09

this is what I was trying to explain in my first post and yea it is fixed now however as I said it does complicate things a bit so if you are on page 1 and click prev you go to https://myanimelist.net/notification/friend_request/history?p=0 which is the only bug I see now.
ShaggyZEJun 5, 2022 8:42 PM
Jun 5, 2022 8:41 PM

Offline
Dec 2019
3519
@ShaggyZE

I've fixed it now.
Click here to see My Tampermonkey Scripts For MAL

If you like my work, please consider supporting it!
Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io
Jun 5, 2022 8:59 PM

Offline
May 2010
1239
Perfect, working almost like the other history pages though they just disable the prev link on pages https://myanimelist.net/notification/profile_comment/history and https://myanimelist.net/notification/profile_comment/history?p=1 , but this is fine, also I took the liberty of changing the first page link to "View more" like the other history pages but that's not a big deal so you don't necessarily need to change that.
    { //Starts the if condition
      document.querySelectorAll("div.notification-pagination")[1].insertAdjacentHTML('BeforeEnd', `<a href="https://myanimelist.net/notification/friend_request/history?p=1">View more</a>`); //Add the view more button
    } //Finishes the if condition
ShaggyZEJun 5, 2022 9:07 PM

More topics from this board

» 【 ART THREAD 】Let's share our art! ‪‪❤︎‬ ( 1 2 3 4 5 )

mewmewforever - Aug 30, 2024

204 by Outfiltrator »»
1 hour ago

» Four Ages!

Robert_SS_Gordon - Feb 21

47 by Robert_SS_Gordon »»
Yesterday, 9:17 AM

» AniTaste - cross-site anime list comparator

Mciej - Sep 21

1 by Retro8bit »»
Sep 21, 5:29 PM

» Saeryen's Songs!

Saeryen - Jul 25

5 by Saeryen »»
Sep 20, 1:54 PM

» Share Your YouTube Channel/Videos! ( 1 2 3 4 5 ... Last Page )

nin-tendo - Dec 16, 2022

584 by Senery »»
Sep 20, 10:01 AM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login