Jump to content
UBot Underground

Is there a way to prevent _blank?


Recommended Posts

I'm looking for a solution that prevents clicks to open in a new window.

Currently a site (and not only this one but a lot more) use _blank for every page, thus opens in a new window which can't work with the bot.

 

Is there a way to get around this?

Can we manipulate the page to open in the same window?

Link to post
Share on other sites

I'm looking for a solution that prevents clicks to open in a new window.

Currently a site (and not only this one but a lot more) use _blank for every page, thus opens in a new window which can't work with the bot.

 

Is there a way to get around this?

Can we manipulate the page to open in the same window?

 

Scrape the link and then nav to it.

 

It may even be possible to find and replace all of the target="_blank" attributes.

  • Like 1
Link to post
Share on other sites

Scrape the link and then nav to it.

 

It may even be possible to find and replace all of the target="_blank" attributes.

 

Thanks buddy.

 

How am i do it?

With $replace?

Link to post
Share on other sites

Nevermind i already scraped the links and use that. :)

I was not able to find a _blank tag in the site source :blink: but it does open all links in a new window.

Maybe a php trick?

Link to post
Share on other sites

Nevermind i already scraped the links and use that. :)

I was not able to find a _blank tag in the site source :blink: but it does open all links in a new window.

Maybe a php trick?

 

Great news. Could be a javascript rather than a php trick though. I started to look at a replace solution - but it was looking fairly painful.

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...