Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @id CardsBatGenerator
- // @name CardsBatGenerator
- // @version 1.0
- // @namespace
- // @author Mica
- // @description
- // @include http://steamcommunity.com/id/*
- // @require http://code.jquery.com/jquery-latest.min.js
- // @run-at document-end
- // ==/UserScript==
- $(document).ready(function()
- {
- var script = "";
- var cards_sum = 0;
- var time_per_card = 2000;
- $('div.badge_row').each(function()
- {
- var gameid = $(this).find('a.btn_green_white_innerfade');
- var cards = $(this).find('span.progress_info_bold').text();
- if (gameid.length > 0)a
- {
- cards = parseInt(cards.substring(cards.length-2));
- cards_sum += cards;
- gameid = gameid.attr("href").substring(("steam://run/").length);
- script += 'start /D "C:\\SAM\\" "" "C:\\SAM\\SAM.Game.exe" "'+gameid+'"' + "\n" + 'timeout '+(cards*time_per_card) + "\ntaskkill /im SAM.Game* /f\ntimeout 1\n";
- }
- });
- console.log(script);
- console.log("Total cards: " + cards_sum);
- console.log("Total time: " + ((cards_sum * time_per_card)/3600) + " hours");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement