Skip to content

Instantly share code, notes, and snippets.

@fipso
Last active August 7, 2021 08:46
Show Gist options
  • Save fipso/76ac49109e4438305dc87d9a0583cb99 to your computer and use it in GitHub Desktop.
Save fipso/76ac49109e4438305dc87d9a0583cb99 to your computer and use it in GitHub Desktop.
Fixes and improvements for using floatdb and csgo trader
// ==UserScript==
// @name SteamCommunityMarket Hacks
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://steamcommunity.com/*/inventory*
// @icon https://www.google.com/s2/favicons?domain=steamcommunity.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(() => {
document.querySelectorAll(".inventory_page").forEach(e => {
e.style.display = "unset";
e.style.width = "unset";
e.style.float = "unset";
});
document.querySelector("#BG_bottom").style.width = "90%";
document.querySelector("#mainContents").style["max-width"] = "90%";
document.querySelector("#active_inventory_page").style.width = "unset";
document.querySelector("#active_inventory_page").style.height = "unset";
document.querySelector("#active_inventory_page > div.inventory_page_left").style.width = "unset";
document.querySelector("#active_inventory_page > div.inventory_page_right").style.position = "sticky";
document.querySelector("#active_inventory_page > div.inventory_page_right").style.top = "10px";
document.querySelector("#inventories").style.width = "80%";
document.querySelector("#inventories").style.height = "unset";
document.querySelectorAll(".inventory_ctn.clearfix").forEach(e => {
e.style.width = "unset";
e.style.height = "unset";
e.style.padding = "10px";
});
document.querySelector("#inventory_pagecontrols").style.display = "none";
setInterval(() => {
document.querySelector("#iteminfo1_item_descriptors").style.display = "none";
document.querySelector("#iteminfo0_item_descriptors").style.display = "none";
document.querySelectorAll(".csgofloat-itemseed").forEach(e => {
e.style.right = "45px";
e.style.top = "5px";
});
document.querySelectorAll(".priceIndicator").forEach(e => {
e.style.bottom = "15px";
});
document.querySelectorAll(".floatIndicator").forEach(e => {
e.style.display = "none";
});
}, 200);
}, 2000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment