Re: [dev] [surf] hide_applets user.js can also hide flash

From: Jessta <jessta_AT_gmail.com>
Date: Fri, 25 Sep 2009 17:14:02 +1000

I haven't been able to get this to work on surf-0.1.2, the script
doesn't seem to run and I can't see in the surf source anywhere it is
specified.
Is there a patch I'm missing?

On 25/09/2009, Szabolcs Nagy <nszabolcs_AT_gmail.com> wrote:
> On 9/25/09, hailukah <shaw.josh_AT_gmail.com> wrote:
>> Hi all,
>>
>> The user.js at http://surf.suckless.org/files/hide_applets can also
>> hide flash. Add "embed" to the elementNames array.
>>
>> josh
>>
>>
>
> i'd probably use
>
> (function () {
> var elementNames = ["object","applet","embed"];
> var i, j, elements, button;
> ...
> }())
>
> to not litter global namespace and to indicate that js does not have
> block scope variables
>
>

-- 
=====================
http://jessta.id.au
Received on Fri Sep 25 2009 - 07:14:02 UTC

This archive was generated by hypermail 2.2.0 : Fri Sep 25 2009 - 07:24:01 UTC