@SheyCroix
😂, Sorry I'm just joking...
Oh, okay. Got it.
Yeah maybe the click is the reason...
Could you please try it again and let me know if the script really has a bug or not?
If it does I want to fix it ...
At first it was automatic upon page loading, but that was because I was getting only the first friends page stats.
Now it works properly by getting all scores of all friends across all pages.
Each page has like 35 friends on it with their scores.
So if you divide your amount of friends by 35 and open an famous entry, you will likely get the total amount of Network requests that my script will be doing to get all friends pages and their scores.
It may be a lot like much more than 10 network requests for a couple Mal users that use my script.
MAL hates anything related to doing network requests directly to MAL.
Try opening 30/60 or more entry pages at once and you will likely see their annoying blue screen where you have to click on a button to prove you are not a bot.
So it's highly recommend that this script is only used once every 10 mins or more at least, no more often than that unless you are pretty sure you have only a few friends, and the entry you are in is very unpopular,like music entries.
If all those conditions are met you kinda can use this script as many times as you want.
Otherwise, only use it when you really, really want to know what's your friends weighted score for that entry, so you won't see the annoying blue screen to prove you're not a bot.
Even if you don't see that screen, half or more of the pages requested by the script would be blocked, making the script never end, break and be unable to display anything to you.
So to use it with care, I didn't automate it at all besides the getting all pages and doing the whole math part.
I could make the script automatically run when the user hovers the mouse anywhere on the page, or when the user scrolls down/up the website.
Quite a good amount of my scripts are like that, just to make sure it won't automatically run just because the entry was opened.
Sometimes users open a page accidentally, or close it before even opening the browser tab or scrolling the website down a little bit.
To prevent all of that, especially having the script break with 404 https requests due to too many network requests being made at once.
I've chosen to let AND HOPE that users will be smart and only manually click there to run the script when they really want to see all their friends average score...
Sorry for the freaking long explanation...😅 |