[Bookmarklet] IMVU - Get Room ID

DataMine
by DataMine · 15 posts
9 years ago in Javascript
Posted 9 years ago · Author
About
This is a bookmarket that will give you the id of a public room. It makes getting the room id for my Public Room Monitor (More about that HERE) much more convenient.


How To Install - FireFox

1) Right click on the bookmark toolbar and select "New Bookmark". If you don't have the bookmark toolbar visible press alt to bring up the menubar.
Then click view, hover over Toolbars and click "Bookmark Toolbar"
2) Give the bookmarklet a name by typing something into the "Name" field.
3) Copy and paste the code below into the "Location" field.
4) Click add


How To Install - Chrome

1) Right click on the bookmark toolbar and select "Add Page". If you don't have the bookmark toolbar visible open the settings menu and scroll down to appearance. Then checkmark the box that says "Always show the bookmarks bar".
2) Give the bookmarklet a name by typing something into the "Name" field.
3) Copy and paste the code below into the "URL" field.
4) Click Save

Code:
Code
javascript: (function getRoomID() {
   /**
    * DM's Get Room ID Script
    * v1.0
    * Grabs the room id from the room page
    */
   
   /*Get the product page url*/
   var strURL = document.URL;
   
   /*Get the room link href value*/
   var roomLink = document.getElementById("rm_name_href").getAttribute("href");

   if(strURL != "" && strURL.indexOf("http://www.imvu.com/rooms/") != -1) {
      /*Get the room id*/
      var roomID = roomLink.split("=")[1];

      /*Generate the BBCode and alert it to the user for copying*/
      window.prompt ("Room ID:",roomID);
   }
})();



To use it, simply navigate to the room page for example: http://www.imvu.com/rooms/ROOM_NAME after installing the bookmarklet and run it. A pop up box should display with the room id in it ready for you to copy.
Posted 9 years ago
It works so fine, thank you D.M! :coin:
Posted 5 years ago
Does this bookmark still work?
Posted 5 years ago · Author
@MisFitz
Yeah, it should as long as IMVU hasn't changed the url. If it's not working for you or you have any questions/comments feel free to send me a PM and I'll try to help you.
Posted 5 years ago
I use Opera but this is helpful, thank you.
Posted 5 years ago
I'm using the IMVU next version in browser to get the room ID or even any product ID. It's easy and allow direct linking to IMVU mobile app.
Posted 5 years ago · Author
@HardyGG
Of course it's easy to get this information from the browser. It's right in the URL. This bookmarklet was created for people who need to get a handful or more room ids and don't want to manually copy/paste each one from the url into wherever they need it.

As is the case with most of my bookmarklets and most of my program, this was designed to reduce the time and effort required when getting a lot of data from IMVU.
Posted 5 years ago
@DataMine yeah mine takes a bit of time. I'm gonna try your way to see how that works.
Posted 5 years ago
Thanks folk helped alot

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT