Robux Converter [Chrome extension]

Robux Converter

Discord Server

Robux Converter

About

Simple extension for chrome to convert Robux

Support My Work

If you liked my work and want to donate to me you can do so here


Source Code

manifest.json

{
	"name": "Robux Converter",
	"description": "Converter robux to another value",
	"version": "1.0",
	"manifest_version": 3,
	"content_scripts": [{
		"matches": ["https://www.roblox.com/*"],
		"js": ["script.js"]
	}]
}

script.js

function GetElement(callback) {
	const robuxElement = document.getElementById("nav-robux-amount");
	if (robuxElement) { setTimeout(callback, 0, robuxElement); return; }
	const navbarElement = document.getElementById("navbar-robux");
	if (navbarElement == null) { return; }
	const observer = new MutationObserver((mutations, observer) => {
		const robuxElement = document.getElementById("nav-robux-amount");
		if (robuxElement) { observer.disconnect();  setTimeout(callback, 0, robuxElement); }
	});
	observer.observe(navbarElement, {childList: true});
}

GetElement((element) => {
	let value = parseInt(element.textContent);
	switch (element.textContent.substring(element.textContent.length - 2)) {
		case "K+": value *= 1000; break;
		case "M+": value *= 1000000; break;
	}
	value *= 0.0035;
	element.textContent += " ($" + value.toFixed(2) + ")";
});

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.


How to Install

Place the manifest.json and script.js into a folder then enable developer mode in chrome://extensions/ press Load unpacked and select the folder


Other Projects

Infinite Terrain
Suphi’s DataStore Module
Global Framework
Infinite Scripter
Mesh Editor
Toggle Block Comment
Toggle Decomposition Geometry
Tag Explorer
Suphi’s Linked List Module
Suphi’s Hybrid Linked List Module
Suphi’s RemoteFunction Module
Robux Converter

11 Likes

Doesn’t BTRRoblox already do that for you in a more convenient way?

It’s also worth noting that robux is now 1 robux per cent.

4 Likes

Yes there are many extensions that already do this

I personally was looking for something light weight and open source

so I made this and shared it for anyone else that would like to use it

1 Like

Oh for light-weight purposes. Got it.

1 Like

Thank you for another great resource!

After some problems, I was able to get this running on Firefox.

Community (group) fund conversion could be a useful update, but it’s element does not have an id, which makes it a bit more complex.

1 Like