[Bookmarklet] IMVU - Generate Clickable Product Icon

DataMine
by DataMine · 4 posts
11 years ago in Javascript
Posted 11 years ago · Author
About
Are you a developer? Do you make IMVU layouts? Are you someone who wants an easy way to generate clickable product icons? Well look no further! I have made a bookmarklet that will let you do just that!



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



HTML Bookmarklet
This bookmarklet will generate HTML code for a clickable product icon that takes you to the product page for using in layouts or other websites
[code=javascript file=Untitled.txt]javascript: (function generateHTMLCode() {
/*Get the product page url*/
var strURL = document.URL;

if(strURL != "" && strURL.indexOf("http://www.imvu.com/shop/product.php?products_id=") != -1) {
/*Get the product icon url*/
var strIMGURL = document.getElementById("product-image").src;

/*Generate the BBCode and alert it to the user for copying*/
window.prompt ("HTML Code:","<a href='" + strURL + "' target='_blank'><img src='" + strIMGURL + "'/></a>");
}
})();
[/code]


BBCode Bookmarklet
This bookmarklet will generate BBCode for a clickable product icon that takes you to the product page for posting on forums like ours and IMVU.
[code=javascript file=Untitled.txt]javascript: (function generateBBCode() {
/*Get the product page url*/
var strURL = document.URL;

if(strURL != "" && strURL.indexOf("http://www.imvu.com/shop/product.php?products_id=") != -1) {
/*Get the product icon url*/
var strIMGURL = document.getElementById("product-image").src;

/*Generate the BBCode and alert it to the user for copying*/
window.prompt ("BBCode:","[url=" + strURL + "][img]" + strIMGURL +"[/img][/url]");
}
})();[/code]
Posted 11 years ago
Oh, wow... You always surprise me a lot DM... Thanks for sharing this!
Posted 11 years ago · Author
hidrocalida wrote:
Oh, wow... You always surprise me a lot DM... Thanks for sharing this!


You're welcome :D
Posted 7 years ago
well im not a developer but this really helps thats a good one right here!, Works for me ! and it looks great hehe love your bookmarket scripts, nice one DM, thank you DM for everything your doing i really appreciate your hard work, i'm trying to run around your scripts and trying them lol love your work man ! :> hope more scripts are coming soon love your work guys and love this site its outstanding ! i'm really wainting for more scrpts :DDD

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