吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 3669|回复: 16
收起左侧

[其他原创] steam一键搜索离线账号

  [复制链接]
gulang453 发表于 2023-8-2 17:20
本帖最后由 gulang453 于 2023-12-11 19:31 编辑
// ==UserScript==
// @name         steam search
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  查找游戏离线账号
// @AuThor       You
// @match        *://store.steampowered.com/app/*
// @grant        GM_xmlhttpRequest
// ==/UserScript==

(function() {
        'use strict';

        var 父级 = document.getElementsByClassName("store_nav")[0];
        var 副本 = document.createElement('div');
        副本.innerHTML = '<span>找号</span>';
        副本.setAttribute("class", "tab  ");
        父级.appendChild(副本);

        var AppName = document.getElementById('appHubAppName')
                .textContent;

        var Appid = /app\/(\d+)/.exec(window.location.href)[1];

        副本.onclick = () => {
                console.log(AppName);
                console.log(Appid);
                console.log("http://146.56.112.227/bf/search.php?query=" + AppName);
                GM_xmlhttpRequest({
                        method: "GET",
                        url: "http://146.56.112.227/bf/search.php?query=" + encodeURIComponent(AppName),
                        headers: {
                                "User-Agent": "Mozilla/5.0",
                                "Accept": "application/json"
                        },
                        onload: function(response) {
                                var jsonData = JSON.parse(response.responseText);
                                if (Array.isArray(jsonData)) {
                                        var extractedData = jsonData.map(item => ({
                                                gameName: item.gameName,
                                                userName: item.userName,
                                                password: item.password,
                                                ssfn: item.ssfn
                                        }));
                                        console.log(extractedData);
                                        openNewPage(JSON.stringify(extractedData), Appid); // 传递Appid
                                } else {
                                        console.log(jsonData);
                                        openNewPage(JSON.stringify(jsonData), Appid); // 传递Appid
                                }
                        }
                });
        }

function openNewPage(data, Appid) { // 添加Appid参数
    var newWindow = window.open("", "_blank");
    newWindow.document.write("<html><head><title>Steam搜索结果</title>");
    newWindow.document.write("<style>");
    newWindow.document.write("body { font-family: Arial, sans-serif; background-image: url('background.jpg'); background-size: cover; }");
    newWindow.document.write("h1 { text-align: center; color: #fff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }");
    newWindow.document.write("table { width: 100%; border-collapse: collapse; }");
    newWindow.document.write("th, td { padding: 8px; text-align: left; border-bottom: 1px solid #ddd; color: #fff; background-color: rgba(0, 0, 0, 0.5); }");
    newWindow.document.write("tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.1); }");
    newWindow.document.write("@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }");
    newWindow.document.write("tr { animation: fadeIn 0.5s ease-in-out; }");
    newWindow.document.write("</style>");
    newWindow.document.write("</head><body>");
    newWindow.document.write("<h1>Steam搜索结果</h1>");
    newWindow.document.write("<table>");
    newWindow.document.write("<tr><th>游戏名称</th><th>用户名</th><th>密码</th><th>SSFN</th><th>App ID</th></tr>");

    var extractedData = JSON.parse(data);
    extractedData = Object.values(extractedData);
    console.log(extractedData.length);
    for (var i = 0; i < extractedData.length; i++) {
        var item = extractedData[i];
        // 打印参数值
        newWindow.document.write("<tr>");
        newWindow.document.write("<td>" + item.gameName + "</td>");
        newWindow.document.write("<td>" + item.userName + "</td>");
        newWindow.document.write("<td>" + item.password + "</td>");
        newWindow.document.write("<td>" + item.ssfn + "</td>");
        newWindow.document.write("<td>" + Appid + "</td>");
        newWindow.document.write("</tr>");
    }

    newWindow.document.write("</table></body></html>");
    newWindow.document.close();
}

})();

运行环境:脚本猫

更新时间:2023/12/11

[/md]

免费评分

参与人数 10吾爱币 +9 热心值 +9 收起 理由
话不投机 + 1 + 1 报错 error code: 522Update completed. 提示下载好了但是没有找到下载的.
ZD520V + 1 + 1 我很赞同!
TUlaer1 + 1 + 1 我很赞同!
如果人生路很长 + 1 + 1 我很赞同!
SaizuiM + 1 我很赞同!
s1456322 + 1 + 1 我很赞同!
saviorvg + 1 谢谢@Thanks!
AcidTan + 1 + 1 我很赞同!
wuaiwxh + 1 我很赞同!
340621 + 2 + 1 热心回复!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

coob 发表于 2023-8-12 11:40
目前那个查询的网站报错了
 楼主| gulang453 发表于 2023-8-3 01:47

https://wwej.lanzouw.com/i2UJj148j6sh
将steamcmd放到steam根目录,然后打开steamTT,选择要玩的游戏点击登录,输入appid,入库就用steamtools
z0369258 发表于 2023-8-2 21:04
BUCTPJP 发表于 2023-8-2 21:59

可以用Watt Toolkit(原Steam++),功能很全,可以加速,挂脚本,保存,一键登录本机登录过的所有账号,还可以ASF挂卡。
YUESE666 发表于 2023-8-3 10:07
gulang453 发表于 2023-8-3 01:47
https://wwej.lanzouw.com/i2UJj148j6sh
将steamcmd放到steam根目录,然后打开steamTT,选择要玩的游戏 ...

你好,提示请输入要更新的应用程序的appid,我应该从哪里知道这个appid呢?
 楼主| gulang453 发表于 2023-8-3 12:56
YUESE666 发表于 2023-8-3 10:07
你好,提示请输入要更新的应用程序的appid,我应该从哪里知道这个appid呢?

steam商店的url
pglterry 发表于 2023-8-3 17:39
感谢分享,使用楼主提供的工具下载了遗迹2,顺利玩上了
 楼主| gulang453 发表于 2023-8-3 23:41
http://steam.rainyun.ink/search.html 查询页面
http://steam.rainyun.ink/ 添加账号页面
yu520 发表于 2023-8-7 08:42
这个怎么操作呀
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-27 23:04

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表