Discuss Scratch

god286
Scratcher
1000+ posts

Scratchinfo - an epic website

PoIygon wrote:

god286 wrote:

ANOTHER NEW UPDATE!
This time, I've made it so that you can find out the user agent of other people. This is powered by ScratchDB.
You should also make a pie chart like PostPercent for forum posts and you should do another pie chart for follows, likes and favourites
Okay. But how would I display a chart for follows likes and favourites? Each follow is one user, and we can't figure out alternate accounts.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

Actually, my code is so cluttered up but I can't think of a way to fix it without cluttering it any more.. I definitely need tips on clean code lol

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

BUG FIX TIME!
I have fixed various bugs relating to ScratchDB not having a user indexed. There is a new error message that pops up when you attempt to access a user with no ScratchDB index.
Special thanks to @JoshAtticus on Scratch for reporting all these bugs.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
JoshAtticus
Scratcher
100+ posts

Scratchinfo - an epic website

god286 wrote:

-gr wrote:

I love it! UI is simple and basic, but at the same time shows all the information needed. If you add forum post count, then I'd totally use that!
Ok!

Also.. should this be open source or not? I already have it on github as private.
Yes, I think you should make it open source. That also would make it easier for people to help you if you have problems

~~I'm JoshAtticus!~~
I enjoy scratching, playing with tech and online privacy(not google)
This account is in archived state, I don't post projects here, and I might not be very active with comments and forums
I have 2 new accounts: @OSMANiC Team & @OSMANiCBetas



^^Made with Figlet^^










god286
Scratcher
1000+ posts

Scratchinfo - an epic website

JoshAtticus wrote:

god286 wrote:

-gr wrote:

I love it! UI is simple and basic, but at the same time shows all the information needed. If you add forum post count, then I'd totally use that!
Ok!

Also.. should this be open source or not? I already have it on github as private.
Yes, I think you should make it open source. That also would make it easier for people to help you if you have problems
Okay, let me get GitHub public
Edit: Github is here. https://github.com/webdev03/scratchinfo/

Last edited by god286 (Oct. 10, 2021 06:45:16)


meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
ninjaMAR
Scratcher
1000+ posts

Scratchinfo - an epic website



Mast_Scratch
Scratcher
100+ posts

Scratchinfo - an epic website

A bug in it? I typed my name in it and I get something that this user doesn't exist?
_bz
Scratcher
100+ posts

Scratchinfo - an epic website

Yes it is working but it is showing all the records for my name but why it is showing that thing.
The ScratchDB API is down or doesn't have _bz in its records.

I am doing social media and heavy distractions detox
My ArcheoScratchTube Channel
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

Hmm. Let me see.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

_bz wrote:

Yes it is working but it is showing all the records for my name but why it is showing that thing.
The ScratchDB API is down or doesn't have _bz in its records.
_bz it works for me now. Can you show me what 404's in the console when you get the error?

Mast_Scratch wrote:

A bug in it? I typed my name in it and I get something that this user doesn't exist?
It's working for me. I have a feeling that this website hates me and my debugging now.

ninjaMAR wrote:

-snip-

It works now for me for some reason..

For debugging I have one request.
Can you show me what happens in the console when you get the error?



meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
MagicCrayon9342
Scratcher
1000+ posts

Scratchinfo - an epic website

My user agent and other indicators say “Undefined”

https://scratch.mit.edu/projects/676917926/

Tired of the mainstream browsers being so darn slow, taking so much RAM on your super old laptop. Well, Catalyst is the solution. It is a zero compromise browser that will run on anything! Available for Windows, MacOS, and Linux! It is super fast and customizable with a fresh and modern UI!!!.

Always use the latest version of an antivirus. To get the latest security and protection, it is also recommended to use the latest version of MacOS or one that get's security patches. Update your software or you will regret it, and you will have several risks waiting for you.

<script>
alert(“XSS”)
</script>
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

MagicCrayon9342 wrote:

My user agent and other indicators say “Undefined”
Lots of people are reporting issues, this is the second time I can replicate the issue. I have absolutely no idea what happened.. can you check my source code if you understand Svelte? It's in src/routes/users/{user}.svelte (replace the { with [

Last edited by god286 (Oct. 10, 2021 21:34:59)


meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

MagicCrayon9342 wrote:

My user agent and other indicators say “Undefined”
Edit: It was a completely different problem

Last edited by god286 (Oct. 10, 2021 22:03:34)


meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

MagicCrayon9342 wrote:

My user agent and other indicators say “Undefined”

ScratchStats also complains, it's because your account for some reason doesn't have statistics returned in ScratchDB.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
MagicCrayon9342
Scratcher
1000+ posts

Scratchinfo - an epic website

god286 wrote:

MagicCrayon9342 wrote:

My user agent and other indicators say “Undefined”

ScratchStats also complains, it's because your account for some reason doesn't have statistics returned in ScratchDB.
ok

Last edited by MagicCrayon9342 (Oct. 10, 2021 22:06:32)


https://scratch.mit.edu/projects/676917926/

Tired of the mainstream browsers being so darn slow, taking so much RAM on your super old laptop. Well, Catalyst is the solution. It is a zero compromise browser that will run on anything! Available for Windows, MacOS, and Linux! It is super fast and customizable with a fresh and modern UI!!!.

Always use the latest version of an antivirus. To get the latest security and protection, it is also recommended to use the latest version of MacOS or one that get's security patches. Update your software or you will regret it, and you will have several risks waiting for you.

<script>
alert(“XSS”)
</script>
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

MagicCrayon9342 wrote:

god286 wrote:

MagicCrayon9342 wrote:

My user agent and other indicators say “Undefined”
-snipping my own image:-
ScratchStats also complains, it's because your account for some reason doesn't have statistics returned in ScratchDB.
ok
also i just now figured out how to get javascript to work. now im going crazy and adding loads of features to my website. finally!
Cool, you have your own website working too.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

Also, for inactive accounts, I have no idea how I should do the error handling.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
hello-smile
Scratcher
91 posts

Scratchinfo - an epic website

god286 wrote:

Also, for inactive accounts, I have no idea how I should do the error handling.
Just do try/catch (don't do anything upon an error) and set a default value before checking. Then, you'll use the default if something happens.
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

hello-smile wrote:

god286 wrote:

Also, for inactive accounts, I have no idea how I should do the error handling.
Just do try/catch (don't do anything upon an error) and set a default value before checking. Then, you'll use the default if something happens.
In the source code I have used some try catch. Good idea, I will add that in the next update.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet
god286
Scratcher
1000+ posts

Scratchinfo - an epic website

BUG FIX TIME!
I randomly got horizontal scroll - I fixed that.
I've also changed the Visit on another site buttons to Bootstrap btn-primary so that's epic.
Try catching and changing undefined to something that makes sense for someone without a coding background will be soon.

meowclient
Typescript and ESM support
Kind-of good documentation
Easy to use
meowclient


                 _ ____  ___   __   
__ _ ___ __| |___ \( _ ) / /_
/ _` |/ _ \ / _` | __) / _ \| '_ \
| (_| | (_) | (_| |/ __/ (_) | (_) |
\__, |\___/ \__,_|_____\___/ \___/
|___/
^ inspired by @Chiroyce, made with figlet

Powered by DjangoBB

Standard | Mobile