Okay since there seems to be a few people asking, I'll answer to how I get the friends list.
But you should know better as to ask.
Friends list can only be accessed from your logged in account. So that means if you're logged into the website, you can access via the alog.
But alog is a pain, not fast and there are pages to iterate through. So I go to where the alog get it's data. Asking nicely doesn't work though, because I'm not you and linkify can only run on the forums, not on other parts of site due to my security policy.
So Linkify looks to see if you have a forum page open, if so it grabs your session ID.
Then linkify's setting page (You see the setting page cant interact with rs pages cos it's not the same domain) send a message to the background processes, who then sends a message to linkify in the scope of the page you have open. This message is instructions to inject a script (ajax) into the current page along with session ID. Request from non RS pages are rejected.
This process now happens within the scope of the page you're logged in to. Meaning RS website sees you ID and sees the request is from a RS page.
As the script retrieves the data, it sends a message back with an array of names. The options page collects the data bit by bit. If there is an error the injected script will gather some info on what happened, then send a message saying something went wrong.
If it's success a final message is sent, so the options page can stop listening. Then regardless of success or fail, the last part of script calls (NOOP) a function to rename itself to nothing, so it can't ever run again and so multiple instances can't run at the same time
Finally the options page (who can't talk to RS website) has either a list of names or stack of errors to process
So there you go, the beauty of it is in it's simplicity
Oh btw (and most of you should know this) my friends have a saying...
Don't ask Indy, because she'll tell you!
But you should know better as to ask.
Friends list can only be accessed from your logged in account. So that means if you're logged into the website, you can access via the alog.
But alog is a pain, not fast and there are pages to iterate through. So I go to where the alog get it's data. Asking nicely doesn't work though, because I'm not you and linkify can only run on the forums, not on other parts of site due to my security policy.
So Linkify looks to see if you have a forum page open, if so it grabs your session ID.
Then linkify's setting page (You see the setting page cant interact with rs pages cos it's not the same domain) send a message to the background processes, who then sends a message to linkify in the scope of the page you have open. This message is instructions to inject a script (ajax) into the current page along with session ID. Request from non RS pages are rejected.
This process now happens within the scope of the page you're logged in to. Meaning RS website sees you ID and sees the request is from a RS page.
As the script retrieves the data, it sends a message back with an array of names. The options page collects the data bit by bit. If there is an error the injected script will gather some info on what happened, then send a message saying something went wrong.
If it's success a final message is sent, so the options page can stop listening. Then regardless of success or fail, the last part of script calls (NOOP) a function to rename itself to nothing, so it can't ever run again and so multiple instances can't run at the same time
Finally the options page (who can't talk to RS website) has either a list of names or stack of errors to process
So there you go, the beauty of it is in it's simplicity
Oh btw (and most of you should know this) my friends have a saying...
Don't ask Indy, because she'll tell you!
22-Mar-2015 02:20:18 - Last edited on 22-Mar-2015 02:54:27 by Indecent Act