MozillaZine

Nuke Image

Talk about add-ons and extension development.
Ted Mielczarek
 
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA

Post Posted December 4th, 2002, 8:43 am

http://ted.mielczarek.org/code/mozilla/nukeimage.xpi

Right click on an image, and have an option to "Remove this image". Sets the image's "display" style to "none", making it effectively disappear. Will not remove the whitespace if the image is inside an iframe or div with a fixed size.

Useful for hiding those epilepsy-inducing banner ads, or huge ads that make articles hard to read, or page-widening images, as in the themes forum.

David, please add this to your extensions page.

djst
Moderator

User avatar
 
Posts: 2826
Joined: November 5th, 2002, 1:34 am
Location: Sweden

Post Posted December 4th, 2002, 9:09 am

Ted Mielczarek wrote:http://ted.mielczarek.org/code/mozilla/nukeimage.xpi

Right click on an image, and have an option to "Remove this image". Sets the image's "display" style to "none", making it effectively disappear. Will not remove the whitespace if the image is inside an iframe or div with a fixed size.

Useful for hiding those epilepsy-inducing banner ads, or huge ads that make articles hard to read, or page-widening images, as in the themes forum.

David, please add this to your extensions page.


Please post the file size too in the future. (4 kB in this case.)
Extension added.

nobody2234
 
Posts: 187
Joined: November 28th, 2002, 7:53 pm

Post Posted December 4th, 2002, 6:55 pm

Cool. I'll try it when I get home from work.

Does it hide it just for that session, or does it hide that ad permanently?

I have this plugin for my IE (which I never use, but listen) in which I can right click on an image, and click "add to block list". A small window comes up, with the path to that image displayed, and most of the path selected. When you click add, no more images from the path/domain will be loaded. This works very well for much advertisement, as most the time the ads themselves arent loaded on the same server, let alone the same directory, as the sites images. In the rare cases that they are, you just block the whole path to just that image. It works pretty awesome, it is called Ad-Shield.

[edit] I forgot to mention that with Ad-Shield, not only is the image not shown anymore, it is not even downloaded. [/edit]

jedbro

User avatar
 
Posts: 1899
Joined: November 10th, 2002, 12:35 pm
Location: Mexico / Boulder Co.

Post Posted December 4th, 2002, 9:46 pm

Does this work with Mozilla too?

cheers

ehume

User avatar
 
Posts: 6743
Joined: November 17th, 2002, 12:33 pm
Location: Princeton, NJ, USA

Post Posted December 4th, 2002, 9:57 pm

Just one thing: in case I accidentally slip and nail the wrong image, or if I spot something last minute as my finger is falling on the kill button, it would be nice to have a bring-it-back option.

Ed

Ted Mielczarek
 
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA

Post Posted December 4th, 2002, 10:18 pm

badrad: Try "Block images from this server". My nuke image is only temporary.

jedbro: I have no idea. Care to try it out? :)

ehume: Try "reload" :)

jedbro

User avatar
 
Posts: 1899
Joined: November 10th, 2002, 12:35 pm
Location: Mexico / Boulder Co.

Post Posted December 4th, 2002, 10:28 pm

Just did! Seems to work fine! Thanks...
Now have it installed on both my Phx and Moz;

Also; Plain text links (http://ted.mielczarek.org/code/mozilla/textlink.xpi)
works great under Mozilla too.

Secondly;
did you ever read my post about your text Link here; http://www.mozillazine.org/forums/viewt ... =2828#2828

there are some added features that would be great to have added.
/// Basically <code> htp://</code> would be converted to <code>http://</code>, as would <code>hxxp://</code>, and dido for other protocals (ftp, etc.)

Also incomplete URL's mysite.com/jed/ would be converted to http://mysite.com/jed/
/////

Cheers
--Jed
Last edited by jedbro on December 5th, 2002, 8:00 pm, edited 1 time in total.

nobody2234
 
Posts: 187
Joined: November 28th, 2002, 7:53 pm

Post Posted December 4th, 2002, 10:46 pm

Ted Mielczarek wrote:badrad: Try "Block images from this server". My nuke image is only temporary.


That works sometimes, but it blocks the images from the whole server, which is bad. It works if, for example, the site is using an external ad system. But lets say, I have my site images in:

www.mysite.com/images

But I keep my ads in:

www.mysite.com/images/ads/

I want to block the one directory only, but not the whole server.

I just think the Ad-Shield way is an effective way of doing it. Your plugin is nice, and maybe thats all you were after, but I was just discussing the possiblity of making those blocks last for the long term, when you revist the site, etc.

thenightfly42

User avatar
 
Posts: 983
Joined: November 5th, 2002, 8:03 am

Post Posted December 5th, 2002, 10:48 am

Thanks for this extension, I'm having WAY too much fun with it. I'm killing images everywhere just to see the text reflow.

macclearich
 
Posts: 1
Joined: December 5th, 2002, 4:37 pm
Location: Santa Clara, CA

Post Posted December 5th, 2002, 4:40 pm

Great, great extension. But I have one other thing I'd like to be able to do:
nuke background images!

Is there any possibility that you'd be able to add this?
mac

jedbro

User avatar
 
Posts: 1899
Joined: November 10th, 2002, 12:35 pm
Location: Mexico / Boulder Co.

Post Posted December 5th, 2002, 7:59 pm

Badrad;

try out AdBlock ( http://adblock.mozdev.org ).
you can specify directories with wildcards like *mysite.com/images/ads*.

Hope this helps you.

cheers

nobody2234
 
Posts: 187
Joined: November 28th, 2002, 7:53 pm

Post Posted December 5th, 2002, 8:12 pm

jedbro wrote:Badrad;
try out AdBlock ( http://adblock.mozdev.org ).


I did. First off, there is no phoenix install, unless you know some trick I dont.

I emailed the author of AdBlock a bunch of suggestions. Its the first version, so I am sure he knew about some already, but I was just letting him know :) It does have a lot of potential.

Ted Mielczarek
 
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA

Post Posted December 5th, 2002, 8:46 pm

macclearich wrote:Great, great extension. But I have one other thing I'd like to be able to do:
nuke background images!

Is there any possibility that you'd be able to add this?


Seems possible, I'll look into it. I also noticed that the "Remove this Image" menuitem shows up on all context menus. Odd. I should fix that too.

nobody2234
 
Posts: 187
Joined: November 28th, 2002, 7:53 pm

Post Posted December 5th, 2002, 9:02 pm

Any thoughts on making the removal permanent?

Ted Mielczarek
 
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA

Post Posted December 5th, 2002, 9:04 pm

badrad wrote:Any thoughts on making the removal permanent?


Sorry, this isn't my intention for this extension. My main intent was to be able to read posts in the themes forum without having to scroll horizontally. :) I'd recommend the built in image blocking, or Ad Block.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 3 guests