unurohack 1 Posted December 19, 2017 Report Share Posted December 19, 2017 Hello, I have 1 question.I want to navigate to x and after page is completed load, i want add a js code in the html page. is possible that? This is my code: set(#js, "<p id=\"test\"></p> <script> document.getElementById(\"test\").innerHTML = \"The full URL of this page is:<br>\" + window.location.href; </script>", "Global") clear cookies set user agent("Chrome") navigate("fb.com", "Wait") wait for browser event("Everything Loaded", "") load html($replace($document text, "</script>", "</script>{#js}")) I want add in page this code, but not using load html...Thank you so much! Quote Link to post Share on other sites
Marani 80 Posted December 19, 2017 Report Share Posted December 19, 2017 Use "Run Javascript" commandhttp://wiki.ubotstudio.com/wiki/Run_Javascript After the page is loaded: window.scrollBy(0, 100); // Scroll 100px downwards Source: https://www.w3schools.com/jsref/met_win_scrollby.asp Quote Link to post Share on other sites
unurohack 1 Posted December 19, 2017 Author Report Share Posted December 19, 2017 Yes thank you. i know that.But, i have this js code: "<p id=\"test\"></p><script>document.getElementById(\"test\").innerHTML =\"The full URL of this page is:<br>\" + window.location.href;</script>", "Global" I want navigate to any website and add in website. source code this preview js code Quote Link to post Share on other sites
Jeredoc 4 Posted December 28, 2017 Report Share Posted December 28, 2017 this is to set referrer ? 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.