On 3/3/10 at 7:14 PM, sweetpproducti...@gmail.com (Russell Gray) wrote:
And I was thinking of taking the approach, of feeding a javascript function to
Safari:
function hide_elements(id)
{
document.getElementById(id).style.display="none";
}
where id would be fed to the script from the adblock
On Wed, 3 Mar 2010 11:14:01 +1100, Russell Gray
said:
>What I was wanting to know, is how do I apply the javascript to Safari?
Safari implements an AppleScript command "do JavaScript". So you can do this
by sending Safari an Apple event. Operators are waiting to take your call.
:) m.
--
matt ne
On Mar 2, 2010, at 4:14 PM, Russell Gray wrote:
> And I was thinking of taking the approach, of feeding a javascript function
> to Safari:
>
> function hide_elements(id)
> {
> document.getElementById(id).style.display="none";
> }
You can do the same thing by calling the DOM API from Objective-