// ==UserScript==
// @name Steam Auto Mass Craft Cards Badges in Bulk
// @name:zh-CN Steam一键批量合卡合徽章
// @name:zh-TW Steam一鍵批量合卡合徽章
// @version 3.12
// @description (Steam Auto Mass Craft Trading Cards Badges in Bulk) It will automatically use up your gamecard sets for crafting badges. You can control the which card sets and how many sets to craft by using it.
// @description:zh-CN 这是一个自动合卡插件,可以指定徽章合成的数量和种类
// @description:zh-TW 這是一個自動合卡挿件,可以指定徽章合成的數量和種類
// @author QHS
// @include *steamcommunity.com/*/badges*
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @supportURL https://steamcn.com/t339531-1-1
// @icon http://pan.hriq.org/steam.green.ico
// @namespace https://greasyfork.org/users/155548
// @namespace https://steamcommunity.com/profiles/76561198132556503
// ==/UserScript==
var sales=["245070","762800","876740","991980","1195670","1343890","1465680","1658760","1797760","2021850","2243720","2459330","2640280","2861690"],//Appid for sales cards
timer_craft = GM_getValue("timer_craft", 500),
timer_scan = GM_getValue("timer_scan", 1000),
config_cap_level = GM_getValue("config_cap_level", 0),
threads = GM_getValue("threads", 3),
config_blacklist = GM_getValue("config_blacklist", '');
config_max_page = GM_getValue("config_max_page", 5);
(function() {
'use strict';
GM_addStyle(`.profile_xp_block_right {
text-align: center!important;
}
.profile_xp_block_right {
display: block;
width: 230px;
border: 1px #aaa solid;
border-radius: 4px;
padding: 8px 0px;
cursor: pointer;
transition: .5s
}
input.ready_to_craft.in_progress {
border: 1px #ffffff solid!important;
color: #ffffff!important;
}
.profile_xp_block_right:hover {
color: #333;
background: #aaa
}
.craft_list p {
margin: 2px 10px;
}
.craft_list p input {
width: 36px;
height: 13px;
background-color: #152f4a;
border: 1px #fff solid;
color: #fff;
padding: 2px 0 0 10px;
font-weight: bold;
transition: .5s;
background-repeat: no-repeat;
background-position-x: -46px;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAPCAYAAACbSf2kAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAKUlEQVR42mOIOmPwfyhihlGHjzp81OGjDh91+KjDRx0+6vBRh486HI4BdWZJdZDgwMoAAAAASUVORK5CYII=")
}
input.ready_to_craft.sales {
width: 56px!important;
border: 2px #ff0000 solid!important;
color: #636363!important;
background-color: #fff82b!important;
background-position-x: -66px;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAPCAYAAABQkhlaAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAA7SURBVFhH7dDBDYAwEMCwK+syU2ctUpUtsD/5Z+3znmGe+ntGxIgYESNiRIyIETEiRsSIGBEjYsQ18wHlgwMk4bDMIwAAAABJRU5ErkJggg==")!important;
}
.cannot_craft {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: gray;
cursor: not-allowed;
}
.sum_show {
width: 882px;
height: 95px;
position: relative;
top: -95px;
z-index: 10000001;
padding: 10px 0;
background: #1d1d1d;
border-top: #383838 1px solid;
}
div.craft_list {
padding: 10px 0 95px 0;
}
.craft_list.dischange input {
border: 1px #827d7d solid;
color: #827d7d;
cursor: not-allowed;
}
p.do_not_craft {
opacity: .5;
}
input.ready_to_craft.finished {
background-color: #ff0909;
}
#start img {
padding-top: 0px;
}
.window_title {
padding: 3px 20px;
font-size: 20px;
border-bottom: 1px solid #485776;
}
.b_icon {
position: absolute!important;
padding: 12.5px!important;
margin: 8px 0 0 3px!important;
}
.calculate {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAABz0lEQVRIS72VT0sWURTGfw8RQUQRFLSICDJqFYoRIUJBbVIiLDBU2hR+gFr1BaJN4RcIgyAoCoIoEArBCkOIXLgIWrcUAsWFUj5x4r5xe/+N8zq8ZzMzzJnnd8+d85wruhDqAoN/ENsPgf6KoD8ljdS0csh74EJFkJDZI2ktblpBVoG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t9slgsAAAAASUVORK5CYII=")!important
}
span.slightning {
background: -webkit-linear-gradient( top, #e9b50e 5%, #5f2f05 95%)!important;
linear-gradient( to bottom, #e9b50e 5%, #5f2f05 95%)!important; margin-left: 30px!important;
}
span.scalculate {
background: -webkit-linear-gradient( top, #778088 5%, #414a52 95%)!important;
background: linear-gradient( to bottom, #778088 5%, #414a52 95%)!important;
margin-left: 30px!important;
}
.rapid {
background: #d8a506!important;
background: -webkit-linear-gradient( top, #f3d608 5%, #902100 95%)!important;
background: linear-gradient( to bottom, #f3d608 5%, #902100 95%)!important;
}
.btn_large {
float: left;
margin-top: 28px;
margin-left: 28px;
}
.rapid:hover {
background: #d8a506!important;
background: -webkit-linear-gradient( top, #fbe440 5%, #eb5224 95%)!important;
background: linear-gradient( to bottom,#fbe440 5%, #eb5224 95%)!important;
}
.setting {
float: left;
margin-left: 28px;
padding: 17.5px;
margin-top: 31px;
cursor: pointer;
border: transparent solid 1px;
border-radius: 5px;
}
.setting:hover {
border: #fff solid 1px;
}
p.setting_title {
font-size: 26px;
color: #fff;
border-bottom: 1px solid #fff;
margin-bottom: 60px;
padding-bottom: 10px;
}
font.config_name {
color: #fff;
font-weight: bold;
}
input.property {
background: #ffffff;
width: 55px;
height: 19px;
margin: 0 7px;
border: 2px solid #0fa9f3;
border-radius: 5px;
}
._setting {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAADo0lEQVRYR9VXTYgcVRCur3t6VMSDxAQRUYhE8CBqJFGwd7brzR40EDyp69mD5EcjwYPmEFFBvYj4k+jZg2SjB+PBvez2653tgy5oQAXRgKCHiNHgQUTtmX4lb6GX2XFev55klfGdhqmvqr6uV1WvCjRFB1PEhf5/ZLTWLQAHRORZEdkB4B1mPuyKapqmJ4jocQAXALwsIm8z88B3C97IZFm2X0ReJaJdI8bOhGF4oNPp/Fj9r7W+kYhOEtH+Eey5MAznO53O53WEaslkWTYjIr0aAwMR+YyI/iSiqwDsJ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Wy+65pbUgWGgpAQXRQiwURRstTCNqISmChWht++4sC2ksLRRtUkUw8T/YzZU3zMKa7HwtIWsxU86cc+Y39913ZxjBf3RIZOn3+2dHo9EDAIsA1lR1NYRwEcDzqqwi8o3ksruLmdmEb1VV16rkpDBm9hXAmczwjOTDEMJlEflcJSTTfCF5wd1bSZKMdvmekHxclpXChBC2ReRwAcxpkt/N7BOAKzmhRTBw93uq+rIIqBJMq9Va6na7P83sA4Crs8BETxnQgcJkD7FM8u20B5oHjAO4TvL9bqB5wMTlig1+TVU/TgJVgnH3NyLyO+uXU7P2zKTP3XdE5CbJd+PzlWDKtmSFrZ0bISKPer3e0yjIhakIsEeWM2fK4m6TfLUHxt3jBL5R5s67bmZHAGzV9G+RPDYNJq7letZkNTNT+UkROVHTuE3y6LRlqpmzL/IGJq+MTWWaytTdYtN7xt3/AHgtIjt1E2voF9z9logcyjy5MC9U9X6N4JmkZrYO4FIhDID0G9jMIv25me5UYFLVfrwcQkhEpFsVphe/1fcbhuR46jcw/xS3qUxerzWVaSpTdw6V9oyZbQI4ngWPJ/BBDr1fJBfHv0RWANyZF4y7r6jq3RQmHoPBYGk4HMafRRskN+K7CcD5ustQpieZRI2ZxeyFdru92el0fsRzfwGhD/czvOdCcQAAAABJRU5ErkJggg==")
}
.attention {
display: inline-block;
width: 200px;
height: 200px;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAYHElEQVR4Xu1de5QcdZX+bvVMMpmqDiePrkazkIdD0lUB2YWzuqKeFdxFQEURUAHBtwd0EVHxrSsqCiossIKioIKKgOIKbkRdj+xL8LgLuzGhqpMNTBIE7eokCF09M8lM191TM0lIJtMzVd1Vv6qu+vW/c5/fvd9UP776FUG+EkOAGYq7c83LFC4cxeBVzLSSgAHAGwboMQL+b7DUuJ/o96OJFZnzxJTz/hNpn/905KLmbvUdILoYwBGzFcHAn4hxi9K3+7rBJY8+nkjBOU4qCSJ4+E3H+AQzPg6igXCp2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5Bse2X2+EeCrNN3+yD4MDj3VZErde7O8eSrfa5LL7hlXq7p1GRG4LUH8P4w6a18yAb6XgEW5BEo2nTcEJkB4i1ayDjm+te3Ro2O11asmUPgnED0/b2jJfvOEAP9BYT5rsFyd8bfAAM8HqZwMUvznuZ2SJ9hkr1lHgB8G41pVt+8gwni7buckyD5H/1uuFnkGe7QIChYTeKHnKUrWYZT99T4CigJmD00i7CLmp1jh7Wqp+lCQzgITJEgwaSMRyBoCkiBZm6jsJ1IEJEEihVMGyxoCkiBZm6jsJ1IEJEEihVMGyxoCkiBZm6jsJ1IEJEEihVMGyxoCkiBZm6jsJ1IEJEEihVMGyxoCkiBZm6jsJ1IEJEEihVMGyxoCkiBZm6jsJ1IEJEEihVMGyxoCkiBZm6jsJ1IE/h+XNy9tvZXZdwAAAABJRU5ErkJggg==");
}
font.appid {
border: 1px solid;
padding: 2px 7px;
border-radius: 8px;
margin: 2px 3px;
display: inline-block;
text-decoration: line-through;
}
textarea.property {
background: #ffffff;
width: 730px;
height: 30px;
margin: 0 7px;
border: 2px solid #0fa9f3;
border-radius: 9px;
}
.sum_show {
text-align: center;
}
.newmodal_buttons {
display: inline-block;
position: relative;
left: -14px;
}
.newmodal_buttons {
display: inline-block;
}
._confirms,.sconfirm {
background: linear-gradient( to bottom, #00ea54 5%, #004c06 95%)!important;
}
.ss {
margin-left: 30px!important;
}
._confirms:hover {
background: linear-gradient( to bottom, #42ff86 5%, #00ce10 95%)!important;
}
span.b_icon._confirm {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAABJElEQVRIS+3VMUrGQBCG4fdDrS3s7CxsPIAINjZiYSVYC4IX8ByCeAL5Gwu10MZerOwsvIeIjVh9EthATDbJhIRUplx259mZ2d2IGT7NYPCPDKryZOWyvQO8Sfqp72ASxPY+8AS8AgeSvqvQaKQCrKTAJfRVQqMQ24fAA1ACZdyFpNPRSAIegeVaD96BPUkfnYjtDeBY0kXuGA0BivWNctneBJ6BdeBK0nkVsn0E3EUyyGZiewt4AdYqga+BM0lOwD2w1Fei1tNl+xL4s/M0+SY1+HYo0CiX7aJ8C+AkeKUbTc6ty/UkCoWAbOOLwUBGYaAV6YEGAZ1ICzQY6EVq0DawW73JwcMR+zOmHq1K+owGnvQVjqCjXuEIEOpJNFDXvFky+QVQUmwaHSx3ggAAAABJRU5ErkJggg==")!important;
}
._cancels, .scancel {
background: linear-gradient( to bottom, #ff6a00 5%, #a70000 95%)!important;
}
._cancels:hover {
background: linear-gradient( to bottom, #fd9a54 5%, #ff1010 95%)!important;
}
span.b_icon._cancel {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAB8klEQVRIS5WWS2tUQRBGz4f4ICgqOMnCwddG1JUrNzEGMZg4e3f+Pn+ACL7wjeDORQwExI1kERGUIEHHRUkN3WN7p293z93d21V9blVXfdWi85jZaeCrpD/dtdq7mR0EFiXtpLZKX8xsFXgEbAErkn7WNo7rZnYUeA1cBtYlvYxrU4iZrQEPgMNh8T1wU9J+DRQAz4BrwfZ3CppAAuAh4OGmz1vgdgmUAUT/KUhmNgA8h11ANHbQmqRfmfPzFKURdE3c57xDjgGbwJlCWp4DoxRkZguAf48pyrk/Bu7EdHlFvWsAbUgaB4BvsNzyY+nBO8ir40LB0Te+C/j5NQF8r24JL4WISqAfwInCj8yc4X+QUGkOegVcrJVuZj1bjTOQADoFeDNdmQPUW+5ZSACdBN40gor91AsJoHPAJ+BAISJvuqGkb302pUiOAy+Aqw0pmz+SROxaAKkyZCUoV101qSgFVq+uRqmoZa+/Txql4jNwD7jfIEFTrYvadQR4WpGKbeCGpN0wPVu0bgJyFfbyfOIDqpAHByynZRpALVo3cojLyJfCPPkIrOb6IPiWJMh76GxtMjrguqTvfVGaWZ8E/ZuM0Tkzgj+EGd8LSHy7EjQ74zMgB9yStFer1w7IJ+Wl3ttKYjwM965xKyDxPQQMuveuvyh740KkKGZ2AAAAAElFTkSuQmCC")!important;
}
.level_up > span {
position: relative;
top: -2px;
}
.target_level_icon > span {
position: relative;
top: -2px;
}
font.level_up {
font-size: 24px;
color: #ffc902;
}
.target_level_icon {
display: inline-block;
}
.target_level{
color:#fff;
}
.animated {
-webkit-animation-duration: .7s;
animation-duration: .7s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both
}
.animated.infinite {
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite
}
.animated.hinge {
-webkit-animation-duration: 2s;
animation-duration: 2s
}
@-webkit-keyframes bounce {
0%,100%,20%,50%,80% {
-webkit-transform: translateY(0);
transform: translateY(0)
}
40% {
-webkit-transform: translateY(-10px);
transform: translateY(-10px)
}
60% {
-webkit-transform: translateY(-5px);
transform: translateY(-5px)
}
}
@keyframes bounce {
0%,100%,20%,50%,80% {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0)
}
40% {
-webkit-transform: translateY(-10px);
-ms-transform: translateY(-10px);
transform: translateY(-10px)
}
60% {
-webkit-transform: translateY(-5px);
-ms-transform: translateY(-5px);
transform: translateY(-5px)
}
}
.bounce {
-webkit-animation-name: bounce;
animation-name: bounce
}
@-webkit-keyframes rubberBand {
0% {
-webkit-transform: scale(1);
transform: scale(1)
}
30% {
-webkit-transform: scaleX(1.25) scaleY(0.75);
transform: scaleX(1.25) scaleY(0.75)
}
40% {
-webkit-transform: scaleX(0.75) scaleY(1.25);
transform: scaleX(0.75) scaleY(1.25)
}
60% {
-webkit-transform: scaleX(1.15) scaleY(0.85);
transform: scaleX(1.15) scaleY(0.85)
}
100% {
-webkit-transform: scale(1);
transform: scale(1)
}
}
@keyframes rubberBand {
0% {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1)
}
30% {
-webkit-transform: scaleX(1.25) scaleY(0.75);
-ms-transform: scaleX(1.25) scaleY(0.75);
transform: scaleX(1.25) scaleY(0.75)
}
40% {
-webkit-transform: scaleX(0.75) scaleY(1.25);
-ms-transform: scaleX(0.75) scaleY(1.25);
transform: scaleX(0.75) scaleY(1.25)
}
60% {
-webkit-transform: scaleX(1.15) scaleY(0.85);
-ms-transform: scaleX(1.15) scaleY(0.85);
transform: scaleX(1.15) scaleY(0.85)
}
100% {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1)
}
}
.rubberBand {
-webkit-animation-name: rubberBand;
animation-name: rubberBand
}
input.friendPlayerLevelNum {
width: 28px;
background: transparent;
border: 0;
font-size: inherit;
text-align: center;
overflow: visible;
}
span[class$='00'] input {
width: 31px!important;
}
.calculator {
border: 1px #fff solid;
padding: 20px;
margin-top: 30px;
}
.calculator legend {
margin-left: 20px;
}
span#lvdiff input {
width: 72px;
background: transparent;
color: #000;
border: 0;
text-align: center;
margin: 0 10px;
font-size: 16px;
}
span#lvdiff {
background: rgba(255, 255, 255, 0.95);
border-radius: 3px;
padding: 10px;
color: #aaa;
}
.calculator div {
float: left;
}
span.levelnumber input {
width: 66px;
background: transparent;
border: 0;
text-align: center;
overflow: visible;
color: #ddd;
font-size: 13px;
}
span.levelnumber {
display: block;
font-size: 13px;
position: relative;
left: 23px;
margin-top: 5px;
}
.calculator span.friendPlayerLevel {
margin: 0px 40px;
}
.calculator ._m {
position: relative;
top: 10px;
}
._m span {
float: left;
display: block;
}
.friendPlayerLevel.lvl_1000 input, .friendPlayerLevel.lvl_1100 input, .friendPlayerLevel.lvl_1200 input, .friendPlayerLevel.lvl_1300 input, .friendPlayerLevel.lvl_1400 input, .friendPlayerLevel.lvl_1500 input, .friendPlayerLevel.lvl_1600 input, .friendPlayerLevel.lvl_1700 input, .friendPlayerLevel.lvl_1800 input, .friendPlayerLevel.lvl_1900 input, .friendPlayerLevel.lvl_2000 input, .friendPlayerLevel.lvl_2100 input, .friendPlayerLevel.lvl_2200 input, .friendPlayerLevel.lvl_2300 input, .friendPlayerLevel.lvl_2400 input, .friendPlayerLevel.lvl_2500 input, .friendPlayerLevel.lvl_2600 input, .friendPlayerLevel.lvl_2700 input, .friendPlayerLevel.lvl_2800 input, .friendPlayerLevel.lvl_2900 input, .friendPlayerLevel.lvl_3000 input {
width: 32px;
}
/* -------------------------------------------------------------------
Microtip
Modern, lightweight css-only tooltips
Just 1kb minified and gzipped
@author Ghosh
@package Microtip
----------------------------------------------------------------------
1. Base Styles
2. Direction Modifiers
3. Position Modifiers
--------------------------------------------------------------------*/
/* ------------------------------------------------
[1] Base Styles
-------------------------------------------------*/
[aria-label][role~="tooltip"] {
position: relative;
}
[aria-label][role~="tooltip"]::before,
[aria-label][role~="tooltip"]::after {
transform: translate3d(0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
will-change: transform;
opacity: 0;
pointer-events: none;
transition: all var(--microtip-transition-duration, .18s) var(--microtip-transition-easing, ease-in-out) var(--microtip-transition-delay, 0s);
position: absolute;
box-sizing: border-box;
z-index: 10;
transform-origin: top;
}
[aria-label][role~="tooltip"]::before {
background-size: 100% auto !important;
content: "";
}
[aria-label][role~="tooltip"]::after {
background: rgba(17, 17, 17, .9);
border-radius: 4px;
color: #ffffff;
content: attr(aria-label);
font-size: var(--microtip-font-size, 13px);
font-weight: var(--microtip-font-weight, normal);
text-transform: var(--microtip-text-transform, none);
padding: .5em 1em;
white-space: nowrap;
box-sizing: content-box;
white-space: normal;width:500px;
}
[aria-label][role~="tooltip"]:hover::before,
[aria-label][role~="tooltip"]:hover::after,
[aria-label][role~="tooltip"]:focus::before,
[aria-label][role~="tooltip"]:focus::after {
opacity: 1;
pointer-events: auto;
}
/* ------------------------------------------------
[2] Position Modifiers
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position|="top"]::before {
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
height: 6px;
width: 18px;
margin-bottom: 5px;
}
[role~="tooltip"][data-microtip-position|="top"]::after {
margin-bottom: 11px;
}
[role~="tooltip"][data-microtip-position|="top"]::before {
transform: translate3d(-50%, 0, 0);
bottom: 100%;
left: 50%;
}
[role~="tooltip"][data-microtip-position|="top"]:hover::before {
transform: translate3d(-50%, -5px, 0);
}
[role~="tooltip"][data-microtip-position|="top"]::after {
transform: translate3d(-50%, 0, 0);
bottom: 100%;
left: 50%;
}
[role~="tooltip"][data-microtip-position="top"]:hover::after {
transform: translate3d(-50%, -5px, 0);
}
/* ------------------------------------------------
[2.1] Top Left
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position="top-left"]::after {
transform: translate3d(calc(-100% + 16px), 0, 0);
bottom: 100%;
}
[role~="tooltip"][data-microtip-position="top-left"]:hover::after {
transform: translate3d(calc(-100% + 16px), -5px, 0);
}
/* ------------------------------------------------
[2.2] Top Right
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position="top-right"]::after {
transform: translate3d(calc(0% + -16px), 0, 0);
bottom: 100%;
}
[role~="tooltip"][data-microtip-position="top-right"]:hover::after {
transform: translate3d(calc(0% + -16px), -5px, 0);
}
/* ------------------------------------------------
[2.3] Bottom
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position|="bottom"]::before {
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
height: 6px;
width: 18px;
margin-top: 5px;
margin-bottom: 0;
}
[role~="tooltip"][data-microtip-position|="bottom"]::after {
margin-top: 11px;
}
[role~="tooltip"][data-microtip-position|="bottom"]::before {
transform: translate3d(-50%, -10px, 0);
bottom: auto;
left: 50%;
top: 100%;
}
[role~="tooltip"][data-microtip-position|="bottom"]:hover::before {
transform: translate3d(-50%, 0, 0);
}
[role~="tooltip"][data-microtip-position|="bottom"]::after {
transform: translate3d(-50%, -10px, 0);
top: 100%;
left: 50%;
}
[role~="tooltip"][data-microtip-position="bottom"]:hover::after {
transform: translate3d(-50%, 0, 0);
}
/* ------------------------------------------------
[2.4] Bottom Left
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position="bottom-left"]::after {
transform: translate3d(calc(-100% + 16px), -10px, 0);
top: 100%;
}
[role~="tooltip"][data-microtip-position="bottom-left"]:hover::after {
transform: translate3d(calc(-100% + 16px), 0, 0);
}
/* ------------------------------------------------
[2.5] Bottom Right
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position="bottom-right"]::after {
transform: translate3d(calc(0% + -16px), -10px, 0);
top: 100%;
}
[role~="tooltip"][data-microtip-position="bottom-right"]:hover::after {
transform: translate3d(calc(0% + -16px), 0, 0);
}
/* ------------------------------------------------
[2.6] Left
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position="left"]::before,
[role~="tooltip"][data-microtip-position="left"]::after {
bottom: auto;
left: auto;
right: 100%;
top: 50%;
transform: translate3d(10px, -50%, 0);
}
[role~="tooltip"][data-microtip-position="left"]::before {
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
height: 18px;
width: 6px;
margin-right: 5px;
margin-bottom: 0;
}
[role~="tooltip"][data-microtip-position="left"]::after {
margin-right: 11px;
}
[role~="tooltip"][data-microtip-position="left"]:hover::before,
[role~="tooltip"][data-microtip-position="left"]:hover::after {
transform: translate3d(0, -50%, 0);
}
/* ------------------------------------------------
[2.7] Right
-------------------------------------------------*/
[role~="tooltip"][data-microtip-position="right"]::before,
[role~="tooltip"][data-microtip-position="right"]::after {
bottom: auto;
left: 100%;
top: 50%;
transform: translate3d(-10px, -50%, 0);
}
[role~="tooltip"][data-microtip-position="right"]::before {
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
height: 18px;
width: 6px;
margin-bottom: 0;
margin-left: 5px;
}
[role~="tooltip"][data-microtip-position="right"]::after {
margin-left: 11px;
}
[role~="tooltip"][data-microtip-position="right"]:hover::before,
[role~="tooltip"][data-microtip-position="right"]:hover::after {
transform: translate3d(0, -50%, 0);
}
/* ------------------------------------------------
[3] Size
-------------------------------------------------*/
[role~="tooltip"][data-microtip-size="small"]::after {
white-space: initial;
width: 80px;
}
[role~="tooltip"][data-microtip-size="medium"]::after {
white-space: initial;
width: 150px;
}
[role~="tooltip"][data-microtip-size="large"]::after {
white-space: initial;
width: 260px;
}
font.mnotice {
cursor: help;
margin-left: 10px;
font-size: 17px;
background: rgba(255,255,255,.6);
padding: 5px;
border-radius: 50%;
}
`);
var _border, g_sessionID, badge_cap_level, __appID, _gappid,blacklist=[],tar_lv,o_tar_lv;
var cur_xp = $J('.profile_xp_block_xp').html().replace(/[^0-9]/g,'')*1;
var lv01 = ivscc(cur_xp)*1;
var lv02 = lv01+1;
var text = {},
lan = $J('head').html().match(/l=([^"&*]+)/)[1];
if (lan == "schinese" || lan == "tchinese") {
text.start = "批量合成徽章";
text.title = "批量合卡";
text.notice = '<p>这是一个自动合卡插件,可以指定徽章合成的数量和种类。</p><p>可在<a class="underlinedLink" href="https://steamcn.com/t339531-1-1" target="_blank">SteamCN</a>、<a class="underlinedLink" href="https://steamcommunity.com/sharedfiles/filedetails/?id=1409472832" target="_blank">社区指南</a>反馈问题</p></p>可以随时关闭本标签页来停止插件的自动操作</p><p><b style=color:#fff>计算模式:</b> 先扫描出每个徽章的可合成次数,扫描完毕后可以手动调整合成数量,再通过确认进行批量合卡。</p><p><font style="text-decoration:line-through;"><b style=color:#fff>极速模式:</b> 先显示您的黑名单设置,确认后将直接合成所有可以用来合成的徽章,不会使用黑名单中的游戏卡牌,多数徽章只能合成一级不建议用此模式,该模式适合大多数徽章合成5次的情况。</font><font style=color:#fff>【由于已有steam原生批量合卡接口,这个功能已经被弃用了,请使用左侧扫描功能】</font></p><p><a class="underlinedLink" href="https://pan.hriq.net/steam_crafter_1.gif" target="_blank">Demo1</a> <a class="underlinedLink" href="https://pan.hriq.net/steam_crafter_2.gif" target="_blank">Demo2</a></p>';
text.button1 = "开始统计可合成卡组(计算模式)";
text.buttonr1 = "不管那么多了,跳过扫描直接合卡!(极速模式)";
text.button2 = "确认无误后开始合卡";
text.button2no = "不合卡的吗?";
text.calculating = "计算中(输入想要合成的次数,计算过程中可以关闭本弹出窗口)";
text.calculated = "请在每个徽章前输入想要合成的次数,并确认合成";
text.crafting = "合成中,合成过程中可以关闭本弹出窗口";
text.crafted = "合成完毕";
text.list1 = '←输入合成套数';
text.list2 = '可升';
text.list3 = '级 (当前';
text.list4 = '级) 游戏:';
text.nosets1 = '<p style=" font-size: 25px; ">想合卡?先去市场买来再说吧!</p>';
text.nosets2 = '这是一个悲伤地故事';
text.nosets3 = '虽<br>然<br>没<br>有<br>卡<br>,<br>也<br>要<br>假<br>装<br>扫<br>描<br>出<br>了<br>很<br>多';
text.setting_title = '设置(下面三个按钮都能保存)';
text.cap_level = '最高等级';
text.cap_level_d = '(<font style=color:#fff>仅针对计算模式有效!</font>默认为0。例如设置为3:默认将小于3的徽章合成至3级。若设置0则无任何合成限制)';
text.timer_scan = '扫描时间';
text.timer_scan_d = '(仅针对计算模式有效,计算中扫描每个徽章页面的时间间隔(单位毫秒),默认为1000,请不要设置的过小)';
text.timer_craft = '合成时间间隔';
text.threads = '线程数';
text.threads_d = '仅针对极速模式。默认3线程,越大合卡越快。3线程即相当于开三个1线程同时合卡。';
text.timer_craft_d = '(仅针对计算模式有效,计算过后合成徽章的时间间隔(单位毫秒),默认为500,请不要设置的过小)';
text.blacklist = '黑名单';
text.blacklist_d = '(将游戏的APPID填入,用逗号分隔,则该游戏的普通/闪亮徽章在任何模式下都不会合成。写法形如 <i style="color: #e0f170;">550,322310,730</i>)';
text.attention_title = '注意!</font><br>确认过后将进行合成 (前 <font class="appid" style=text-decoration:none>' + config_max_page + '</font> 页),如果需要停止请关闭本标签页. ';
text.attention_title2 = '您并没有设置黑名单,所以所有可合成徽章都将进行合成)';
text.attention_title3 = '除了这些在你黑名单中的游戏: ';
text.confirm = '确认';
text.cancel = '取消';
text.calculator_title='等级计算器(<font style="color:#fff">5个数字均可修改</font>)';
text.mnotice='由于Steam服务器偶尔返回合卡结果传输出错输出为空,对于数量巨大的合成可能会出现合计结果较小,若对数量有精确要求请在合成之后刷新页面核对数量';
text.config_max_page = '最大扫描/合成页数(每页150个徽章)';
text.calculating_page = '正在读取徽章第 ';
text.calculating_page_d = ' 页...';
text.deprecated = "由于已有steam原生批量合卡接口,这个功能已经被弃用了,请使用左侧扫描功能";
} else {
text.start = "Craft Badges in Bulk";
text.title = "Craft Badges in Bulk";
text.notice = '<p>Commentting on <a class="underlinedLink" href="https://steamcommunity.com/sharedfiles/filedetails/?id=1409472832" target="_blank">Community Guide</a>(Great thanks for <a class="underlinedLink" href="https://steamcommunity.com/profiles/76561198112219279" target="_blank">Aevoa</a>!)、<a class="underlinedLink" href="https://greasyfork.org/en/scripts/36393" target="_blank">Greasy Fork</a> for feedback.</p><p>Close this WEBPAGE when you want to stop crafting!</p><p>You can set intervals and blacklist badges in setting.</p><p><b style=color:#fff>Calculation mode:</b> Scan and calculate max badges you can craft first and you can regulating the number of card sets for specified bagdes. Then craft.</p><p><font style="text-decoration:line-through;"><b style=color:#fff>Rapid mode:</b> Show you the setting of blacklist. Crafting immediately after you confirm it. It will use up ALL your available gamecard sets for crafting badges <font style=color:#fff>except</font> the games whose APPID is in the blacklist. This mode is not recommended when most badges can only be crafted for one level. It\'s suitable for that most badges can be crafted 5 times.</font><font style=color:#fff>【This function is deprecated since Steam introducing the native bulk craft API. Please calculate first.】</font></p><p><a class="underlinedLink" href="https://pan.hriq.net/steam_crafter_1.gif" target="_blank">Demo1</a> <a class="underlinedLink" href="https://pan.hriq.net/steam_crafter_2.gif" target="_blank">Demo2</a></p>';
text.button1 = "Calculate how many badges you can craft (before crafting)";
text.buttonr1 = "Craft <b>now</b> rapidly!";
text.button2 = "Start Crafting!";
text.button2no = "No Cards for Crafting!";
text.calculating = "Calculating, you can close this pop-up window in the process of calculation";
text.calculated = "Enter the number of cards sets you want to craft for the badges. Confirm and craft them by click the green button below";
text.crafting = "Crafting! You can close this pop-up window in the process of crafting";
text.crafted = "Finished!";
text.list1 = 'sets to craft';
text.list2 = 'can craft';
text.list3 = 'more (Level';
text.list4 = 'now) GAME:';
text.nosets1 = '<p style=" font-size: 25px; ">How could I craft without cards 🙄</p>';
text.nosets2 = 'So sad';
text.nosets3 = 'T<br>h<br>e<br>r<br>e<br> <br>i<br>s<br> <br>n<br>o<br> <br>r<br>e<br>s<br>u<br>l<br>t<br>!';
text.setting_title = 'Setting (Click the button below to save it)';
text.cap_level = 'Cap Level';
text.cap_level_d = '(<font style=color:#fff>Only for calculation mode!</font> Number type with default value of 0. Set to 3 if you want to craft all badges up to level 3 [also can be 1,2,4,5]. There is no level limit if set to 0.)';
text.timer_scan = 'Scan Timer';
text.timer_scan_d = '(The interval between badges when calculating. number type with default value of 1000(ms). Unless you have a reason to edit this property, you should keep it at default.)';
text.timer_craft = 'Craft Timer';
text.timer_craft_d = '(The interval between cards sets crafting. number type with default value of 500(ms). Unless you have a reason to edit this property, you should keep it at default. <font style=color:#fff>Only for calculation mode.</font>)';
text.threads = 'Number of Threads';
text.threads_d = '<font style=color:#fff>Only for rapid mode</font>. number type with default value of 3. Setting to bigger values makes crafting faster. A crafting in rapid mode with 3 threads is equal to 3 crafting in rapid mode with 1 threads simultaneously.';
text.blacklist_d = '(The cards whose APPID is in the blacklist will not being used for crafting in any mode. Separated by commas, like <i style="color: #e0f170;">550,322310,730</i>)';
text.attention_title = 'Attention!</font><br>Please confirm that you are going to use up ALL your available gamecard sets for crafting badges (first <font class="appid" style=text-decoration:none>' + config_max_page + '</font> pages). ';
text.attention_title2 = 'As there is no APPID in your blacklist(you can add some in setting)';
text.attention_title3 = 'Except the games whose APPID is in the blacklist: ';
text.confirm = 'Confirm';
text.cancel = 'Cancel';
text.blacklist = 'Blacklist';
text.calculator_title='Level Calculator(<font style="color:#fff">5 numbers are all replaceable</font>)';
text.mnotice='Due to the occasional bad return(but crafted successfully) of the Steam server, which usually results in a slightly small total result when you craft a large number of badges. If you need the accurate sum of crafted sets, please refresh the page and calculate it manually after crafting.';
text.config_max_page = 'The max number of page(150 badges per page) for scan/crafting';
text.calculating_page = 'Fetching your badges page... (';
text.calculating_page_d = ')';
text.deprecated = "This function is deprecated since Steam introducing the native bulk craft API. Please calculate first.";
}
$J('body').prepend(`
<div class="craft_background" style="opacity: 0.5;position: fixed; width: 100%; height: 100%;background:#000;cursor:pointer;z-index: 999;display:none;"></div>
<div class="craft_window newmodal" style="position: fixed; z-index: 1000;height: 90%; width: 900px; left: 50%; margin-left:-450px; top: 20px;display:none;">
<div class="modal_top_bar"></div>
<div class="newmodal_header_border">
<div class="newmodal_header">
<div class="newmodal_close"></div>
<div class="ellipsis window_title">${text.title}</div>
</div>
</div>
<div class="newmodal_content_border" style="height: 90%; overflow-y:auto;">
<div class="newmodal_content" style="color: #c4c6c7;">
<div class="craft_title" style=" font-size:16px">${text.notice}
<fieldset class="calculator">
<legend>${text.calculator_title}</legend>
<div id="lvl01">
${iconin_raw(lv01)}<span class="levelnumber"><input class="_xp" min="0" value="${cur_xp}">XP</span>
</div>
<div class="_m">
<span style="margin: 0 40px 0 20px;position: relative; top: 10px;">→</span><span id="lvdiff"><b>+</b><input min="0" value="${cc(lv02)-cur_xp}">XP</span><span style="margin: 0px 0px 0 40px;position: relative; top: 10px;">→</span>
</div>
<div id="lvl02">
${iconin_raw(lv02)}<span class="levelnumber"><input class="_xp" min="0" value="${cc(lv02)}">XP</span>
</div>
</fieldset>
</div>
<div class="setting_list" style="display:none;font-size: 17px;">
<p class="setting_title">${text.setting_title}</p>
<p><font class="config_name">${text.cap_level} = </font>
<input class="property config_cap_level" value="${config_cap_level}" type="number" max="5" min="0">${text.cap_level_d}</p>
<p><font class="config_name">${text.timer_scan} = </font>
<input step="100" class="property timer_scan" value="${timer_scan}" type="number" min="500">${text.timer_scan_d}</p>
<p><font class="config_name">${text.timer_craft} = </font>
<input step="100" value="${timer_craft}" type="number" min="200" class="property timer_craft">${text.timer_craft_d}</p>
<p><font class="config_name">${text.threads} = </font>
<input value="${threads}" type="number" min="1" max="10" class="property threads">${text.threads_d}</p>
<p><font class="config_name">${text.config_max_page} = </font>
<input value="${config_max_page}" type="number" min="1" max="10" class="property config_max_page"></p>
<p><font class="config_name" style=" position: relative; top: -10px; ">${text.blacklist}: </font>
<textarea class="property config_blacklist">${config_blacklist}</textarea>
<br>${text.blacklist_d}</p>
</div>
<div class="attention_list" style="padding-bottom: 120px;font-size: 17px; display: none;">
<div style=" text-align: center; "><span class="attention"></span>
<br><span style=" width: 600px; display: inline-block; "><font style="font-size:20px;color:#fff;font-weight:bold;margin: 20px 0;display: inline-block;">${text.attention_title}<br><font class="attention_nbl">${text.attention_title2}</font><font class="attention_bl">${text.attention_title3}<font id="appid"></font></font></span>
</div>
</div>
<div class="craft_list" style=" font-size:16px"></div>
</div>
</div>
<div class="sum_show">
<div class="newmodal_buttons start_1 button_s1" style="text-align:center;" id="start">
<div class="btn_grey_white_innerfade btn_large btn_large1" style="float: left;margin-left: 28px;"><span class="b_icon calculate"></span><span class="scalculate">${text.button1}</span>
</div>
<div class="btn_grey_white_innerfade btn_large rapid _rapid" style="float: left;margin-left: 28px;"><span class="b_icon lightning"></span><span class="slightning">${text.buttonr1}</span>
</div>
<div class="setting _setting"></div>
</div>
<div class="newmodal_buttons confirm" style="display:none;">
<div class="btn_grey_white_innerfade btn_large _confirms" style="float: left;margin-left: 28px;"><span class="b_icon _confirm"></span><span class="ss sconfirm">${text.confirm}</span>
</div>
<div class="btn_grey_white_innerfade btn_large _cancels" style="float: left;margin-left: 28px;"><span class="b_icon _cancel"></span><span class="scancel ss">${text.cancel}</span>
</div>
</div>
</div>
</div>
`);
for (let i = 0; i < 120; i++) {
setTimeout(function() {
if(i<20){
$J('.profile_xp_block_right').html(text.start);
$J('.es_faq_cards').hide();
}
if(($J('.profile_xp_block_right').length<1||$J('.profile_xp_block .profile_xp_block_right').html()!=text.start)&&i!=0&&$J('.button_alt__').html()!=text.start){
$J('.profile_small_header_location').parent().after(`<div class="profile_xp_block_right button_alt__">${text.start}</div>`);
}else{
if($J('.profile_xp_block .profile_xp_block_right').html()==text.start){$J('.button_alt__').remove();}
}
},
i * 500);
} //hide the content that is not necessary
var first_page = $J('.badges_sheet').html(), all_page = $J('.badges_sheet').html(), page_n=1;
function isLastPage(a) {
var isLastPage = false;
$J(a).find('.badge_progress_info').each(function(i,e){
if($J(e).find('a').length<1){isLastPage = true; return false;}
});
return isLastPage;
}
/*function getPage(){
page_n++;
if(!isLastPage(first_page)&&config_max_page>1){
var url = g_strProfileURL + '/badges/?p=' + page_n,ddata;
$J.get(url,function(data){
ddata = $J(data).find('.badges_sheet').html();
all_page += ddata;
if(isLastPage(data)||page_n==config_max_page){
return;
}else{
getPage();
}
});
}
}*/
function craft() {
_save();
$J('.craft_title').slideUp();
$J('#start').html('<img style="padding-top: 30px;" src="https://steamcommunity-a.akamaihd.net/public/images/login/throbber.gif">');
craft_rvs1();
}
function craft_rvs1() {
page_n++;
$J('.window_title').html(text.calculating_page + page_n + text.calculating_page_d);
if(!isLastPage(first_page)&&config_max_page>1){
var url = g_strProfileURL + '/badges/?p=' + page_n,ddata;
$J.get(url,function(data){
ddata = $J(data).find('.badges_sheet').html();
all_page += ddata;
if(isLastPage(data)||page_n==config_max_page){
craft_rvs2();
}else{
craft_rvs1();
}
});
}else{
craft_rvs2();
}
}
function craft_rvs2() {
$J('.window_title').html(text.calculating + ' (<font class=calculate_dnum>0</font>/' + $J(all_page).find('a.badge_craft_button').length + ')');
var total_number = $J(all_page).find('a.badge_craft_button').length,
each_count = 0,
sum_sets = 0,
sum_badges = 0;
if (total_number === 0) {
$J('#start').html(text.nosets1);
$J('.window_title').html(text.nosets2);
$J('.craft_list').append("<p>" + text.nosets3 + "</p>");
$J('#start').addClass('start_2').removeClass('start_1');
$J('.craft_list').append("<p style='text-align:center;margin-top: 15px; letter-spacing: 8px;'>=========END=========</p>");
}
$J(all_page).find('a.badge_craft_button').each(function(i) { ///if(i>1){return false;}//a.badge_craft_button//a.badge_row_overlay
var badge_link = $J(this).attr('href'),
badge_level = 0,
count_min = 99999,
issales='';
setTimeout(function() {
$J.get(badge_link,
function(html) {
if (i === 0) {
g_sessionID = html.match(/g_sessionID = "([^"]+)"/)[1];
}
var gamename = $J(html).find('.badge_title').text();
var _badge = $J(html).find('.badge_current .badge_info_description>div:eq(1)');
var cards_sum=0,cards_num=0,after_stm;
$J(html).find('.badge_card_set_card').each(function() {
var count = $J(this).find('.badge_card_set_text_qty').text();
cards_num += 1;
if (count) {
count = parseInt(count.replace(/[()]/g, ''));
cards_sum += count;
if (count < count_min) {
count_min = count;
}
} else {
count_min = 0;
}
});
after_stm = (cards_sum/cards_num);
if (_badge.length) {
badge_level = parseInt(_badge.text().match(/\d+/));
}
var _appid = badge_link.match(/\/([0-9]{1,7})\/$/);
var _appid2 = badge_link.match(/\/([0-9]{1,7})\/\?border=1$/);
if (!_appid) {
_border = 1;
__appID = _appid2[1];
_gappid = __appID + "b1";
if ($J.inArray(__appID, sales) >= 0) {
badge_cap_level = config_cap_level == 0 ? 99999 : config_cap_level;
issales='sales';
} else {
badge_cap_level = 1;
}
} else {
_border = 0;
__appID = _appid[1];
_gappid = __appID + "b0";
if ($J.inArray(__appID, sales) >= 0) {
badge_cap_level = config_cap_level == 0 ? 99999 : config_cap_level;
issales='sales';
} else {
badge_cap_level = config_cap_level == 0 ? 5 : config_cap_level;
}
}
if($J.inArray(__appID*1, blacklist) >= 0){count_min=0;}//blacklist.include(__appID)
var upgrade_sets = Math.min(count_min, Math.max((badge_cap_level - badge_level),0)); ///Math.min(count_min, (badge_cap_level - badge_level));//2;
if(after_stm>count_min){
if(count_min<Math.max((badge_cap_level - badge_level),0)){after_stm="<font style='color:red;cursor:help' aria-label='"+count_min+" sets are ready to craft, about "+(after_stm-count_min).toFixed(1)+" sets will be full after trading' role='tooltip' data-microtip-position='top-left' title='"+count_min+" sets are ready to craft, about "+(after_stm-count_min).toFixed(1)+" sets will be full after trading'>("+count_min+'+'+(after_stm-count_min).toFixed(1)+")</font>";}
else{after_stm="<font style='color:orange;cursor:help' aria-label='"+count_min+" sets are ready to craft, about "+(after_stm-count_min).toFixed(1)+" sets will be full after trading. But you can only craft "+(badge_cap_level - badge_level)+" more sets.' role='tooltip' data-microtip-position='top-left' title='"+count_min+" sets are ready to craft, about "+(after_stm-count_min).toFixed(1)+" sets will be full after trading. But you can only craft "+(badge_cap_level - badge_level)+" more sets.'>("+count_min+'+'+(after_stm-count_min).toFixed(1)+")</font>";}
}else{after_stm='';}
$J('.craft_list').append("<p><input class='ready_to_craft "+issales+"' type='number' value=" + upgrade_sets + " data-appid=" + __appID + " data-border=" + _border + " data-gappid=" + _gappid + " max=" + upgrade_sets + " min='0'> " + text.list1 + " APPID:<a href='/my/gamecards/"+__appID+"?border="+_border+"' target=_blank>" + __appID + "</a> " + text.list2 + " " + upgrade_sets + " " + text.list3 + " " + badge_level + " " + text.list4 + " " + gamename + after_stm + "</p>");
sum_sets += upgrade_sets;
sum_badges += 1;
$J('.calculate_dnum').html(sum_badges);
if (i == (total_number - 1)) { ///2-1
$J('#start').html('<div class="btn_grey_white_innerfade btn_large btn_large1" style="margin-top:0"><span>' + text.button2 + '</span></div>');
$J('.window_title').html(text.calculated);
$J('#start').addClass('start_2').removeClass('start_1');
$J('#start>div').addClass('btn_green_white_innerfade').removeClass('btn_grey_white_innerfade');
var cur_lv = ivscc(cur_xp), tar_lv = ivscc(cur_xp+(sum_sets)*100);
$J('#start').before('<p class="before_c" style="margin: 4px 0 15px 0;text-align: center; font-size: 18px; color: #fff;"><font class="sum_sets" style="font-size: 22px;">' + sum_sets + '</font> sets ( <font class="sum_badges" style="font-size: 22px;">' + sum_badges + '</font> badges ) to craft!<font class="level_up"> [ '+icon_raw(cur_lv)+' <font class="target_level">></font> '+icon_raw(tar_lv)+' ]</font></p>');
$J('.craft_list').append("<p style='text-align:center;margin-top: 15px; letter-spacing: 8px;'>=========END=========</p>");
}
});
},
i * timer_scan);
});
}
function craft_do() {
var queue = [],
finished_count = {},
all_count = {},
sum_crafted = 0,
sum_sets = 0;
$J('.ready_to_craft').attr("disabled", true);
$J('.craft_list').addClass("dischange");
$J('.ready_to_craft').each(function() {
if ($J(this).val() > $J(this).attr("max")) {
$J(this).val($J(this).attr("max"));
}
if ($J(this).val() > 0) {
sum_sets += parseInt($J(this).val());
}
});
$J('#start').html('<img src="https://steamcommunity-a.akamaihd.net/public/images/login/throbber.gif">');
$J('.window_title').html(text.crafting);
$J('.before_c').html('Success: <font class="sum_crafted" style="font-size: 22px;">0</font> <font class="sum_xp" style="font-size: 20px;color: #ffc902;"></font><font class="mnotice" title="'+text.mnotice+'" aria-label="'+text.mnotice+'" role="tooltip" data-microtip-position="top">ℹ️</font>');
$J('.ready_to_craft').each(function() {
if ($J(this).val() > 0) {
//for (var i = 0; i < $J(this).val(); i++) {
queue.push({
"border": $J(this).data("border"),
"appid": $J(this).data("appid"),
"times": $J(this).val()
});
//}
}
});console.log(queue);
$J.each(queue,
function(i) {
setTimeout(function() {
var border = queue[i].border,
appid = queue[i].appid,
para = appid + "b" + border,
levels = queue[i].times*1;
///*
$J.ajax({
type: 'post',
url: g_strProfileURL + '/ajaxcraftbadge',
data: {
sessionid: g_sessionID,
series: 1,
border_color: border,
appid: appid,
levels: levels
},
timeout: 8000,
complete: function(XMLHttpRequest, status) {//*/
if (i == (queue.length - 1)) {
$J('#start').html('<font style=" font-size: 25px; position: relative; top: 0; ">' + text.crafted + '</font>');
$J('.window_title').html(text.crafted);
}
if (all_count[para]) {
all_count[para]++;
} else {
all_count[para] = 1;
}
if (all_count[para] == 1) {
$J('input.ready_to_craft[data-gappid="' + para + '"]').addClass('in_progress');
}
if (all_count[para] == queue[i].times) {
$J('input.ready_to_craft[data-gappid="' + para + '"]').addClass('finished');
}
///*
},
success: function(data) {
if (data.success == 1) {//*/
sum_crafted += levels;
$J('.sum_crafted').text(sum_crafted);
$J('.sum_percent').text(GetPercent(sum_crafted, sum_sets));
$J('.sum_xp').text('+' + (sum_crafted * 100) + 'XP');
if (finished_count[para]) {
finished_count[para]+=levels;
} else {
finished_count[para] = levels;
}
$J('input.ready_to_craft[data-gappid="' + para + '"]').css('background-position-x', ($J('input.ready_to_craft[data-gappid="' + para + '"]').css('width').replace(/px/ig,'')*1+10) * (finished_count[para] / queue[i].times - 1));
///*
}
}
});//*/
},
timer_craft * i);
});
}
function update_sum_sets() {
var sum_badges = 0,
sum_sets = 0;
$J('input.ready_to_craft').each(function(i) {
if ($J(this).val() > 0) {
sum_sets += parseInt($J(this).val());
sum_badges += 1;
if ($J(this).parent().hasClass('do_not_craft')) {
$J(this).parent().removeClass('do_not_craft');
}
} else {
$J(this).parent().addClass('do_not_craft');
}
$J('font.sum_badges').html(sum_badges);
$J('font.sum_sets').html(sum_sets);
var tar_lv = ivscc(cur_xp+sum_sets*100);
icon($J('font.target_level+.friendPlayerLevel'),tar_lv);
});
if (sum_badges === 0) {
$J('#start>div').addClass('cannot_craft');
$J('#start span').html(text.button2no);
}
if (sum_badges !== 0) {
$J('#start>div').removeClass('cannot_craft');
$J('#start span').html(text.button2);
}
}
$J('body').on('click', '.newmodal_close',
function() {
_close();
});
$J('body').on('click', '.craft_background',
function() {
_close();
});
$J('body').on('click', '.profile_xp_block_right',
function() {
_open();
});
$J('body').on('click', '.start_1 div.btn_large1',
function() {
_save();
craft();
});
$J('body').on('click', '.start_2 div.btn_large1',
function() {
craft_do();
});
$J('body').on('click', '._setting',
function() {
_setting();
});
$J('body').on('click', '._save',
function() {
_save();
});
$J('body').on('click', '._rapid',
function() {
_rapid();
});
$J('body').on('click', '._confirms',
function() {
_rapid_do();
});
$J('body').on('click', '._cancels',
function() {
$J('.craft_title').slideDown();
$J('.attention_list').slideUp();
$J('.button_s1').slideDown();
$J('.confirm').slideUp();
});
$J('body').on('change', '.ready_to_craft',
function() {
update_sum_sets();
});
function _rapid() {
/*_save();
$J('.craft_title').slideUp();
$J('.attention_list').slideDown();
$J('.button_s1').slideUp();
$J('.confirm').slideDown();
$J("#appid").html('');
if(blacklist.length<1){
$J('.attention_bl').hide();
$J('.attention_nbl').show();
}else{
blacklist.each(function(e,i){
$J('.attention_bl').show();
$J('.attention_nbl').hide();
$J("#appid").append('<font class="appid">'+e+'</font>');
});
}*/
alert(text.deprecated);
}
function _rapid_do() {
$J('.attention_list').slideUp();
$J('.confirm').html('<img src="https://steamcommunity-a.akamaihd.net/public/images/login/throbber.gif">');
_rapid_do_1();
}
function _rapid_do_1() {
page_n++;
$J('.window_title').html(text.calculating_page + page_n + text.calculating_page_d);
if(!isLastPage(first_page)&&config_max_page>1){
var url = g_strProfileURL + '/badges/?p=' + page_n,ddata;
$J.get(url,function(data){
ddata = $J(data).find('.badges_sheet').html();
all_page += ddata;
if(isLastPage(data)||page_n==config_max_page){
_rapid_do_2();
}else{
_rapid_do_1();
}
});
}else{
_rapid_do_2();
}
}
function _rapid_do_2() {
$J('.window_title').html(text.crafting);
var total_number = $J(all_page).find('a.badge_craft_button').length,
each_count = 0,
sum_sets = 0,
sum_badges = 0;
if (total_number === 0) {
$J('.confirm').html(text.nosets1);
$J('.window_title').html(text.nosets2);
$J('.craft_list').append("<p>" + text.nosets3 + "</p>");
$J('.craft_list').append("<p style='text-align:center;margin-top: 15px; letter-spacing: 8px;'>=========END=========</p>");
return;
}
window.queue_r=[];
$J(all_page).find('a.badge_craft_button').each(function(i) {
var badge_link = $J(this).attr('href');
if (i === 0) {
g_sessionID = $J(":root").html().match(/g_sessionID = "([^"]+)"/)[1];
}
var _appid = badge_link.match(/\/([0-9]{1,7})\/$/);
var _appid2 = badge_link.match(/\/([0-9]{1,7})\/\?border=1$/);
if (!_appid) {
_border = 1;
__appID = _appid2[1];
_gappid = __appID + " <font style='color:#fff'>Foil</font> ";
if ($J.inArray(__appID, sales) >= 0) {
badge_cap_level = 99999;
} else {
badge_cap_level = 1;
}
} else {
_border = 0;
__appID = _appid[1];
_gappid = __appID + "";
if ($J.inArray(__appID, sales) >= 0) {
badge_cap_level = 99999;
} else {
badge_cap_level = 5;
}
}
if($J.inArray(__appID*1,blacklist)<0&&badge_cap_level>0){queue_r.push({appid:__appID,border:_border,gappid:_gappid,badge_cap_level:badge_cap_level*1});}//blacklist.include(__appID)
});
var cur_lv = o_tar_lv = tar_lv = ivscc(cur_xp);
$J('#start').before('<p class="before_c" style="margin: 4px 0 15px 0;text-align: center; font-size: 18px; color: #fff;">Crafted: <font class="sum_crafted" style="font-size: 22px;">0</font> sets <font class="sum_xp" style="font-size: 20px;color: #ffc902;"></font><font class="level_up"> [ '+icon_raw(cur_lv)+' <font class="target_level">></font> <font class="target_level_icon">'+icon_raw(tar_lv)+'</font> ]</font><font class="mnotice" title="'+text.mnotice+'" aria-label="'+text.mnotice+'" role="tooltip" data-microtip-position="top">ℹ️</font></p>');
for(var a=0;a<threads;a++){rapid_post();}
}
var sum_crafted_r=0;
function rapid_post(){
if(queue_r.length<1){
$J('.confirm').html('<font style=" font-size: 25px; position: relative; top: 0; ">' + text.crafted + '</font>');
$J('.window_title').html(text.crafted);return;}
if(queue_r[0].badge_cap_level>0){queue_r[0].badge_cap_level--;}else{queue_r.splice(0,1);rapid_post();return;}
var border = queue_r[0].border,
appid = queue_r[0].appid,
gappid = queue_r[0].gappid;
///*
$J.ajax({
type: 'post',
url: g_strProfileURL + '/ajaxcraftbadge',
data: {
sessionid: g_sessionID,
series: 1,
border_color: border,
appid: appid
},
timeout: 8000,
complete: function(XMLHttpRequest, status) {//*/
setTimeout(function(){rapid_post();},timer_craft*0);
if(queue_r.length>0){if(XMLHttpRequest.responseJSON.success!=1&&queue_r[0].gappid==gappid){queue_r.splice(0,1);}}//status=='error'
///*
},
success: function(data) {
if (data.success == 1) {//*/
sum_crafted_r += 1;
$J('.sum_crafted').text(sum_crafted_r);
$J('.sum_xp').text('+' + (sum_crafted_r * 100) + 'XP');
var tar_lv = ivscc(cur_xp+sum_crafted_r*100);
if(tar_lv!=o_tar_lv){
icon($J('font.target_level_icon .friendPlayerLevel'),tar_lv);
$J('font.target_level_icon').addClass('rubberBand animated infinite');
setTimeout(function(){$J('font.target_level_icon').removeClass('rubberBand animated infinite');},700);
}
o_tar_lv = tar_lv;
if($J('font[data-app='+appid+'_'+border+']').length>0){
$J('font[data-app='+appid+'_'+border+']').html($J('font[data-app='+appid+'_'+border+']').html()*1+1)
}else{
$J('.craft_list').append("Crafted <font style='color:#fff'data-app='"+appid+'_'+border+"'>1</font> sets for <a href='/my/gamecards/"+appid+"?border="+border+"' target=_blank>"+gappid+"</a> badge<br>");
}
///*
}//else{queue_r.splice(0,1);}
}
});//*/
}
function _close() {
$J('.craft_background').fadeOut();
$J('.craft_window').slideUp();
}
function _open() {
$J('.craft_background').fadeIn();
$J('.craft_window').slideDown();
}
function _setting() {
$J('.setting').removeClass("_setting").addClass('_save');
$J('.craft_title').slideUp();
$J('.setting_list').slideDown();
}
function _save() {
$J('.setting').removeClass("_save").addClass('_setting');
$J('.setting_list').slideUp();
$J('.craft_title').slideDown();
GM_setValue("config_cap_level", $J("input.config_cap_level").val());
GM_setValue("timer_scan", $J("input.timer_scan").val());
GM_setValue("timer_craft", $J("input.timer_craft").val());
GM_setValue("config_blacklist", $J("textarea.config_blacklist").val());
GM_setValue("threads", $J("input.threads").val());
GM_setValue("config_max_page", $J("input.config_max_page").val());
config_cap_level=$J("input.config_cap_level").val();
timer_scan=$J("input.timer_scan").val();
config_max_page=$J("input.config_max_page").val();
timer_craft=$J("input.timer_craft").val();
config_blacklist=$J("textarea.config_blacklist").val();
threads=$J("input.threads").val();
blacklist = eval('['+config_blacklist.replace(/[^0-9,]/g,'')+']');
}
function GetPercent(num, total) {
num = parseFloat(num);
total = parseFloat(total);
if (isNaN(num) || isNaN(total)) {
return "-";
}
return total <= 0 ? "0%": (Math.round(num / total * 10000) / 100.00 + "%");
}
function cc(a){
a=a;
var b=Math.ceil(a/10);
return ((1+b)*b*5-(b*10-a)*b)*100;
}
function ivscc(exp){
for(var a=1;;a++){
var b=Math.ceil(a/10);
if((1+b)*b*5-(b*10-a)*b>exp/100){return a-1;}
}
}
function icon(jq,tar_lv){
if(tar_lv<100){
jq.prop("outerHTML",'<span class="friendPlayerLevel lvl_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum">'+tar_lv+'</span></span>');
}else{
jq.prop("outerHTML",'<span class="friendPlayerLevel lvl_'+Math.floor(tar_lv/100)*100+' lvl_plus_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum">'+tar_lv+'</span></span>');
}
}
function c_icon(jq,tar_lv){
if(tar_lv<100){
jq.attr('class','friendPlayerLevel lvl_'+Math.floor((tar_lv%100)/10)*10);
}else{
jq.attr('class','friendPlayerLevel lvl_'+Math.floor(tar_lv/100)*100+' lvl_plus_'+Math.floor((tar_lv%100)/10)*10);
}
}
function icon_raw(tar_lv){
if(tar_lv<100){
return '<span class="friendPlayerLevel lvl_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum">'+tar_lv+'</span></span>';
}else{
return '<span class="friendPlayerLevel lvl_'+Math.floor(tar_lv/100)*100+' lvl_plus_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum">'+tar_lv+'</span></span>';
}
}
function iconin(jq,tar_lv){
if(tar_lv<100){
jq.prop("outerHTML",'<span class="friendPlayerLevel lvl_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum"><input class="friendPlayerLevelNum _level" max="9999" min="0" value="'+tar_lv+'"></span></span>');
}else{
jq.prop("outerHTML",'<span class="friendPlayerLevel lvl_'+Math.floor(tar_lv/100)*100+' lvl_plus_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum"><input class="friendPlayerLevelNum _level" max="9999" min="0" value="'+tar_lv+'"></span></span>');
}
}
function iconin_raw(tar_lv){
if(tar_lv<100){
return '<span class="friendPlayerLevel lvl_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum"><input class="friendPlayerLevelNum _level" max="9999" min="0" value="'+tar_lv+'"></span></span>';
}else{
return '<span class="friendPlayerLevel lvl_'+Math.floor(tar_lv/100)*100+' lvl_plus_'+Math.floor((tar_lv%100)/10)*10+'"><span class="friendPlayerLevelNum"><input class="friendPlayerLevelNum _level" max="9999" min="0" value="'+tar_lv+'"></span></span>';
}
}
function ani(jq){
jq.addClass('rubberBand animated infinite');
setTimeout(function(){jq.removeClass('rubberBand animated infinite');},700);
}
$J('#lvdiff input').on('input propertychange',function(){
var add_xp = $J('#lvdiff input').val()*1;
var xp01 = $J('#lvl01 input._xp').val()*1;
var xp02 = xp01 + add_xp;
var lv02 = ivscc(xp02);
$J('#lvl02 input._xp').val(xp02);
iconin($J('#lvl02 span.friendPlayerLevel'),lv02);
ani($J('#lvl02 span.friendPlayerLevel'));
});
$J('#lvl01 input._xp').on('input propertychange',function(){
var add_xp = $J('#lvdiff input').val()*1;
var xp01 = $J('#lvl01 input._xp').val()*1;
var xp02 = xp01 + add_xp;
var lv01 = ivscc(xp01);
var lv02 = ivscc(xp02);
$J('#lvl02 input._xp').val(xp02);
iconin($J('#lvl01 span.friendPlayerLevel'),lv01);
iconin($J('#lvl02 span.friendPlayerLevel'),lv02);
ani($J('#lvl01 span.friendPlayerLevel'));
ani($J('#lvl02 span.friendPlayerLevel'));
});
$J('.calculator').on('input propertychange','#lvl01 input._level',function(){
var lv01 = $J('#lvl01 input._level').val()*1;
var xp01 = cc(lv01);
var add_xp = $J('#lvdiff input').val()*1;
var xp02 = xp01 + add_xp;
var lv02 = ivscc(xp02);
$J('#lvl01 input._xp').val(xp01);
$J('#lvl02 input._xp').val(xp02);
c_icon($J('#lvl01 span.friendPlayerLevel'),lv01);
iconin($J('#lvl02 span.friendPlayerLevel'),lv02);
ani($J('#lvl01 span.friendPlayerLevel'));
ani($J('#lvl02 span.friendPlayerLevel'));
});
$J('#lvl02 input._xp').on('input propertychange',function(){
var xp01 = $J('#lvl01 input._xp').val()*1;
var xp02 = $J('#lvl02 input._xp').val()*1;
var add_xp = xp02 - xp01;
var lv02 = ivscc(xp02);
$J('#lvdiff input').val(add_xp);
iconin($J('#lvl02 span.friendPlayerLevel'),lv02);
ani($J('#lvdiff'));
ani($J('#lvl02 span.friendPlayerLevel'));
});
$J('.calculator').on('input propertychange','#lvl02 input._level',function(){
var lv02 = $J('#lvl02 input._level').val()*1;
var xp01 = $J('#lvl01 input._xp').val()*1;
var xp02 = cc(lv02);
var add_xp = xp02 - xp01;
$J('#lvdiff input').val(add_xp);
$J('#lvl02 input._xp').val(xp02);
c_icon($J('#lvl02 span.friendPlayerLevel'),lv02);
ani($J('#lvdiff'));
ani($J('#lvl02 span.friendPlayerLevel'));
});
})();