Jump to content
UBot Underground

open links in new window


Recommended Posts

some sites that my bot navigates to have links that open up into new windows but ubot does not seem to handle that well (ie. it doesnt do it), how do i get around this problem?

Link to post
Share on other sites

You should be able to use jQuery.

 

First, please view this video showing how to integrate jQuery with Ubot (prepared by @Fabier, not me):

http://www.ubotstudio.com/forum/index.php?/topic/12822-a-quick-introduction-to-javascript

 

Next, use this code in the $eval function.

$('a[target="_blank"]').removeAttr('target');

 

 

Regards,

Sean

Link to post
Share on other sites
  • 1 month later...
Guest B1u3AnG3L

10x grantwood for this ... it works in many cases ... I have a particular case, and I try to simply click on (with proxy but this is not important) "vote top 66" banner at http://www.erogenix.xxx/en/partners.php that open a new page through a js and I simply cannot find a way. If anyone have a solution ... ? 10x ...

 

This is the code I must use on the website :

 

<script src="http:// script.top66.ro/id-480913/6/code2.js" type="text/javascript"></script>
<a href="http:// www.top66.ro" title="Promovare gratuita"><img src="http:// images.top66.ro/vote/6.gif" usemap="#Top66Vote" border="0"</a>
Edited by B1u3AnG3L
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...