Greasy Fork 支持简体中文。

Get More Spaces in Your Garage for Nitro Type and Math

Sing Developments has created this script for you to use for personal use. This script should help you to add spaces to your garage parking lot.

  1. // ==UserScript==
  2. // @name Get More Spaces in Your Garage for Nitro Type and Math
  3. // @namespace https://singdevelopmentsblog.wordpress.com
  4. // @version 0.3
  5. // @description Sing Developments has created this script for you to use for personal use. This script should help you to add spaces to your garage parking lot.
  6. // @author Sing Developments
  7. // @match https://www.nitrotype.com/garage
  8. // @match https://www.nitromath.com/garage/
  9. // @icon https://singdevelopmentsblog.files.wordpress.com/2022/11/nitrotype-logo.jpg
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. javascript:(async(a,b='',c,d=JSON.parse(JSON.parse(localStorage['persist:nt']).user).garage)=>{if(!a)return;for(c=0;c<a*30;c++)b+=`garage%5B${c}%5D=${d[c]||''}&`;await fetch('api/v2/loot/arrange-cars',{'headers':{'Authorization':'Bearer '+localStorage.player_token,'Content-Type':'application/x-www-form-urlencoded'},'body':b,'method':'POST','mode':'cors'});alert`Logging you out... Please log back in to see changes.`;document.querySelector('a.dropdown-link[href="/"]').click()})(prompt`Number of garage sections (~30 max):`)