Skip to content

Conversation

@VIGARPAST-777-2
Copy link

@VIGARPAST-777-2 VIGARPAST-777-2 commented Sep 16, 2025

Resolves #8548

Changes

This pull request adds two new addons:

  1. Compact Scratch Profile Sliders
    Rearranges the profile sections into a cleaner two-column layout by pairing sliders side by side.

    The order is preserved as:

    1. Shared Projects
    2. Favorited Projects
    3. Followed Studios
    4. Curated Studios
    5. Following
    6. Followers

    Additional improvements:

    • Smooth horizontal scrolling for all carousels
    • Responsive layout with equal widths for paired sliders
  2. User Stats in Profile
    Adds a flexible statistics box at the bottom of the profile data section, showing:

    • Total Loves
    • Total Favorites
    • Total Remixes
    • Total Views

    Features:

    • Uses Scratch-style icons for each stat
    • Custom colors: red for loves, yellow for favorites, green for remixes, blue for views
    • Padding inside the box and distribution across the container for a clean layout
    • Data fetched in real-time from the ScratchInfo API

Reason for changes

Scratch profile pages can feel cluttered and require a lot of vertical scrolling.
These addons make profiles look more compact and organized, while still keeping all sections accessible.

They improve readability and help users quickly access the content they care about, especially on larger monitors.
Additionally, the stats box gives a clear overview of a user's project performance.

Screenshots / Videos

I forgot to make screenshots.

Tests

  • Tested on Chrome and Firefox
  • Works with profiles in different languages (no hardcoded keywords)
  • Verified with accounts that have all sections: shared projects, favorites, followed studios, curated studios, following, and followers
  • Stats box tested with live data from ScratchInfo API

Credits

Addons created by VIGARPAST_777.

@Samq64 Samq64 added new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons status: needs discussion Still in review or consideration labels Sep 17, 2025
@VIGARPAST-777-2
Copy link
Author

@Samq64 Can you please check this? Thanks ;)

@WorldLanguages
Copy link
Member

WorldLanguages commented Sep 20, 2025

Hi, if it looks good in your device then the CSS is probably fine. (AFAIK no addons affect the rows at profile pages, so there are no potential conflicts - maybe just dark mode, 2.0→3.0 and 3.0→2.0)

Let's discuss at #8548 whether it is better to make this a new addon or a setting inside an existing one.

@VIGARPAST-777-2 VIGARPAST-777-2 changed the title New addon: Compact Profile Sliders New addons: Compact Profile Sliders + User Stats In Profile Oct 21, 2025
@VIGARPAST-777-2
Copy link
Author

@Samq64 and @WorldLanguages, can you check out this? I added 1 more addons, and I think it's very interesting, not useful, but it will be used a lot.

Copy link
Member

@Samq64 Samq64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in #8548 could the compact profile addon be merged into the more items per row addon as a toggle?

@@ -0,0 +1,16 @@
.sa-compact-row {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is not applied to any elements, so all the styles in this file are unused.


// Fetch views, loves, faves from ScratchInfo API
try {
const res = await fetch(`https://scratchinfo.quuq.dev/api/v1/users/${username}/projectStats`);
Copy link
Member

@Samq64 Samq64 Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know who runs this API?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know who runs this API?

Yes, https://scratch.mit.edu/users/redspacecat

VIGARPAST-777-2 and others added 5 commits October 26, 2025 19:47
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons status: needs discussion Still in review or consideration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New addon: Compact profile sliders

3 participants