Skip Steam Link filter

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

< Feedback on Skip Steam Link filter

Değerlendirme: Kötü - script çalışmıyor

§
Gönderildi: 14.12.2023

Doesn't work anymore but this change fixes it:

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

§
Gönderildi: 14.12.2023

Can't edit top comment, just better code indentation:


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

SwyterSahip
§
Gönderildi: 15.12.2023

@MoneyAllDay Noticed earlier today that it had stopped working, but hadn't started to find out why. Updated it with your more comprehensive URL parser/decoder. Many thanks! 🐧

Cevap paylaş

Yanıt göndermek için oturum açın.