Bookmarklet for Twoo.com

 For the Twoo users who don’t have the diamond feature, you might have noticed that the “View Profile” button doesn’t work so there is no way you can see her/his profile.
Or can you?😛

What they did is pretty straight forward, they replaced the link with a “Buy Diamond Now!” page link, the id is added as a parameter but encoded so I’m stuck there.

However the “Report Abuse” button contains the id(s) of the user(s).😀

So I wrote a bookmarklet that opens each profile in a new window.

javascript:var a="";
for(x in document.links){
	if(document.links[x].rel=="dialog"){
		a+=document.links[x].href;
	}
}
var p=new RegExp("ID..=[0-9]{1,}","g");
p.compile(p);
var b=a.match(p);
for(var i=0;i<b.length;i++){
	void(window.open("/"+b[i].slice(5)));
}

Just copy the code, add a new bookmark with the javascript code as URL.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s