sudofry's profile picture

Published by

published
updated

Category: Web, HTML, Tech

Spacehey Online & Deleted Friends Checker Userscript

ATTENTION - This script will no longer be receiving updates. Feel free to use it if you wish, but this script has been combined with 3 other scripts into a Spacehey Superscript.

Click Here to go to the Spacehey Superscript


Whenever you load your home page, a list of all your friends will be saved in the local storage of your browser. Before this happens, it compares the current friend list to what was previously in the list.

When a friend no longer shows up in your list, for whatever reason, you will see a message on your home page like in the image below.

The "Cool New People" section will be replaced with an "Online Friends" section.

In order to run this script you'll need the Tampermonkey add-on which can be used with Chrome, Brave, Microsoft Edge, Safari, Opera Next, and Firefox.

After installing Tampermonkey, make sure developer mode is turned on.

How to enable developer mode in Tampermonkey

Click the link below if you want to try it out.

Spacehey Online & Deleted Friends Checker


11 Kudos

Comments

Displaying 3 of 3 comments ( View all | Add Comment )

Tatsu0ni

Tatsu0ni's profile picture

really dope that this exists now


Report Comment



I've become so used to the online friends thing that now when I visit Spacehey on my phone (without the script) it just seems weird.

If you like this, I also have some other scripts you might enjoy. -> Spacehey Userscripts

by sudofry; ; Report

‎♡‧₊˚amaim

‎♡‧₊˚amaim's profile picture

link not working :(


Report Comment



Which link? They are all working fine for me?

by sudofry; ; Report

Vasilis

Vasilis's profile picture

hey, thats really cool! why repeated code tho? :(


Report Comment



also i see that it saves the display names, what if someone changes their name? i think ids would work better

by Vasilis ; ; Report

The repeated code is because if there is more than one page of friends it needs to move on to the next page. Each page only displays 45 max.

by sudofry; ; Report

You can use the same function for all pages

by Vasilis ; ; Report

Ah I see what you mean. Yeah I kinda just threw it together on my lunch break and was just stoked I got it to work. I'll definitely change that. Thanks for pointing that out!

by sudofry; ; Report

Updated. Thanks again!

by sudofry; ; Report

I was going to use id's at first because I was going to make them hyperlinks. But if someone deletes you, deletes their own profile, or they block you, there's really no need to link to them anyway so I figured names would be sufficient. If a user changes their name, the function doesn't fire. It only goes off if your friend list has less than the saved list. And it updates your saved list whenever you hit your home page.

by sudofry; ; Report

Oh i see!

by Vasilis ; ; Report