placement tracker

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
})();