Greasy Fork

Greasy Fork is available in English.

Aliexpress Coins history Sum Up

Adds a count to "Store daily check-in" entries per day, displays coin sums per day (+<store sum> store | +<total sum> total) next to the date, and adjusts the history panel width for better readability.

作者
Hegy
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0
创建于
2025-04-21
更新于
2025-04-22
大小
14.6 KB
许可证
MIT // Added license
适用于

This userscript enhances the AliExpress coin history page by providing more useful information at a glance, specifically focusing on your daily coin gains from "Store daily check-in" entries and your total daily coin earnings.

Features:

  • Numbers "Store daily check-in" Entries: If you check into multiple stores daily, the history lists them all under the same name. This script adds a sequential number (#1, #2, #3, etc.) right after the "Store daily check-in" text for each occurrence on a given day. This makes it easier to distinguish them and see how many store check-ins you completed that day.

    • Example: "Store daily check-in" becomes "Store daily check-in #1", "Store daily check-in #2", etc.
  • Calculates and Displays Daily Coin Sums: For each day listed in the history, the script calculates:

    • The total coins earned specifically from all "Store daily check-in" entries on that day.
    • The total coins earned from all entries listed for that day. These sums are displayed next to the date header, providing a quick overview of your daily earnings.
    • Format: +<sum of coins from Store daily check-in> store | +<total sum of coins for the day> total
    • Example: "4/21/2025 PT" will become "4/21/2025 PT +30 store | +500 total" (with the sum text appended).
  • Adjusts History Panel Width: The script sets the width of the main coin history panel (the area containing the dates and entries) to 350px. This can help improve readability or make the layout fit better if you're using other browser extensions or have specific window arrangements.

How it Works:

The script runs automatically when you visit the AliExpress coin history page (https://www.aliexpress.com/p/coin-pc-index/mycoin.html). It scans the currently loaded history items, performs the calculations and numbering, and modifies the page display. It also uses a MutationObserver to detect when more history items are loaded dynamically (e.g., by scrolling down) and automatically updates the counts and sums for the newly loaded sections.

Important Note:

This script relies on the specific class names and HTML structure used on the AliExpress coin history page. If AliExpress updates its website layout, the script may stop working until it is updated to match the new structure.