giganut 109 Posted July 25, 2014 Report Share Posted July 25, 2014 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"> Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted July 25, 2014 Report Share Posted July 25, 2014 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) 2 Quote Link to post Share on other sites
giganut 109 Posted July 25, 2014 Author Report Share Posted July 25, 2014 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) 1 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted July 25, 2014 Report Share Posted July 25, 2014 very nice 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.