1

steam 一键移除脚本

 1 year ago
source link: https://blog.hclonely.com/posts/6a0923b1/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

steam 一键移除脚本

  1. 首页
本文最后更新于561天前,内容可能已不再适用!
  • 取关鉴赏家:取关所有 选中的鉴赏家(包括开发商),因为 steam 限制鉴赏家(包括开发商)的关注上限是 100 个,所以这个功能还是常用的。
  • 取关游戏:取关所有 选中的游戏(关注游戏后,可以在您的社区活动信息中查看通知)。
  • 移除愿望单:移除所有 选中的愿望单里的游戏,建议给薅羊毛的小号使用,不建议大号用。
  1. 安装好脚本后在steam 商店页面点击上面的“一键移除”;
    一键移除
    一键移除
    界面
    界面
  2. 根据自己的需求获取列表;
    获取列表
    获取列表
  3. 在左侧选择要取关的鉴赏家/游戏;
    选择要取关的鉴赏家/游戏
    选择要取关的鉴赏家/游戏
  4. 点击取关或移除按钮。
    取关或移除
    取关或移除
最后修改:2020-10-28 21:00:58
如果觉得我的文章对你有用,请随意赞赏
e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

能不能写个批量移除所有免费游戏的脚本?

db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge 100.0.1185.36 Windows 10.0
2022-04-10回复

@大头菜 , 在这个页面https://store.steampowered.com/account/licenses/ 控制台输入下面的代码,如果要移除的游戏太多的话把1e6改成100,每小时运行一次

const number = 1e6;
const removeA = $J.makeArray($J('tr[data-panel]:contains("免费") .free_license_remove_link a')).slice(0, number);
let progress = 1;
removeA.map(a => {
    const packageid = $J(a).attr('href').match(/RemoveFreeLicense\([\s]*?([\d]+?),/)?.[1];
    if (!packageid) return;
    $J.ajax({
        url: 'https://store.steampowered.com/account/removelicense',
        type: 'POST',
        data: {
            sessionid: g_sessionID,
            packageid
        },
        success: (response) => {
            console.log(`${packageid} 移除${response.success == 1 ? '成功' : '失败'}  进度: ${progress++}/${removeA.length}`);
        },
        error: () => {
            console.log(`${packageid} 移除失败  进度: ${progress++}/${removeA.length}`)
        }
    });
});
db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge 100.0.1185.36 Windows 10.0
2022-04-10回复

@HCLonely , 理论上可以,因为我的帐号不需要移除,所以没有测试

e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

@HCLonely , 谢谢大佬,脚本有效,就是每次移除到50%的时候都会停滞,如果这时重复输入脚本就会出错:
Uncaught SyntaxError: redeclaration of let progress
debugger eval code:1

e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

@大头菜 , 移除1000个游戏会在500停滞,移除100个游戏在50个后停滞,移除50个游戏会在25停滞。

db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge Android 10
2022-04-10回复

@大头菜 , 再次运行时要刷新页面

e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复
db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge Android 10
2022-04-10回复

@大头菜 , 停的时候有保存吗

e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

@HCLonely , 不太懂大佬说的保存是什么意思

e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

@大头菜 , 为什么会移除失败呢?

db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge Android 10
2022-04-10回复

@大头菜 , 报错,打错字了 bili_捂脸

db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge 100.0.1185.36 Windows 10.0
2022-04-10回复
const number = 100;
const removeA = $J.makeArray($J('tr[data-panel]:contains("免费") .free_license_remove_link a[href*="RemoveFreeLicense"]')).slice(0, number);
let progress = 1;
const total = removeA.map(a => {
    const packageid = $J(a).attr('href').match(/RemoveFreeLicense\([\s]*?([\d]+?),/)?.[1];
    if (!packageid) return false;
    $J.ajax({
        url: 'https://store.steampowered.com/account/removelicense',
        type: 'POST',
        data: {
            sessionid: g_sessionID,
            packageid
        },
        success: (response) => {
            console.log(`${packageid} 移除${response.success == 1 ? '成功' : '失败'}  进度: ${progress++}/${total}`);
            if (response.success != 1) {
                console.log('失败信息: ', response);
            }
        },
        error: (response) => {
            console.log(`${packageid} 移除失败  进度: ${progress++}/${total}`);
            console.log('失败信息: ', response);
        }
    });
    return true;
}).filter(e => e).length;
e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

@HCLonely , 我发现脚本进度停滞以后过了五千万年以后发现客户端的游戏数量还是减少了,不知道是不是不同步的原因。

db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge Android 10
2022-04-10回复

@大头菜 , 用我新发的这个就不会停了

e28639bba7018e4db8dc2f7909fc4e14?d=monsterid&v=1.4.16
大头菜访客 Firefox 91.0 Windows 7
2022-04-10回复

@HCLonely , 移除失败后再试几次还是可以成功移除,我的账户里终于清理干净了。

移除失败后的错误信息:
Object { readyState: 0, setRequestHeader: setRequestHeader(e, t), getAllResponseHeaders: getAllResponseHeaders(), getResponseHeader: getResponseHeader(e), overrideMimeType: overrideMimeType(e), abort: abort(e), state: state(), always: always(), then: then(), promise: promise(e), … }

349272c38a3d31ce8b8b6a70be6d9626?d=monsterid&v=1.4.16
DDD访客 Edge 100.0.1185.44 Windows 10.0
2022-04-22回复

@HCLonely , 你好,想请问一下为什么不建议大号使用呢?是会有什么风险吗?

db61bf13ef746272a53227821321dd74?d=monsterid&v=1.4.16
HCLonely博主 Edge 100.0.1185.44 Windows 10.0
2022-04-22回复

@DDD , 因为大号愿望单一般都确实是想玩的游戏,避免误清所以不建议大号使用

349272c38a3d31ce8b8b6a70be6d9626?d=monsterid&v=1.4.16
DDD访客 Edge 100.0.1185.44 Windows 10.0
2022-04-23回复

@HCLonely , 好的,非常感谢解答。

Powered By Valine
v1.4.16

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK