Hey everyone, I need some help with AHK. I am making a gpt bot and I wanted to run a greasemonkey script on a webpage through AHK. I know how to manipulate webpages through the javascript DOM, but I'm pretty sure that only works for single things. Is there a way I can just call a function or something to run this greasemonkey script on a webpage through an AHK embedded COM browser?
Here is the script:
Code:inputs = document.getElementsByTagName("input"); var checkedyes = 0; var radios=0; var firstradio=0; var foundradio=false; var i=0; for(i=0;i<inputs.length;i++) { if(inputs[i].type=="radio") { if(!foundradio) { firstradio = i; foundradio = true; } radios++; if(inputs[i].value.toLowerCase()=="no") { inputs[i].checked = true; inputs[i].click(); document.body.focus(); } else { inputs[i].checked=true; } } } if (radios>2) { inputs[firstradio+2].checked=true; } next = document.getElementById("nextOffer"); if (next == null) { next = document.getElementById("pass"); } if (next == null) { next = document.getElementById("bt_cancel"); } if(next == null) { for(i=0;i<inputs.length;i++) { if((inputs[i].type=="submit") && (inputs[i].value.toLowerCase()=="skip")) { next = inputs[i]; break; } } } if(next==null) { for(i=0;i<inputs.length;i++) { if((inputs[i].value.toLowerCase()=="submit") || (inputs[i].name.toLowerCase()=="submit")) { next = inputs[i]; break; } } } if(next == null) { next = document.getElementById("submitbutton"); } next.focus(); next.click();
Would I be able to just type "javascript:function and then that whole thing in the address bar, or would that not work?


LinkBack URL
About LinkBacks
