Heya, just wanted to point out that the script at https://steam.madjoki.com/bundles.user.js isn't a valid userscript as it's missing all the required tags and this creates compatibility issues (i.e. the script doesn't install from your webpage, it just downloads a raw javascript file that has to be manually copied and pasted which is no different than using the console in-browser).
Comment has been collapsed.
How dare they debeautify text. I bet they use spaces instead of tabs too!
Comment has been collapsed.
ONE SCRIPT TO RULE THEM ALL ... :) how to properly add this ?
Comment has been collapsed.
Problem for Userscript.
I double click and I:
Script: C:\Users\====\Downloads\bundles.user.js
Line: 3
Char: 47
Error: Expected identifier, string or number
Code: 800A0404
Source: Microsoft JScript compilation error
And when I copy / paste, I have warning messages:
'$' is not defined.
Expected { after 'else'.
Need help plz
Comment has been collapsed.
this for use inside your browser like chrome or firefox with greasemonkey / tampermonkey pluggins
Comment has been collapsed.
This is the version I got a while back, still running fine (?) on my browser.
// ==UserScript==
// @name Steam.madjoki.com - Owned Games Support
// @namespace Madjoki
// @include *//steam.madjoki.com/*
// @version 26
// @grant GM_xmlhttpRequest
// ==/UserScript==
(function () {
window.postMessage({
'type': 'extensionInstalled',
'version': 26
}, "*");
function updateGames()
{
localStorage.extensionLastUpdate = new Date().getTime();
var link = "https://store.steampowered.com/dynamicstore/userdata/?t=" + (new Date().getTime());
GM_xmlhttpRequest({
method: "GET",
url: link,
timeout: 5000,
onload: function(response) {
var jsonFile = JSON.parse(response.responseText);
if (jsonFile.rgOwnedPackages.length === 0)
{
window.postMessage({
'type': 'extensionLogout',
}, "*");
return;
}
window.postMessage({
'type': 'updateUserdata',
'json': jsonFile
}, "*");
},
});
}
var steamSessionID = null;
function getSteamSessionID(callback)
{
if (steamSessionID !== null)
{
callback(steamSessionID);
return;
}
GM_xmlhttpRequest({
method: "GET",
url: "https://store.steampowered.com/",
timeout: 5000,
onload: function(response) {
// Get Session ID
// Needed to add package
var m = /g_sessionID = "([^"]+)"/.exec(response.responseText);
steamSessionID = m[1];
callback(steamSessionID);
},
});
}
function addPackage(subid, callback)
{
getSteamSessionID(function (sessionID) {
GM_xmlhttpRequest({
method: "POST",
url: "https://store.steampowered.com/checkout/addfreelicense",
timeout: 5000,
data: $.param({
action: 'add_to_cart',
sessionid: sessionID,
subid: subid
}),
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
onload: function(response) {
var dom = $.parseHTML(response.responseText);
var success = $(dom).find(".add_free_content_success_area");
var failure = $(dom).find("#error_box");
if (success.length)
callback(true, success.text());
else
callback(false, failure.text() || "Error");
}
});
});
}
// Add Package to account
$(".extension-add-package").click(function (ev) {
ev.preventDefault();
var btn = $(this);
var subid = btn.data('package-id');
addPackage(subid, function (success, text) {
if (success)
btn.text('OK');
else
btn.text('Error');
});
});
$(".extension-add-packages").click(function (ev) {
ev.preventDefault();
var btn = $(this);
var subids = btn.data('packages');
var current = 0;
var total = subids.length;
function addNext()
{
if (current == total)
{
btn.text('Done');
return;
}
addPackage(subids[current], function (success, status) {
current++;
btn.text(current + ' / ' + total);
addNext();
});
}
addNext();
});
$(".extension-add-package").removeAttr('disabled').removeClass('disabled');
$(".extension-add-packages").removeAttr('disabled').removeClass('disabled');
var updateCutoff = (new Date().getTime()) - (30 * 60 * 1000);
if (localStorage.extensionLastUpdate === undefined || localStorage.extensionLastUpdate < updateCutoff)
updateGames();
else
console.log("not updating");
$("#updateGames").click(updateGames);
})();
Comment has been collapsed.
I'm not sure I get this. I have the script installed, but I'm not sure where to go from here. Do I still need to copy and paste the script into console? If so, what is the reason for installing the script?
Apologies in advance, maybe it's just too early and I'm not seeing the obvious.
Comment has been collapsed.
I've used the method from the link below and I seem to have hit rock bottom.
https://steamdb.info/freepackages/
What other scripts and methods I could use now? Please offer detailed instructions if you can.
Comment has been collapsed.
I don't see any packages above app-id 300.000 here: https://steam.madjoki.com/apps/free
Comment has been collapsed.
I get this error:
Access Denied
You don't have permission to access "http://store.steampowered.com/dynamicstore/userdata/" on this server.
Reference #18.479fef50.1542297961.56b235fe
Comment has been collapsed.
360 Comments - Last post 11 seconds ago by Wok
17,037 Comments - Last post 1 hour ago by Channel28
9 Comments - Last post 1 hour ago by justachild8
196 Comments - Last post 1 hour ago by ZPE
185 Comments - Last post 1 hour ago by Reidor
76 Comments - Last post 1 hour ago by Wasari
13 Comments - Last post 1 hour ago by Stakaniy
297 Comments - Last post 8 seconds ago by enigma9q
82 Comments - Last post 3 minutes ago by Hallowly
123 Comments - Last post 4 minutes ago by GeekDoesStuff
67 Comments - Last post 13 minutes ago by WaxWorm
77 Comments - Last post 21 minutes ago by Hallowly
284 Comments - Last post 23 minutes ago by Maiallor
206 Comments - Last post 23 minutes ago by Hallowly
Updated version available at: http://steam.madjoki.com/apps/free (requires login /w steam account to customize)
Old version is still available here
Comment has been collapsed.