Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Selective blocking of "flash videos"

2 views
Skip to first unread message

Felix Karpfen

unread,
Nov 22, 2009, 8:02:32 PM11/22/09
to
Firefox offers an add-on that blocks flash files (# Macromedia Flash
# Macromedia Shockwave # Macromedia Authorware) by default *and* allows
selective unblocking with the click of the mouse. See:

http://flashblock.mozdev.org/

Does (Linux) Opera offer a similar feature/widget?

Or should it be added to a "wish list"?

Felix Karpfen
--
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)

David W. Hodgins

unread,
Nov 22, 2009, 11:27:27 PM11/22/09
to
On Sun, 22 Nov 2009 20:02:32 -0500, Felix Karpfen <fel...@webone.com.au> wrote:

> Firefox offers an add-on that blocks flash files (# Macromedia Flash

> Does (Linux) Opera offer a similar feature/widget?

Yes. Two that I know of. Either should work. I'm using the
version with the stylesheet.

http://my.opera.com/Lex1/blog/flashblock-for-opera-9
http://operawiki.info/FlashBlock

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)

Felix Karpfen

unread,
Nov 23, 2009, 3:06:53 AM11/23/09
to
David W. Hodgins wrote:
> On Sun, 22 Nov 2009 20:02:32 -0500, Felix Karpfen <fel...@webone.com.au>
> wrote:
>
>> Firefox offers an add-on that blocks flash files (# Macromedia Flash
>> Does (Linux) Opera offer a similar feature/widget?
>
> Yes. Two that I know of. Either should work. I'm using the
> version with the stylesheet.
>
> http://my.opera.com/Lex1/blog/flashblock-for-opera-9
> http://operawiki.info/FlashBlock
>
> Regards, Dave Hodgins
>

Thank you.

"http://operawiki.info/FlashBlock" looks very similar to the Firefox
add-on. But, alas, its documentation is in Russian.

And I have no idea what to do with the downloaded script
(flashblocker.js) that is designed for using with Opera 10. All I have
been able to find out on my own is that it is an "ASCII C++ program
text, with very long lines"!

Christian Hoeller

unread,
Nov 23, 2009, 11:13:38 AM11/23/09
to
Felix Karpfen wrote:
> David W. Hodgins wrote:

>> http://my.opera.com/Lex1/blog/flashblock-for-opera-9
>> http://operawiki.info/FlashBlock

> "http://operawiki.info/FlashBlock" looks very similar to the Firefox
> add-on. But, alas, its documentation is in Russian.
>
> And I have no idea what to do with the downloaded script
> (flashblocker.js) that is designed for using with Opera 10.

1. Create a directory for storing User JavaScript files, for instance
~/.opera/userjs.
2. Go to Tools -> Preferences -> Advanced -> Content -> JavaScript
Options. Add the location of your newly created script directory
to "My JavaScript files".
3. cp flashblocker.js ~/.opera/userjs/


Ciao,
Christian

--
Christian Hoeller -- PGP Key available at http://www.hoeller.net/key
Linux Hardware Compatibility & Drivers http://www.linux-drivers.org
Linux Distributions, Howtos, Downloads,... http://www.linuxbasis.org

Felix Karpfen

unread,
Nov 23, 2009, 4:45:21 PM11/23/09
to
Christian Hoeller wrote:
> Felix Karpfen wrote:

>>
>> And I have no idea what to do with the downloaded script
>> (flashblocker.js) that is designed for using with Opera 10.
>
> 1. Create a directory for storing User JavaScript files, for instance
> ~/.opera/userjs.
> 2. Go to Tools -> Preferences -> Advanced -> Content -> JavaScript
> Options. Add the location of your newly created script directory
> to "My JavaScript files".
> 3. cp flashblocker.js ~/.opera/userjs/
>

Thank you.

It worked. Flash-clips are now blocked by default, but can be activated
by the left-click of a mouse.

Felix

Naruki Bigglesworth

unread,
Nov 23, 2009, 7:22:18 PM11/23/09
to

That's not C++, although you got the ASCII part right. It's a scripted language called
JavaScript. You may have heard of it. :-)

Christian Hoeller

unread,
Nov 24, 2009, 3:50:44 AM11/24/09
to
Naruki Bigglesworth wrote:
> On Mon, 23 Nov 2009 19:06:53 +1100, Felix Karpfen wrote:

>> And I have no idea what to do with the downloaded script
>> (flashblocker.js) that is designed for using with Opera 10. All I have
>> been able to find out on my own is that it is an "ASCII C++ program
>> text, with very long lines"!

> That's not C++, although you got the ASCII part right. It's a scripted

> language called JavaScript. You may have heard of it. :-)

Yes, this is right. I was wondering too about Felix' statement. But
then I groked ... the confusion was caused by /file/:

#v+
zy3@penguin:~$ file flashblocker.js
flashblocker.js: ASCII C++ program text, with very long lines
zy3@penguin:~$
#v-

;-)

Felix Karpfen

