Skip Steam Link filter

Annoying but necessary, except for people that know their stuff.

// ==UserScript==
// @name        Skip Steam Link filter
// @description Annoying but necessary, except for people that know their stuff.
// @include     *://steamcommunity.com/*
// @namespace   https://greasyfork.org/users/4813
// @version     2023.12.15
// @author      Swyter
// @author      MoneyAllDay
// @grant       none
// ==/UserScript==

for (var link of document.querySelectorAll(`a[href^='https://steamcommunity.com/linkfilter/']`)) {
  const urlParam = new URLSearchParams(link.search);
  const originalURL = urlParam.get('u');

  if (originalURL) {
    link.href = decodeURIComponent(originalURL);
  }
}