Blocking all SWF'S

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
nitin

Blocking all SWF'S

Post 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.
helping ghost

Post by helping ghost »

Code: Select all

*.swf|[url][/url]
helping ghost

Post by helping ghost »

Without this URL crap (damn forum software):

Code: Select all

*.swf|
Wladimir Palant

Post by Wladimir Palant »

Alternatively you can use:

Code: Select all

*$object
But that will block any object, including Java and Windows Media.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Re: Blocking all SWF'S

Post 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.
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post 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.
Matt Nordhoff
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Post 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.
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Post 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).
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Post 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.
Stupid Head

Post 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?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post 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
Stupid Head

Post 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.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Code: Select all

myspace.com$object
... should do it (use at you own risk).
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

@ Stupid Head

*Note*
The above won't work on some media there because it is being sent 3rd party. :?
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Post 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.
Locked