placement tracker

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

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

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.

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

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

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