Page 1 of 2

Blocking all SWF'S

Posted: Tue Aug 22, 2006 4:01 pm
by nitin
I want to block all .swf from any site.
I used Flash block but it does not suit my needs.

Is there any regexp using which i can block all swf files from loading form any of the site using Adblock plus...

Thanks for any help.

Posted: Tue Aug 22, 2006 4:06 pm
by helping ghost

Code: Select all

*.swf|[url][/url]

Posted: Tue Aug 22, 2006 4:07 pm
by helping ghost
Without this URL crap (damn forum software):

Code: Select all

*.swf|

Posted: Wed Aug 23, 2006 2:03 am
by Wladimir Palant
Alternatively you can use:

Code: Select all

*$object
But that will block any object, including Java and Windows Media.

Re: Blocking all SWF'S

Posted: Wed Aug 23, 2006 3:37 am
by rick752
nitin wrote:I want to block all .swf from any site.
I used Flash block but it does not suit my needs.

Is there any regexp using which i can block all swf files from loading form any of the site using Adblock plus...

Thanks for any help.
It is easy to block ALL swf (as 'helping ghost' has shown you). But you may find that blocking ALL *.swf files may not work out the way you would like. Many videos, games, and some navigation rely on swf files to work.

This could have many undesired effects.

Posted: Thu Aug 24, 2006 1:27 am
by Peng
You could also just get rid of the Flash plugin. I keep the "plugins" directory named ".plugins", and take the period out and start a new Firefox instance when I really need Flash (YouTube, Google Video... :P ), then rename it back when I'm done.

Posted: Thu Aug 24, 2006 2:15 am
by IceDogg
To bad there isn't an extension (or easy way) to do this.

Don't say flashblock or Noscript either.. if you direct link to flash neither will stop them.

Posted: Thu Aug 24, 2006 2:22 am
by chewey
IceDogg wrote:To bad there isn't an extension (or easy way) to do this.

Don't say flashblock or Noscript either.. if you direct link to flash neither will stop them.
PrefBar brings a button with "deactivate flash"
functionality. It does so by renaming the plugin file,
iirc, so it should work with direct links too (I don't
use it).

Posted: Thu Aug 24, 2006 3:25 am
by IceDogg
Thanks chewey, I'll have to look at that, but what I do now is use adblock plus with the said filter to block it. But I will check out that extension. Sounds good.

Posted: Sat Aug 26, 2006 4:56 am
by Stupid Head
Wladimir Palant wrote:Alternatively you can use:

Code: Select all

*$object
But that will block any object, including Java and Windows Media.
Whoa. How does $object work?

Posted: Sat Aug 26, 2006 5:28 am
by rick752
Stupid Head wrote:
Wladimir Palant wrote:Alternatively you can use:

Code: Select all

*$object
But that will block any object, including Java and Windows Media.
Whoa. How does $object work?
I think that it will block anything that uses an <object> tag (which would usually include swf/java/WM).

Using

Code: Select all

*$img
will block all things that has an <img> tag (most images)

Using

Code: Select all

avatars$img
would block all images in <img> tags served from an address containing the word 'avatars' (as they are served in this forum from the /avatars/ directory)

Using

Code: Select all

14296$img
would only block MY avatar because only mine has those numbers in the address

Try and see
:)

I stand to be corrected.

*EDIT*
.. and these are BLOCKING strings .. not element hiding strings

Posted: Sat Aug 26, 2006 7:58 pm
by Stupid Head
That's awesome. That means I can block just scripts or just images or just objects from some domains. Finally, a way to block all those annoying videos and music from MySpace.

Posted: Sat Aug 26, 2006 8:09 pm
by rick752

Code: Select all

myspace.com$object
... should do it (use at you own risk).

Posted: Sat Aug 26, 2006 8:24 pm
by rick752
@ Stupid Head

*Note*
The above won't work on some media there because it is being sent 3rd party. :?

Posted: Sun Aug 27, 2006 4:04 am
by IceDogg
Wasn't there one for blocking 3rd party elements?? I've looked but couldn't find it anywhere. Or better yet where is the list of these kinds of element blocking special commands? Like $object. Thanks

Edit:
Never mind I found the answer. It was never put in, do to problems, only talked about. Sorry I had looked.