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!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Help support Bit-Gamey in the Unity Asset store
// @namespace   Violentmonkey Scripts
// @match       https://assetstore.unity.com/packages/*
// @grant       none
// @version     1.0
// @author      Schaken
// @icon        https://render-state.to/wp-content/uploads/2020/09/cropped-favicon-290x290.png
// @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());
    }
})();