Greasy Fork is available in English.

Skip Steam Link filter

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

< Skip Steam Link filter 피드백

리뷰: 나쁨 - 동작하지 않음

§
작성: 2023-12-14

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

§
작성: 2023-12-14

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

Swyter개발자
§
작성: 2023-12-15

@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! 🐧

댓글 남기기

댓글을 남기려면 로그인하세요.