Help support Bit-Gamey in the Unity Asset store

This just checks to see if you have Bit-Gamey code in the url, if you do not, it adds it. this will support our good friend!

当前为 2024-07-11 提交的版本,查看 最新版本

// ==UserScript==
// @name        Help support Bit-Gamey in the Unity Asset store
// @namespace   Violentmonkey Scripts
// @match       https://assetstore.unity.com/packages/*
// @grant       none
// @version     0.9
// @author      Schaken
// @license     MIT
// @description This just checks to see if you have Bit-Gamey code in the url, if you do not, it adds it. this will support our good friend!
// ==/UserScript==

(function() {
    'use strict';

    const aidParam = '?aid=1100le847';
    const currentURL = new URL(window.location.href);
    let urlSearchParams = new URLSearchParams(currentURL.search);

    if (!urlSearchParams.has('aid')) {
        urlSearchParams.set('aid', '1100le847');
        currentURL.search = urlSearchParams.toString();
        window.history.replaceState(null, '', currentURL.toString());
    }
})();