generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Roblox Message Reader - Google Chrome Extension

Previous Thread :: Next Thread 
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 04:27 AM
Search for "Roblox Message Reader" on the Chrome Extension Gallery.

Shows your messages in a browser popup, with some preliminary title/author searching. At present, it just links to the individual message pages, as I'm not yett sure how to present the message.

Thoughts?
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
25 Sep 2011 05:11 AM
[ Content Deleted ]
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
25 Sep 2011 05:15 AM
Completely useless.

Not worth slowing down your browser.
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 05:32 AM
> Completely useless.

It's more of a proof of concept, more than anything else. It's not _completely_ useless, as it allows you to search the message titles.

> Not worth slowing down your browser.

The browser slowdown should be insignificant - it sits there idle until you push the extension icon, at present.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
25 Sep 2011 06:03 AM
Downloading it purely for the search. My browser can't be slowed anyway.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
25 Sep 2011 06:07 AM
Could you make it so that the popup doesn't disappear when you change web pages? It's irritating if it keeps disappearing
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
25 Sep 2011 06:08 AM
The search doesn't search back very far - make an 'advanced' search that wouldn't be instant that would crawl through your inbox searching for every message with the matching author/title.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
25 Sep 2011 06:16 AM
"make an 'advanced' search that wouldn't be instant that would crawl through your inbox searching for every message with the matching author/title."

I'm sure that would cause it to have a large load time. I don't think there is any database you can search raw - so you would have to load each inbox element (page).
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
25 Sep 2011 07:07 AM
Yes, which is why it would be a separate option if you wanted to, not the default.
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 07:42 AM
@MrNicNac: Not true. I can request any number of items from the inbox. At present, I'm requesting only the first 50, but in principle, I could make it get more as the search filters it.

Searching message text would be tricky. That does require a request per page. Which also ends up with all the messages on the server being marked as read.

The best way might be to download all your messages upon install, and thereafter, search those downloaded copies. The downside is, your messages would always be marked as read on the website, so you would have to use the extension to keep track of readness.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
25 Sep 2011 07:46 AM
"I can request any number of items from the inbox. At present, I'm requesting only the first 50, but in principle, I could make it get more as the search filters it."

Well that's interesting...
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
25 Sep 2011 07:56 AM
@NXT

Make an advanced search which lets you specify how many to search
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 07:59 AM
Have a look at the Inbox page. If you start logging requests in chrome, you can see the XHR requests made by javascript, which contain message data encoded as json:

Take a look:

http://www.roblox.com/My/MessagesHandler.ashx?page=1&msgsPerPage=50&type=GetInbox&sort=[Created]+DESC

I can confirm that it can grab all 600ish of my messages in one request.
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
25 Sep 2011 08:01 AM
I hate Javascript..
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 08:03 AM
Why? It's a great language. Only thing that's missing is operator overloading, which is a feature that some see as a Bad Thing™ anyway.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
25 Sep 2011 08:10 AM
Now how quick could you make up some jscript that I could, oh say, throw into Chrome's omnibox and it would delete all of my 429 unread PMs?
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
25 Sep 2011 08:11 AM
I can think of one way to put it, like..

It feels and looks like Lua in design, but then with heavy dosage of PHP, messy, strange standards.. meh..

I think the main problem is the DOM tree though. If that were made simpler and more organized than perhaps everything would be better.

It should also be noted that I'm a total noob and have only played with JavaScript a little. It's not ORGANIZED, I guess, it what I like the least, it's just messy, messy messy, like the web.

The Web popped up and, well, nobody had a real architecture set up for it. It just exploded in popularity and now runs modern society. I guess, considering that, it's pretty clean, for the spontaneity with which it appeared and was needed...
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
25 Sep 2011 08:43 AM
Just a suggestion for a future extension ( because I absolutely suck at JS past the basic stuff that most company's request for for a site ) but would it be possible to make an extension that'll only accept group requests if they match certain parameters?
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 09:15 AM
@MrNicNac: It's a bit too complex for the omnibox. However the javascript console (Ctrl+Shift+J) will work well. This code ought to work:

$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 2000,
type: 'GetInbox',
sort: '[Created] DESC'
}, function(data) {
var ids = data.Messages.filter(function(elem) {
return elem && elem[5] === 'true';
}).map(function() {
return elem[3];
});
console.log('Archiving ' + ids.length + ' messages...')
$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 0,
selected: ids.join(',')
type: 'ArchiveButton',
sort: '[Created] DESC'
});
});

**WARNING: THIS WILL ARCHIVE _ALL_ UNREAD MESSAGES**

You'll need to change that 2000 to be greater than the total number of PMs.
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 09:17 AM
Oops, missing comma.

$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 2000,
type: 'GetInbox',
sort: '[Created] DESC'
}, function(data) {
var ids = data.Messages.filter(function(elem) {
return elem && elem[5] === 'true';
}).map(function() {
return elem[3];
});
console.log('archiving ' + ids.length + ' messages');
$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 0,
selected: ids.join(','),
type: 'ArchiveButton',
sort: '[Created] DESC'
});
});
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
25 Sep 2011 09:22 AM
Uncaught ReferenceError: elem is not defined

I'm sure your code is fine. Does that indicate that there are no unread PMs? (Most of them are unread system messages, not really PMs).
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 10:01 AM
No, I made a mistake. I didn't want to run the code, so I was writing it without testing:

$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 2000,
type: 'GetInbox',
sort: '[Created] DESC'
}, function(data) {
var ids = data.Messages.filter(function(elem) {
return elem && elem[5] === 'true';
}).map(function(elem) {
return elem[3];
});
console.log('archiving ' + ids.length + ' messages');
$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 0,
selected: ids.join(','),
type: 'ArchiveButton',
sort: '[Created] DESC'
});
});

I hadn't defined the `elem` parameter in the `map` callback.
Report Abuse
micol2242 is not online. micol2242
Joined: 13 Nov 2010
Total Posts: 4732
25 Sep 2011 10:49 AM
@NXTBoy

I know nothing about Java, and don't count this as a request, but is there something that could auto read all my messages that are in my archive and inbox? I have alot, really old, don't wanna read them all ._.

--Cleverness is clever--
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
25 Sep 2011 10:59 AM
:o


EP1C
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
25 Sep 2011 11:02 AM
@micol: there's no easy way to make a message as read. Effectively, you would still have to load every single message page in order to mark them as read. That would take a fair amount of time. Less than doing it by hand, mind you, but it would still be a drain on bandwidth, potentially.

Having said that, here is some code that should work:

$.get('http://www.roblox.com/My/MessagesHandler.ashx', {
page: 1,
msgsPerPage: 2000,
type: 'GetInbox',
sort: '[Created] DESC'
}, function(data) {
var ids = data.Messages.filter(function(elem) {
return elem && elem[5] === 'true';
}).map(function(elem) {
return elem[3];
});
var count = 0;
ids.forEach(function(id) {
$.get('http://www.roblox.com/My/PrivateMessage.aspx', {MessageID: id}, function() {
console.log(count++ + '/' + ids.length + ' Messages marked as read in inbox');
})
}
});

Run it in the javascript console. It should give you a measure of progress.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image