What's new
Choice of Mods

Join our amazing community to find Choicescript games and modifications to improve your gameplay!

Using the developer console on mobile

Medivh

Active member
Member
Hi, I am Medivh, and if you are like me you like to sometimes use the console to edit variables, and would like to do so on mobile too.
Up until somewhat recently this was capable with the Kiwi browser, it is no longer being supported.
I now recommend using Firefox (it is quite good as a main browser) and while you are here go into extensions and install Ublock Origin, installing violent monkey too is important for the next step, copy this code:
// ==UserScript== // @name Modding CoG // @namespace Medivh's Scripts // @match https://cogdemos.ink/play/* // @match https://www.choiceofgames.com/* // @grant none // @version 1.0 // @author Medivh // @description 23/08/2025, 09:14:48 // ==/UserScript== (function(){ 'use strict'; var scriptCheats = document.createElement('script'); scriptCheats.src = 'https://choicescripts.blob.core.windows.net/scripts/CheatMaster.js' document.body.appendChild(scriptCheats); })();
open the violent monkey extension (if you are on a new tab on firefox you need to click extensions>violent monkey>settings and then click the installed scripts tab), select the plus symbol in it and click New, now delete everything in that page and paste what you copied earlier, make sure the script is enabled and now it should work in cogdemos. If you want the console instead/too after installing violent monkey you can use this code I modified to only work in cogdemos.ink and choiceofgames:
// ==UserScript== // @name Console for mobile browsers - eruda // @namespace Medivh's Scripts // @version 1.0 // @description try to take over the world! // @author You // @match https://cogdemos.ink/play/* // @match https://www.choiceofgames.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var script = document.createElement('script'); script.src="//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); script.onload = function () { eruda.init(); } })(); and press install, make sure it is enabled and everything shall go according to keikaku.
Thank you @Barkus for providing the original script to modify stats, all I did was port it.
Edit: Now both codes should work exclusively in CoG and cogdemos.ink
 
Last edited:

Medivh

Active member
Member
There, I managed to get the script to stop displaying a sad emoji instead of proper formatting.
As I was going to write before I realised that happened, there are a few caveats to all of this, there will be no autocomplete feature, I will search if there is a way but I can make no promises, so you need to write the exact variable and then hide your keyboard and click execute.
if you don't type something to modify the variable it will instead display the current value once it is executed, just as in desktop, this could potentially be useful if you werw just searching for variables blindly and not reading the code.
 
  • Like
Reactions: Fye

Medivh

Active member
Member
It seems I had gotten the formatting wrong too, I managed to get it to work this time around with the script I copied on this page, so now it should work.
 
  • Like
Reactions: Fye

Medivh

Active member
Member
Idk if this is the same but here's the one I've been using
scriptCheats = document.createElement('script');
scriptCheats.src = 'https://choicescripts.blob.core.windows.net/scripts/CheatMaster.js';
document.body.appendChild(scriptCheats);
The script I shared lets you access the developer console, I don't know why I am not capable of saving your script as a bookmark (I am on mobile right now) but using it through the console does work and it seems quite handy. The great thing about using console is that it lets you modify sites outside cogdemos if used well, although it seems right now I am not capable of doing so in Itch.io with jinlai.
 

Medivh

Active member
Member
Does it also offer code highlights similar to Kiwi browser? Because it make things much simpler.
Code highlights? If you mean the suggestions upon typing stats. I am afraid it does not. Unfortunately the dev tools extension for firefox is no longer available (I don't know why) and so this is the next best thing, although the script Barkus shared should help quite a lot.
 

Medivh

Active member
Member
I will edit this page now.
I have installed the violent monkey extension for running scripts on firefox, I am running both an eruda script for a console and an adaptation of Barkus' script so that it works automatically on cogdemos.ink
Instructions will be on the original post soon.
 

Medivh

Active member
Member
Original post has been edited, the new instructions are there.
 
Last edited:

kedavara

New member
Member
If anyone wants to do the same on iOS devices. Use iOS shortcuts app. I created a shortcut using the above javascript code.
All the rights and thanks to respective creators
You can run it directly using share sheet
 

everest

New member
Member
The script I shared lets you access the developer console, I don't know why I am not capable of saving your script as a bookmark (I am on mobile right now) but using it through the console does work and it seems quite handy. The great thing about using console is that it lets you modify sites outside cogdemos if used well, although it seems right now I am not capable of doing so in Itch.io with jinlai.
Any working method for jinlai? Using kiwi tryin to edit bank tru dev tools, it just gives syntax error. I think game is encrypted.
 
Top