// ==UserScript== // @name Agma Chat Command Settings // @namespace agma-chat-command-settings // @version 2.3.4 // @description Configure your settings using the chat. // @author CodingWithNuke // @license MIT // @match *://agma.io/* // @grant none // @downloadURL none // ==/UserScript== (()=>{var e={456:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Colors=t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={textColor:"#ffffff",visibilityTime:5e3},(n=t.Colors||(t.Colors={})).WHITE="#FFFFFF",n.SILVER="#C0C0C0",n.GRAY="#808080",n.GREY="#808080",n.BLACK="#000000",n.RED="#FF0000",n.MAROON="#800000",n.YELLOW="#FFF000",n.OLIVE="#808000",n.LIME="#00FF00",n.GREEN="#008000",n.AQUA="#00FFFF",n.TEAL="#008080",n.BLUE="#0000FF",n.NAVY="#000080",n.FUCHSIA="#FF00FF",n.PURPLE="#800080"},451:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},221:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(705),t)},458:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatContext=t.createChatContext=void 0,t.createChatContext=function(e){return new n(e)};var n=function(){function e(e){this._chatElement=document.querySelector(e)}return e.prototype.value=function(e){if(void 0===e)return this._chatElement.value;this._chatElement.value=e},e.prototype.clear=function(){this.value("")},e.prototype.focus=function(){this._chatElement.focus()},e}();t.ChatContext=n},778:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},d=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineCommand=void 0,t.defineCommand=function(e){return e}},914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definePlugin=void 0,t.definePlugin=function(e){return e}},709:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.definePlugin=t.defineCommand=t.createScript=t.createChatContext=void 0;var r=n(458);Object.defineProperty(t,"createChatContext",{enumerable:!0,get:function(){return r.createChatContext}});var a=n(778);Object.defineProperty(t,"createScript",{enumerable:!0,get:function(){return a.createScript}});var s=n(927);Object.defineProperty(t,"defineCommand",{enumerable:!0,get:function(){return s.defineCommand}});var c=n(914);Object.defineProperty(t,"definePlugin",{enumerable:!0,get:function(){return c.definePlugin}}),o(n(892),t)},426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},892:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ChatContext=void 0;var r=n(458);Object.defineProperty(t,"ChatContext",{enumerable:!0,get:function(){return r.ChatContext}}),o(n(807),t),o(n(426),t),o(n(832),t)},832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Script=void 0;var i=n(778);Object.defineProperty(t,"Script",{enumerable:!0,get:function(){return i.Script}})},565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_COMMAND=t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={info:{version:"1.0.0"},prefix:"/"},t.DEFAULT_COMMAND={clearChat:!0}},230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=t.error=t.warn=t.log=void 0,t.log=function(e){console.log("[io-scripts (LOG)]: ".concat(e))},t.warn=function(e){console.warn("[io-scripts (WARN)]: ".concat(e))},t.error=function(e){console.error("[io-scripts (ERROR)]: ".concat(e))},t.debug=function(e){console.log("[io-scripts (DEBUG)]: ".concat(e))}},675:(e,t,n)=>{e.exports=[n(320)]},320:(e,t,n)=>{const{defineCommand:i}=n(709),{useAlert:o,Colors:r}=n(347),{availableSettings:a}=n(279);e.exports=i({name:"setting",aliases:["s"],run:(e,t,n)=>{if(1==n.length){const e=a.find((e=>!!e&&(Array.isArray(e.name)?e.name.find((e=>e==n[0])):e.name==n[0])));if(!e)return void o(`No setting found with name "${n[0]}"`,{alertElementSelector:"#curser",textColor:r.RED});const{displayName:t,id:i}=e,s=document.getElementById(i);o(`The setting "${t}" is turned ${s.checked?"on":"off"}`,{alertElementSelector:"#curser",textColor:s.checked?r.LIME:r.RED})}if(2==n.length&&("on"==n[1]||"off"==n[1])){const e="on"===n[1],t=a.find((e=>!!e&&(Array.isArray(e.name)?e.name.find((e=>e==n[0])):e.name==n[0])));if(!t)return void o(`No setting found with name "${n[0]}"`,{alertElementSelector:"#curser",textColor:r.RED});const{displayName:i,function:s,id:c}=t,l=document.getElementById(c);s(e),l.checked=e,o(`The setting "${i}" has been turned ${e?"on":"off"}`,{alertElementSelector:"#curser",textColor:e?r.LIME:r.RED})}}})},279:(e,t)=>{const n=[{displayName:"Dark Theme",name:"darktheme",function:window.setDark,id:"cDark"},{displayName:"Fancy Grid",name:"fancygrid",function:window.setFancyGrid,id:"cFancyGrid"},{displayName:"Section Grid",name:"sectiongrid",function:window.setSectionGrid,id:"cSectionGrid"},{displayName:"Gridlines",name:["gridline","gridlines"],function:window.setGrid,id:"cGrid"},{displayName:"Skins",name:["skin","skins"],function:window.setSkins,id:"cSkins"},{displayName:"Wearables",name:["wearable","wearables"],function:window.setWearables,id:"cWearables"},{displayName:"Show Names",name:["name","names"],function:window.setNames,id:"cNames"},{displayName:"Minion Names",name:["minionname","minionnames"],function:window.setMinionNames,id:"cMinionNames"},{displayName:"Large Names",name:["largename","largenames"],function:window.setLargeNames,id:"cLargeNames"},{displayName:"Name Outlines",name:["nameoutline","nameoutlines"],function:window.setNameOutlines,id:"cNameOutlines"},{displayName:"Show Mass",name:"mass",function:window.setMass,id:"cMass"},{displayName:"Show Food",name:"food",function:window.setFood,id:"cFood"},{displayName:"Cell Animations",name:["cellanimation","cellanimations"],function:window.setCellAnimations,id:"cCellAnimations"},{displayName:"Skin Animations",name:["skinanimation","skinanimations"],function:window.setSkinAnimations,id:"cSkinAnimations"},{displayName:"Map Border",name:"mapborder",function:window.setMapBorder,id:"cMapBorder"},{displayName:"Sounds",name:["sound","sounds"],function:window.setSounds,id:"cSounds"},{displayName:"Infinite Zoom",name:"infinitezoom",function:window.setZoom,id:"cZoom"},{displayName:"Fixed Zoom",name:"fixedzoom",function:window.setFixedZoom,id:"cFixedZoom"},{displayName:"Slow Motion",name:"slowmotion",function:window.setSlowMotion,id:"cSlowMotion"},{displayName:"Minion Panel",name:"minionpanel",function:window.setMinionUi,id:"cMinionUi"},{displayName:"Leaderboard",name:"leaderboard",function:window.setLeaderboard,id:"cLeaderboard"},{displayName:"Chat",name:"chat",function:window.setChat,id:"cChat"},{displayName:"Minimap",name:"minimap",function:window.setMinimap,id:"cMinimap"},{displayName:"FPS / Ping / Stats",name:["fps","ping","stats"],function:window.setFPS,id:"cFPS"},{displayName:"Cell Colors",name:["color","colors","cellcolor","cellcolors"],function:window.setColors,id:"cColors"},{displayName:"Cell Borders",name:["cellborder","cellborders"],function:window.setCellBorders,id:"cCellBorders"},{displayName:"Cell Spikes",name:["cellspike","cellspikes"],function:window.setCellSpikes,id:"cCellSpikes"},{displayName:"Classic Virus Look",name:"classicvirus",function:window.setClassicViruses,id:"cClassicViruses"},{displayName:"Polygon Shapes",name:["polygonshape","polygonshapes"],function:window.setPolygonShapes,id:"cPolygonShapes"},{displayName:"Line Shapes",name:["lineshape","lineshapes"],function:window.setLineShapes,id:"cLineShapes"},{displayName:"Bubble Cells",name:["bubblecell","bubblecells"],function:window.setBubbleCells,id:"cBubbleCells"}],i=[{displayName:"Online Status",name:"onlinestatus",function:window.setFriendlistOnline,id:"cVisibilityStatus"},{displayName:"Allow Party Invitations",name:"partyinvite",function:window.showPartyInvite,id:"cAllowPartyInvite"},{displayName:"Allow Party Animations",name:["partyanimation","partyanimations"],function:window.setPartyAnimations,id:"cAllowPartyAnimations"},{displayName:"Auto Feed",name:"autofeed",function:window.setAutoFeedEnabled,id:"cAutoFeed"},{displayName:"Gold Nickname",name:["goldnick","goldnickname"],function:window.setGoldNickname,id:"cGoldName"},{displayName:"Gold Crown in Chat",name:"goldcrown",function:window.setGoldCrownChat,id:"cGoldCrownChat"},{displayName:"Set Skins on Minions",name:["minionskin","minionskins"],function:window.setMinionSkins,id:"cMinionSkinStatus"},{displayName:"Video Ads",name:["videoad","videoads"],function:window.setVideoAds,id:"cVideoAds"}];t.availableSettings=[...n,...i]},793:e=>{"use strict";e.exports=JSON.parse('{"name":"io-scripts","private":false,"version":"2.3.4","description":"io-scripts is an easy-to-use library to create scripts for any kind of .io game.","bin":"./dist/src/bin/io-scripts.js","main":"dist/src/index.js","types":"dist/src/index.d.ts","scripts":{"build":"rm -rf ./dist && tsc"},"author":"CodingWithNuke","license":"MIT","keywords":["io-scripts",".io","scripts","userscripts","userscript","agar.io","agma.io"],"dependencies":{"commander":"^8.3.0","fs":"^0.0.1-security","kolorist":"^1.5.1","path":"^0.12.7","prepend-file":"^2.0.0","ts-loader":"^9.2.6","webpack":"^5.65.0"},"devDependencies":{"@types/node":"^16.11.10","typescript":"^4.5.2"}}')}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}(()=>{const{createScript:e}=n(709),t=e({chatElementSelector:"#chtbox",silent:!0});n(675).forEach((e=>t.command(e.name,e)))})()})();