unread,
Nov 24, 2009, 4:25:10 AM11/24/09
to
Naruki Bigglesworth wrote:
> On Mon, 23 Nov 2009 19:06:53 +1100, Felix Karpfen wrote:

>> All I have been able to find out on my own is that it is an "ASCII C++ program
>> text, with very long lines"!

> That's not C++, although you got the ASCII part right. It's a scripted language called


> JavaScript. You may have heard of it. :-)

Just goes to show - you cannot believe a word that the "file" command
tells you! And I thought that the command was infallible.

Felix

Jorgen Grahn

unread,
Nov 24, 2009, 5:12:51 AM11/24/09
to
On Tue, 2009-11-24, Felix Karpfen wrote:
> Naruki Bigglesworth wrote:
>> On Mon, 23 Nov 2009 19:06:53 +1100, Felix Karpfen wrote:
>
>>> All I have been able to find out on my own is that it is an
>>> "ASCII C++ program text, with very long lines"!
>
>> That's not C++, although you got the ASCII part right. It's a scripted
>> language called JavaScript. You may have heard of it. :-)
>
> Just goes to show - you cannot believe a word that the "file" command
> tells you!

Yes you can. You can believe the important parts: ASCII, text and
"with very long lines".

> And I thought that the command was infallible.

It's common that detection of programming language fails. In extreme
cases, it would need to invoke a compiler to tell the difference
between C and C++ -- and even parsing to the end of the file to look
for non-C constructs would be unacceptable for performance reasons.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Felix Karpfen

unread,
Nov 24, 2009, 4:53:15 PM11/24/09
to
Jorgen Grahn wrote:
> On Tue, 2009-11-24, Felix Karpfen wrote:

>> Just goes to show - you cannot believe a word that the "file" command
>> tells you!
>
> Yes you can. You can believe the important parts: ASCII, text and
> "with very long lines".
>

Those were the bits that:

- I understood; and
- could easily be discovered by attempting to read the file.

But I did not know what to do with the remaining comment and was not
smart enough to grasp what the script seeks to do. I never run
executable scripts without checking the relevant documentation.

But, all is well that ends well.

Jorgen Grahn

unread,
Nov 25, 2009, 9:30:10 AM11/25/09
to
On Tue, 2009-11-24, Felix Karpfen wrote:
> Jorgen Grahn wrote:
>> On Tue, 2009-11-24, Felix Karpfen wrote:
>
>>> Just goes to show - you cannot believe a word that the "file" command
>>> tells you!
>>
>> Yes you can. You can believe the important parts: ASCII, text and
>> "with very long lines".
>>
>
> Those were the bits that:
>
> - I understood; and
> - could easily be discovered by attempting to read the file.
>
> But I did not know what to do with the remaining comment and was not
> smart enough to grasp what the script seeks to do. I never run
> executable scripts without checking the relevant documentation.

That's wise -- file(1) doesn't have a reliable malware detector
either ;-)

But seriously, file(1) is mostly useful to tell if something is plain
text and if not, give a fairly reliable hint about which binary format
it is (PNG image, PDF document ...). If you're saying they shouldn't
even *try* to guess at C/C++/Javascript source code and such ... yes,
I would agree.

Solaris file(1) doesn't try -- it just says "ascii text".

Felix Karpfen

unread,
Nov 25, 2009, 2:58:21 PM11/25/09
to
Jorgen Grahn wrote:

>>> On Tue, 2009-11-24, Felix Karpfen wrote:

>>>> Just goes to show - you cannot believe a word that the "file" command

> But seriously, file(1) is mostly useful to tell if something is plain


> text and if not, give a fairly reliable hint about which binary format
> it is (PNG image, PDF document ...).


Very true.

My initial response was hasty. The "file" command has been a great help
in the past and I have come to accept uncritically the information that
it provides.

Learning the limitations of the command is a bonus.

A thanks to you and to the other respondents to my query for taking the
time to improve my <Linux|Opera> knowledge.

FelixK

unread,
Dec 5, 2009, 12:10:33 AM12/5/09
to
On Nov 24, 3:13 am, Christian Hoeller <spam-nirv...@news.linux-
drivers.org> wrote:

> Felix Karpfen wrote:
>
> > And I have no idea what to do with the downloaded script
> > (flashblocker.js) that is designed for using with Opera 10.
>
> 1. Create a directory for storing User JavaScript files, for instance
>    ~/.opera/userjs.
> 2. Go to Tools -> Preferences -> Advanced -> Content -> JavaScript
>    Options. Add the location of your newly created script directory
>    to "My JavaScript files".
> 3. cp flashblocker.js ~/.opera/userjs/
>

After my success with "flashblocker" I tried the same routine with the
same routine with "adblock'.

And fell flat on my face.

Downloading the add-on and copying the "adblock.js" to the correct
location was just a repeat of the previous successful routines.

But the "directions for use" do not work. The directions say:

use Alt+Shift+B for blocking.

But on my setup (Version 10.10, Build 4742), "Alt+Shift+B" is a
keyboard shortcut for the Bookmarks deopdown menu.

And the next step is ...?

FelixK

0 new messages