Replit DeviceInfo by 9pfs

I decided to create a website that would let people see what browser people use. I used sqlite for a database (and ejs for a template engine). This lets people see what browser someone uses without having to ask, which is helpful when people in a discussion are rarely both awake at the same time.

https://replit.com/@9pfs/replit-DeviceInfo?v=1

6 Likes

Can u manually add me to the list? It won’t let me authorize replit for some reason…

1 Like

Sure. Send whatever you see when you open https://9pfs.repl.co/cgi-bin/user-agent, Replit username, and screen resolution.

1 Like

Nice! I made something similar a little while ago because I found out you could detect a user’s GPU with JS lol. I love the idea of the public list, very cool Repl. :slight_smile:

1 Like

Make sure you opened it in a new tab, I doubt repl auth works in a webview

1 Like

I’m planning on adding an API

Repl Auth does work in webview, I added myself without issue from the webview so :man_shrugging:

1 Like

Okay. That’s strange

1 Like

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Although, it’s a little weird because I don’t use Mozilla lol.

@MattDESTROYER A basic API is done, I’ll make it have more features (e.g. only recieving certain fields) once I have time. https://replit-deviceinfo.9pfs.repl.co/api (Just realized I need to enable CORS for that endpoint)

1 Like

Enabled CORS for /api!

1 Like

What’s your screen resolution?

1 Like

1920x1080 most likely

Replit username???

my username is @JayAySeaOhBee14

It’s all the info displayed from navigator.userAgent. It shows a whole bunch of stuff, much of which is irrelevant. From what I can see, you’re probably using a 64 bit version of Windows 10 and you’re using the latest version of Chrome.

Okay… (Figuring out the sql query for adding you)

~/replit-DeviceInfo$ sqlite3 users.db .schema
CREATE TABLE users(username text, id int, image text, user_agent text, screen_width int, screen_height int);
CREATE TABLE rickrolls(username text);
~/replit-DeviceInfo$ 
INSERT INTO users VALUES('JayAySeaOhBee14',16625467,'https://storage.googleapis.com/replit/images/1676731205635_a49a67309cbccd51c96d97aa0f67091d.png','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36',1920,1080);

Does that look right?

1 Like

I’m still on Chrome 108

Also, if I realized it would take that much work for you to add me in, I probably wouldn’t have asked :sweat_smile:

1 Like