Greasemonkey, Chrome and unsafeWindow.foo()
问题 I have the following anchor tag, which contains dynamically-generated arguments arg1,...,arg5 to the JavaScript function foo() , which runs on the web site-side. There are several of these anchor tags throughout the page in question, with unique id values and argN values: <a href="#" id="foo1234567890" onclick="javascript:foo(arg1,arg2,arg3,arg4,arg5);return false;" target="_self" title="foobarbaz"> blah </a> I would like to programmatically fire the foo() function by looping through all hits