Jaex / Skip Steam filter page

// ==UserScript==
// @author        Jaex
// @name          Skip Steam filter page
// @namespace     https://github.com/Jaex
// @description   Automatically redirects Steam filter page to actual URL.
// @version       1.1
// @grant         none
// @run-at        document-start
// @include       /^https?://(?:www\.)?steamcommunity\.com/linkfilter/.*$/
// @icon          https://steamcommunity.com/favicon.ico
// ==/UserScript==

var url = window.location.href;
var regex = /^https?:\/\/(?:www\.)?steamcommunity\.com\/linkfilter\/.+?=(.+)$/i;
var match = url.match(regex);

if (match)
{
    window.location.href = match[1];
}