Steam Store - Show Entire Wishlist

Shows all hidden wishlisted apps

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Steam Store - Show Entire Wishlist
// @icon         http://store.steampowered.com/favicon.ico
// @namespace    Royalgamer06
// @version      1.0.1
// @description  Shows all hidden wishlisted apps
// @author       Royalgamer06 <https://royalgamer06.ga>
// @include      *://store.steampowered.com/wishlist/*
// @run-at       document-start
// @grant        GM_xmlhttpRequest
// @connect      steam-tracker.com
// @require      http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js
// ==/UserScript==

// ==Configuration==
var extraAppIds = [];
// ==/Configuration==

// ==Code==
this.$ = this.jQuery = jQuery.noConflict(true);
GM_xmlhttpRequest({
    method: "GET",
    url: "https://steam-tracker.com/api?action=GetAppListV3",
    onload: function(response) {
        var removedApps = JSON.parse(response.responseText).removed_apps;
        console.log("removedApps", removedApps);
        $.getJSON("//store.steampowered.com/dynamicstore/userdata/?t=" + Date.now(), function(json) {
            var rgWishlist = json.rgWishlist;
            console.log("rgWishlist", rgWishlist);
            var await = setInterval(function() {
                if (g_rgWishlistData && g_Wishlist && g_Wishlist.rgAllApps) {
                    clearInterval(await);
                    doModify(rgWishlist, removedApps);
                }
            }, 200);
        });
    }
});

function doModify(rgWishlist, removedApps) {
    console.log("g_Wishlist.rgAllApps", g_Wishlist.rgAllApps);
    var missingAppIds = rgWishlist.filter(appid => !g_Wishlist.rgAllApps.includes(appid.toString())).concat(extraAppIds);
    console.log("missingAppIds", missingAppIds);
    var missingApps = {};
    missingAppIds.forEach(appid => {
        var removedApp = removedApps.filter(app => app.appid == appid);
        var data = g_rgWishlistData.filter(app => app.appid == appid);
        removedApp = removedApp.length > 0 ? removedApp[0] : null;
        data = data.length > 0 ? data[0] : null;
        missingApps[appid] = {
            "name": removedApp ? removedApp.name : "Unknown App",
            "capsule": "//cdn.akamai.steamstatic.com/steam/apps/" + appid + "/header_292x136.jpg?t=" + Date.now(),
            "review_score": 0,
            "review_desc": "No user reviews",
            "reviews_total": "0",
            "reviews_percent": 0,
            "release_date": "0",
            "release_string": "Unavailable",
            "platform_icons": "",
            "subs": [],
            "type": removedApp ? convertType(removedApp.type) : "Game",
            "screenshots": [],
            "review_css": "not_enough_reviews",
            "priority": data ? data.priority : 0,
            "added": data ? data.added : 0,
            "rank": "9999999",
            "tags": []
        };
    });
    console.log("missingApps", missingApps);
    g_rgAppInfo = Object.assign(g_rgAppInfo, missingApps);
    g_Wishlist.rgAllApps = g_Wishlist.rgAllApps.concat(missingAppIds);
    g_Wishlist.LoadAdditionalPages();
}

function convertType(type) {
    // "Game", "DLC", "Application", "Hardware", "Video", "Advertising"
    if (type == "software") {
        return "Application";
    } else if (type == "video") {
        return "Video";
    }
    return "Game";
}
// ==/Code==