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!

  1. // ==UserScript==
  2. // @name Help support Bit-Gamey in the Unity Asset store
  3. // @namespace Violentmonkey Scripts
  4. // @match https://assetstore.unity.com/packages/*
  5. // @grant none
  6. // @version 1.0
  7. // @author Schaken
  8. // @icon https://render-state.to/wp-content/uploads/2020/09/cropped-favicon-290x290.png
  9. // @license MIT
  10. // @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!
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. const aidParam = '?aid=1100le847';
  17. const currentURL = new URL(window.location.href);
  18. let urlSearchParams = new URLSearchParams(currentURL.search);
  19.  
  20. if (!urlSearchParams.has('aid')) {
  21. urlSearchParams.set('aid', '1100le847');
  22. currentURL.search = urlSearchParams.toString();
  23. window.history.replaceState(null, '', currentURL.toString());
  24. }
  25. })();