firefox - imacros select text on page -


i'm need select text on page.

version build=8940826 recorder=fx tab t=1  event type=click selector="#post-3175>div>h2" button=0 event type=click selector="#imacros-highlight-div" button=0 event type=click selector="#imacros-highlight-div" button=0 

this not work,the text outlined.

the code below highlights element 'h2' outlined 'imacros'.

event type=click selector="#post-3175>div>h2" button=0  set s "var doc = window.document;" add s "var rng = doc.createrange();" add s "var elssel = doc.getelementsbytagname('h2');" add s "for (i = 0; < elssel.length; i++) {" add s "if (elssel[i].style.outline == '1px solid blue') {" add s "rng.selectnodecontents(elssel[i]);" add s "sel = window.getselection();" add s "sel.addrange(rng);" add s "break; }}"  url goto=javascript:{eval("{{s}}")} 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -