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"],
		"run_at": "document_start"
	}]
}

script.js

function SetElement(element) {
	if (element.textContent.slice(-1) == ")") return;
	let value = parseInt(element.textContent.replaceAll(",", ""));
	if (isNaN(value)) return;
	switch (element.textContent.slice(-2)) {
		case "K+": value *= 1000; break;
		case "M+": value *= 1000000; break;
	}
	value *= 0.0035;
	element.textContent += " ($" + value.toFixed(2) + ")";
}

function SetElements(elements) {
	for (const element of elements) {
		if (element.nextSibling.textContent.trimEnd()) SetElement(element.nextSibling); else SetElement(element.nextSibling.nextSibling);
	}
}

const observer = new MutationObserver((mutations, observer) => {
	for (const mutation of mutations) {
		switch (mutation.type) {
			case "childList":
				for (const node of mutation.addedNodes) {
					if (node.nodeType == 1) setTimeout(SetElements, 50, node.querySelectorAll('span[class*="icon-robux-"]'));
				}
				break;
			case "characterData":
				let element = (mutation.target.previousElementSibling) ? mutation.target : mutation.target.parentNode;
				if (element.previousElementSibling && element.previousElementSibling.className.includes("icon-robux-")) SetElement(element);
				break;
		}
	}
});

observer.observe(document, {childList: true, characterData: true, subtree: true});

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

23 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.

5 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

2 Likes

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

is it open source?

4 Likes

I believe 1 R = 0.0035 USD is the devex rate

1 Like

Oh devex. I forgot about that. Thanks for correcting me.

1 Like

oh srry lol

Suphi Cooking As Always .
Good Luck

That is what I needed

Suphi on Top

Hi, a question. Does this Google extension also support conversion to other currencies? I mean, because not all of us use US dollars.

1 Like

Was this made as an indirect way to flex how rich you are? :sweat_smile:

Yes you can set to any rate you like

1 Like

You can modify the extension to have any amount of roblox you like

So it is possible to change the rate to the fictional tix currency (well not fictional, just got deleted)
So 2 robux = 40 tix i could do that with the extension?
(by changing the rate and the $ to Tix)

also which button allows me to install the files

yes simply change 0.0035 and $ to anything you like

turn on developer mode and press load unpacked and goto the folder with the 2 files

once its installed you can turn developer mode off again