placement tracker

track placement number for steam searches (https://store.steampowered.com/search/?sort_by=_ASC&ignore_preferences=1&filter=globaltopsellers)

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         placement tracker
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  track placement number for steam searches (https://store.steampowered.com/search/?sort_by=_ASC&ignore_preferences=1&filter=globaltopsellers)
// @author       TheGuy920
// @match        https://store.steampowered.com/search/*
// @grant        none
// ==/UserScript==

var placementCounter = 0;

async function execute1() {
  while (true) {
      await new Promise(resolve => setTimeout(resolve, 100));
      var parent = document.getElementById("search_resultsRows");
      var children = parent.children;
      for(var i = 0; i < children.length; i++)
      {
          if(!(children[i].innerHTML).includes("Placement Number:"))
          {
              placementCounter++;
              children[i].children[1].children[0].children[1].innerHTML += "<span>Placement Number: "+placementCounter + "</span>";
          }
      }
  }
}


(function() {
    'use strict';
   execute1();
})();