Jump to content
UBot Underground

Block iFrame From Loading


Recommended Posts

I have a bot that is getting bogged way down from video ads and regular ads inside  a iFrame and was wondering if it's possible to block the iFrame from loading on the site with JavaScript or something else inside ubot. Here is the iframe I need to stop from loading. Thanks for any help you can provide.

 

<iframe width="300" height="250" frameborder="0" src="javascript:window.parent["fif_1406303472539_752870"]" scrolling="no">

Link to post
Share on other sites

load html("some text above
<BR><BR>
<iframe width=\"300\" height=\"250\" frameborder=\"0\" src=\"javascript:window.parent[\"fif_1406303472539_752870\"]\" scrolling=\"no\">iframe</iframe>
<BR><BR>
some text below")
change attribute(<tagname="iframe">"src""REMOVED")
change attribute(<tagname="iframe">"width", 0)
change attribute(<tagname="iframe">"height", 0)

  • Like 2
Link to post
Share on other sites

Thank you Tj, that works perfect :) below is what I used to make it work perfectly. Place the code below after every page load.

navigate("http://exsamplesite.com/", "Don\'t Wait")
wait for browser event("DOM Ready", 10)
change attribute(<tagname="iframe">, "src", "REMOVED")
change attribute(<tagname="iframe">, "width", 0)
change attribute(<tagname="iframe">, "height", 0)
  • Like 1
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...