Steamtrades



This title is the longest in existenceprobably not thoughNext Episode: buy some Virtual Reality Gear: https://youtu.be/WaSPS.

Steamtrades Reddit

  • Community Hubs are collections of all the best community and official game content as rated by users.
  • If steamtrades.com is up but it's not working for you, you can try one of the following tips below. Refresh your browser. Force a full refresh of your browser page by clicking Ctrl + F5 at the same time. This should work on Internet Explorer, Firefox and Chrome.
Steamtrades formattingSteamtrades
SteamTrades Auto Bump
// UserScript
// @name SteamTrades Auto Bump
// @namespace ST_AUTOBUMP
// @author LBLZR_
// @description Bumps the post every 60 minutes + random drift
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @include https://*.steamtrades.com/trade/*
// /UserScript
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function scheduleReload(seconds){
//we add a random drift to the time
seconds += getRandomInt(10, 150);
console.log('Reload scheduled after ' + seconds + ' seconds...');
setTimeout(function(){
window.location.reload(1);
}, seconds*1000);
}
$(function() {
if($('.dropdown_btn.js_trade_bump').length>0){
var bumpTime = 3600;
$.ajax({
method: 'POST',
url: '/ajax.php',
dataType: 'json',
data: $('.dropdown_btn.js_trade_bump').data('form')
}).done(function(e) {
if(e.success){
console.log('Bumped...');
scheduleReload(bumpTime);
}else{
console.log('Bump failed, we probably bumped this thread recently...');
var delay = /Please wait another (d+) minute/g.exec(e.popup_heading_h2);
console.log(e.popup_heading_h2);
if(delay != null && delay.length > 1){
bumpTime -= (60-Number(delay[1]))*60;
scheduleReload(bumpTime);
}else{
console.log('Could not find the wait time...');
scheduleReload(bumpTime);
}
}
});
}else{
console.log('This is probably not our trade, not bumping...');
}
});

commented Nov 16, 2019

Hello. I use Tampermonkey / Edge.

Your script only works when the Edge-Tab (page) is active. If I view another tab or my browser is minimized, it will not work. It will work when I open the tab.

I checked some other scripts, they can work in the background. For example, this script (which just refreshes the page) works with inactive tabs: setTimeout(function(){ location.reload(); }, 10006065);

Is there any chance to update code? I tried to do it myself, but it did not work out. Thanks.

commented Nov 17, 2019

Maybe detach the tab and run it in separate window or use a different browser? Another option would probably be to use a js service worker but I'm not exactly sure how to get that working with grease/tampermonkey...

This script is pretty old and I'm not involved in Steam trading anymore so I don't think there's any point in improving it 🤷‍♂️.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
SteamTrades Auto Bump
// UserScript
// @name SteamTrades Auto Bump
// @namespace ST_AUTOBUMP
// @author LBLZR_
// @description Bumps the post every 60 minutes + random drift
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @include https://*.steamtrades.com/trade/*
// /UserScript
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function scheduleReload(seconds){
//we add a random drift to the time
seconds += getRandomInt(10, 150);
console.log('Reload scheduled after ' + seconds + ' seconds...');
setTimeout(function(){
window.location.reload(1);
}, seconds*1000);
}
$(function() {
if($('.dropdown_btn.js_trade_bump').length>0){
var bumpTime = 3600;
$.ajax({
method: 'POST',
url: '/ajax.php',
dataType: 'json',
data: $('.dropdown_btn.js_trade_bump').data('form')
}).done(function(e) {
if(e.success){
console.log('Bumped...');
scheduleReload(bumpTime);
}else{
console.log('Bump failed, we probably bumped this thread recently...');
var delay = /Please wait another (d+) minute/g.exec(e.popup_heading_h2);
console.log(e.popup_heading_h2);
if(delay != null && delay.length > 1){
bumpTime -= (60-Number(delay[1]))*60;
scheduleReload(bumpTime);
}else{
console.log('Could not find the wait time...');
scheduleReload(bumpTime);
}
}
});
}else{
console.log('This is probably not our trade, not bumping...');
}
});

commented Nov 16, 2019

Hello. I use Tampermonkey / Edge.

Your script only works when the Edge-Tab (page) is active. If I view another tab or my browser is minimized, it will not work. It will work when I open the tab.

I checked some other scripts, they can work in the background. For example, this script (which just refreshes the page) works with inactive tabs: setTimeout(function(){ location.reload(); }, 10006065);

Is there any chance to update code? I tried to do it myself, but it did not work out. Thanks.

Code

Steam Trades Not Working

commented Nov 17, 2019

Steamtrades

Stream Trades

Maybe detach the tab and run it in separate window or use a different browser? Another option would probably be to use a js service worker but I'm not exactly sure how to get that working with grease/tampermonkey...

This script is pretty old and I'm not involved in Steam trading anymore so I don't think there's any point in improving it 🤷‍♂️.

Steamtrades Profile

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment