Annoying but necessary, except for people that know their stuff.
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);
}
}
@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! 🐧
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
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);
}
}