前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >一键白嫖Steam免费游戏

一键白嫖Steam免费游戏

作者头像
Naraku
发布2021-07-28 10:58:37
2.8K0
发布2021-07-28 10:58:37
举报
文章被收录于专栏:Naraku的专栏

领取方法

  • 进入 Steam官网 并登陆账号
  • 点击右上角自己账号 > 账户明细 > 查看许可和产品序列号激活
  • 进入该页面后,按F12打开控制台,点击Console
  • 在空白处输入以下代码:
代码语言:javascript
复制
(function()
{
    if( location.href.match( /^https:\/\/store\.steampowered\.com\/account\/licenses\/?$/ ) === null ){
        alert( '请在Steam帐号明细页面运行这些代码: https://store.steampowered.com/account/licenses/' );
        window.location = 'https://store.steampowered.com/account/licenses/';
        return;
    }
    var freePackages =
    [
        //本体
        39166,//Heroine's Quest: The Herald of Ragnarok
        13261,//RACE 07: Andy Priaulx Crowne Plaza Raceway
        32032,//Portal 2 Sixense Perceptual Pack
        59373,//Penumbra: Necrologue
        33694,//Grimm&Episode 1 - A Boy Learns What Fear Is
        88162,//Romance of the Three Kingdoms Maker
        36561,//Serena
        58514,//Voxelized
        117526,//Amnesia: Final Revelations
        
        //dlc
        85604,//RTK Maker - Face CG “RTK13” Set / 三国志ツクール顔登録素材 『三國志13』セット+シナリオ
        21478,//Free to Play免费本体
        50861,//Free to Play Soundtrack
        21473,//Prime World免费本体
        31538,//Prime World - Prime Machine
        32287,//Z3TA+ 2 - Polybius 8-bit Game Pack
        38085,//Saints Row IV - Reverse Cosplay Pack
        72261,//The Secret of Tremendous Corporation免费本体
        81026,//The Sources of Tremendous Corporation
        47333,//Aura Kingdom免费本体
        38820,//Aura Kingdom - Winter Gift
        69802,//Fuse免费本体
        60341,//Fuse - Free Brute Character Pack
        21416,//Elsword免费本体
        63207,//Time Tracer's DLC Package
        59253,//Vindictus - New User Package
        
        //软件&工具
        35063,//Star Swarm Stress Test
        74465,//Arma 3 Samples
        
        //后续更新
        21101, //  DiRT Showdown Demo
        21102, //  Rayman Origins Demo
        21103, //  iBomber Defense Pacific  Demo
        21104, //  Men Of War: Assault Squad GOTY Demo
        21105, //  Bang Bang Racing Demo
        21106, //  Sine Mora Demo
        21107, //  Noitu Love 2 Devolution Demo
        21108, //  Waveform Demo
        21109, //  Ridge Racer™ Unbounded Demo
        21110, //  Hegemony Gold: Wars of Ancient Greece
        21111, //  Rocksmith Demo
        21113, //  Binary Domain Demo
        21114, //  Sniper Elite V2 Demo
        21115, //  Blades of Time Demo
        21117, //  A Valley Without Wind Demo
        21118, //  F1 2012 Demo
        21119, //  Magical Diary Demo
        21120, //  The Dream Machine Demo
        21121, //  Hell Yeah! Demo
        21122, //  A Virus Named Tom Demo
        21123, //  Splice Demo
        21124, //  Atooms to Moolecules
        21125, //  BeatBuddy Demo
        21126, //  DIVO
        21127, //  Imagine Earth Demo
        21128, //  MilitAnt
        21129, //  Plutonic Repulse
        21130, //  The White Laboratory Demo
        21131, //  Blackwell's Asylum
        21132, //  Magic 2014 Demo
        21133, //  Sid Meier's Civilization V: Gods & Kings Demo
        21134, //  Gratuitous Tank Battles Demo
        21135, //  Tiny and Big: Grandpa's Leftovers Demo
        21136, //  KungFu Strike Demo
        21137, //  Adventures of Shuggy Demo
        21138, //  E.Y.E: Divine Cybermancy Demo
        21139, //  Orcs Must Die! 2 Demo
        21140, //  The Book of Unwritten Tales Demo
        21141, //  Sleeping Dogs™ Demo
        21142, //  Damage Inc Demo
        21143, //  Gateways Demo
        21144, //  Football Manager 2013 Demo
        21145, //  XCOM: Enemy Unknown Demo
        21146, //  Transcripted Demo
        21147, //  Intrusion 2 Demo
        21148, //  Din's Curse Demo
        21149, //  Democracy 2 Demo
        21150, //  Ys Origin Demo
        21151, //  Ether Vapor Remaster Demo
    ];
    
    var ownedPackages = {};
    jQuery( '.account_table a' ).each( function( i, el ){
        var match = el.href.match( /javascript:RemoveFreeLicense\( ([0-9]+), '/ );
        if( match !== null ){
            ownedPackages[ +match[ 1 ] ] = true;
        }
    } );
    var i = 0,
        loaded = 0,
        package = 0,
        total = freePackages.length,
        modal = ShowBlockingWaitDialog( '努力执行中...',
            '请耐心等待,如果有错误请无视,请耐心等待脚本加载完毕' );
    
    for( ; i < total; i++ ){
        package = freePackages[ i ];
        if( ownedPackages[ package ] ){
            loaded++;
            continue;
        }
        
        jQuery.post(
            '//store.steampowered.com/checkout/addfreelicense',
            {
                action: 'add_to_cart',
                sessionid: g_sessionID,
                subid: package
            }
        ).always( function( )
            {
                loaded++;
                modal.Dismiss();
                if( loaded >= total ){
                    location.reload();
                }
                else{
                    modal = ShowBlockingWaitDialog( '执行中...',
                        '加载至 <b>' + loaded + '</b>/' + total + '.' );
                }
            }
        );
    }
}());
  • 等待执行,最终效果

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020 年 04 月,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 领取方法
相关产品与服务
访问管理
访问管理(Cloud Access Management,CAM)可以帮助您安全、便捷地管理对腾讯云服务和资源的访问。您可以使用CAM创建子用户、用户组和角色,并通过策略控制其访问范围。CAM支持用户和角色SSO能力,您可以根据具体管理场景针对性设置企业内用户和腾讯云的互通能力。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档