Userstyles.org Redirect to USOArchive

Redirects userstyle.org userstyle pages to USOArchive instead

// ==UserScript==
// @name         Userstyles.org Redirect to USOArchive
// @namespace    Freeplay
// @version      1.0.2
// @description  Redirects userstyle.org userstyle pages to USOArchive instead
// @author       Freeplay (https://freeplay.codeberg.page/)
// @include      *userstyles.org/styles/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    const styleID = window.location.pathname.split('/')[2];
    document.location.href = "https://33kk.github.io/uso-archive/?style=" + styleID;
})();