General :  K-Meleon Web Browser Forum
General discussion about K-Meleon. Questions about how to setup it, macro coding, all related to its usage and the project itself, including this website. 
Drag & Drop, Ad Blocker
Posted by: None
Date: January 20, 2005 03:32AM

This is a nice browser, very fast, but one thing bothers me about it. Does it support Drag & Drop? For example, I'd like to be able to select text, and then drag & drop it anywhere on the screen, which would trigger a Google search of the text I selected in another layer. Is this possible?

Also, is there any ad-blocker? I pretty much always visit the same sites, and some of them have annoying ads I'd like to block. I wish there was some sort of black list where I could add specific links or wildcards (keywords + *) for the browser to filter out. Or maybe I could just use my router for that, but I don't find that convenient as I see myself changing the list often. BTW, can the Windows HOSTS file use wildcards?

Options: ReplyQuote
Re: Drag & Drop, Ad Blocker
Posted by: efosb
Date: January 20, 2005 03:50AM

for ad blocking put this in ur usercontent.css


/* Block Ads v.2004-06-12 by Neil Jenkins
Portions of this ruleset are derived from the ad blocking css by Joe Francis at:
http://www.floppymoose.com/
Some code also contributed by Mike Hokenson:
http://www.gozer.org/mozilla/ad_blocking
*/

iframe[width="120"][height="600"], a img[width="120"][height="600"],
iframe[width="125"][height="600"], a img[width="125"][height="600"],
iframe[width="150"][height="100"], a img[width="150"][height="100"],
iframe[width="150"][height="600"], a img[width="150"][height="600"],
iframe[width="160"][height="600"], a img[width="160"][height="600"],
iframe[width="300"][height="250"], a img[width="300"][height="250"],
iframe[width="336"][height="280"], a img[width="336"][height="280"],
iframe[width="468"][height="60"], a img[width="468"][height="60"],
iframe[width="470"][height="62"], a img[width="470"][height="62"],
iframe[width="728"][height="90"], a img[width="728"][height="90"],
iframe[width="730"][height="92"], a img[width="730"][height="92"],
iframe[width="600"][height="120"], object[width="125"][height="300"],
iframe[width="180"][height="150"],
iframe[src*="/ad-"],
iframe[src*="/ad."],
iframe[src*="/ad/"],
iframe[src*="/ad_"],
iframe[src*="/adframe"],
iframe[src*="/ads"],
iframe[src*="/adv"],
iframe[src*="/adx"],
iframe[src*=".ad"],
iframe[src*="_Banner"],
iframe[src*="BET365"],
iframe[src*="/click"],
iframe[src*="?click"],
iframe[src*="googlesyndication"],
iframe[src*="promos"],
iframe[name="bsadframe"],
iframe[id="adFrame"],
iframe[id="splashFrame"],
img[src*="/ad-"],
img[src*="/ad."],
img[src*="/ad/"],
img[src*="/ad_"],
img[src*="/ads"],
img[src*="/adv"],
img[src*="/adx"],
img[src*=".ad"],
img[src*="_ad_"],
img[src*="/click"],
img[src*="?click"],
img[src*="Editorial_Promos"],
img[src*="/toms_skyscraper_"],
img[src$="images/logos/amazon_international.gif"],
img[src*="freshmeat.net/button.gif"],
img[src*="pic.geocities.com/images/"],
img[src*="i.imdb.com/Vpics/"],
img[src*="i.imdb.com/Photos/CMSIcons"],
img[src*="i.imdb.com/Icons/apix/"],
img[src*="i.imdb.com/Icons/kpix/"],
img[src*="i.imdb.com/apix/"],
img[src*="sportsbybrooks.com/farkbutton.gif"],
img[alt*="advert"],
img[alt*="Click Here To Visit Our Sponsor"],
img[alt*="Sponsored Links"],
img[name="fixedSpImg"],
a:link[href*="/ad-"] img,
a:link[href*="/ad."] img,
a:link[href*="/ad/"] img,
a:link[href*="/ad_"] img,
a:link[href*="/ads"] img,
a:link[href*="/adv"] img,
a:link[href*="/adx"] img,
a:link[href*=".ad"] img,
a:link[href*="/banner"] img,
a:link[href*="/click.cgi"] img,
a:link[href*="/clickcgi?"] img,
a:link[href*="/clickover"] img,
a:link[href*="/clickthr"] img,
a:link[href*="/click-"] img,
a:link[href*="=click"] img,
a:link[href*="?click"] img,
a:link[href*="/A="] img,
table table table[width="346"][height="280"],
table[class="metatable"],
table[id="RefAd"],
table[cellspacing="0"][width="160"][height="329"][bgcolor="#000000"],
table[cellpadding="5"][width="150"][style="border: 1px dashed rgb(221, 170, 170); background-color: rgb(236, 248, 255);"],
table[border="0"][height="600"][width="120"],
table[height="90"][cellspacing="0"][cellpadding="0"][width="728"][border="0"],
table[border="0"][cellpadding="3"][cellspacing="0"][height="40"][width="100%"],
table[border="0"][cellpadding="0"][cellspacing="4"][align="right"][width="20%"],
table[border="2"] td[valign="top"][bgcolor="#ffffff"] table[width="138"],
table[border="0"][cellpadding="1"][cellspacing="0"][width="626"][bgcolor="#6699cc"],
table[bordercolor="red"][height="225"][cellspacing="0"][cellpadding="0"][width="190"][bgcolor="white"][border="0"],
table[width="336"][border="0"][cellspacing="0"][cellpadding="0"][align="right"][style="margin-left: 10px; margin-bottom: 10px;"],
table[width="770"][border="0"] tr[valign="top"]
td[width="160"],
td[class="cnnNavAd"],
td[class="RHBarBody"],
td[class="sl-table"],
td[style="border-bottom: 1px solid rgb(204, 204, 204); padding: 7px 3px; background-color: rgb(255, 254, 249);"],
td span[class="aoltextad"],
form[name="frmLargeForm"],
form[action*="click_lx.cgi"],
form[action^="http://rd.yahoo.com/";],
form[action=""][name$="SoapCity"],
form[action=""][name^="728x90"],
form[action=""][name^="300x250"],
form[method="get"][action*="martindale"][name="MDH"],
embed[type="application/x-shockwave-flash"][src*="_Banner"],
embed[type="application/x-shockwave-flash"][src*="/ad"],
embed[type="application/x-shockwave-flash"][href*="/ad"],
embed[type="application/x-shockwave-flash"][src*=".ad"],
embed[type="application/x-shockwave-flash"][href*=".ad"],
embed[type="application/x-shockwave-flash"][src*="?click"],
embed[type="application/x-shockwave-flash"][href*="?click"],
embed[type="application/x-shockwave-flash"][src*="/click"],
embed[type="application/x-shockwave-flash"][href*="/click"],
embed[type="application/x-shockwave-flash"][href*="promos"],
embed[type="application/x-shockwave-flash"][href*="=click"],
embed[type="application/x-shockwave-flash"][href*="redirect"],
embed[type="application/x-shockwave-flash"][href*="/A="],
embed[type="application/x-shockwave-flash"][name*="advert"],
embed[type="application/x-shockwave-flash"][name*="banner"],
embed[type="application/x-shockwave-flash"][width="728"][height="90"],
embed[type="application/x-shockwave-flash"][width="468"][height="60"],
embed[type="application/x-shockwave-flash"][width="467"][height="63"],
div[id="adstrip"],
div[id*="advert"],
div[id="dropin"],
div[id="dwindow"],
div[id="dcv_EchangeLay"],
div[id="mntl"],
div[id*="popup"],
div[id="quack"],
div[id="splashLayer"],
div[id*="sponsor"],
div[id="yschsec"],
div[class="ovt"],
div#contextualLinks,
div[style="border: 1px solid rgb(221, 221, 221); padding: 5px; background-color: rgb(255, 255, 255);"],
object[id="widgeth"],
*[class="ad"],
*[class*="eSext"],
*[name*="klipad"],
*[style*="/ads/"],
*[id*="popover_"],
*[src*="120x80"],
*[src*="140x"],
*[src*="?ad"],
*[src*="-ad-"],
*[src*="/adimage"],
*[src*="/adimg"],
*[src*="advert"],
*[src*="=click"],
*[src*="banners."],
*[src*="banner_ads"],
*[src*="/images/dinkus/more-arrow-lo.gif"],
*[src*="/javaImages/ec/"],
*[src*="/offer"],
*[src*="/puffboxes/"],
*[src*="/sponsors/"],
*[src*="_sponsor_"],
*[src*="/us.yimg.com/a/ya"],
*[src*=".adbutler.de"],
*[src*=".nedstatbasic.net"],
*[src*=".tradedoubler.com"],
*[src*=".travelocity./Sponsor_gifs/"],
*[src*="a.consumer.net"],
*[src*="bannermania.nom.pl"],
*[src*="cash4banner.com"],
*[src*="crazypopups.com"],
*[src*="hit-now.com"],
*[src*="hitbox.com"],
*[src*="img.thebugs.ws"],
*[src*="kinghost.com/ban/"],
*[src*="klipmart"],
*[src*="popupad.net/ats/"],
*[src*="public"][src*="ad"],
*[src*="/publicidad/"],
*[src*="qkimg.net"],
*[src*="qksrv.net"],
*[src*="rcm-images.amazon.com"],
*[src*="rcm.amazon.com"],
*[src*="salon.com/Creatives"],
*[src*="sexcounter."],
*[src*="sideads/"],
*[src*="statse.webtrendslive.com"],
*[href*="logging.to"],
*[href*="/referral/"],
*[href*="tryaol"],
*[href*="websponsors"],
*[src*="banman.asp"],
*[href*="banman.asp"],
*[src*="bannerman"],
*[href*="bannerman"],
*[src*="?banner"],
*[href*="?banner"],
*[src*="/banner/"],
*[href*="/banner/"],
*[src*="/jump/"],
*[href*="/jump/"],
*[src*="adfarm"],
*[href*="adfarm"],
*[src*="advertising.com"],
*[href*="advertising.com"],
*[src*="ar.atwola.com"],
*[href*="ar.atwola.com"],
*[src*="atdmt.com"],
*[href*="atdmt.com"],
*[src*="bluestreak.com"],
*[href*="bluestreak.com"],
*[src*="clickxchange.com"],
*[href*="clickxchange.com"],
*[src*="doubleclick"],
*[href*="doubleclick"],
*[src*="falkag.net"],
*[href*="falkag.net"],
*[src*="fastclick.com"],
*[href*="fastclick.com"],
*[src*="mediaplex"],
*[href*="mediaplex"],
*[src*="netdirect.nl"],
*[href*="netdirect.nl"],
*[src*="spinbox."],
*[href*="spinbox."],
*[src*="tradedoubler.com"],
*[href*="tradedoubler.com"],
*[src*="transfer.go"],
*[href*="transfer.go"],
*[src*=".tribalfusion"],
*[href*=".tribalfusion"],
*[src*="valueclick"],
*[href*="valueclick"],
*[src*="http://216.92.211.171/";],
*[href*="http://216.92.211.171/";],
*[src*="http://216.92.21.16/";],
*[href*="http://216.92.21.16/";] {
display: none !important;
}

img[src*=".advance"],
img[src*="/click_"],
img[src*="/cnn/images/clickability/"],
img[src*="/logo2.m"],
img[src$="/banners/com000.jpg"],
a:link[href*=".add"] img,
a:link[href*="admin"] img,
a:link[href*="adobe"] img,
a:link[href*=".adp"] img,
a:link[href*="/advance"] img,
a:link[href*="click.mp3"] img,
a:link[href*="/imgres?imgurl="] img,
a:link[href*=":head"] img,
a:link[href*="http://nettracker.";] img,
embed[type="application/x-shockwave-flash"][src*="gallery"] {
display: inline !important;
}

Options: ReplyQuote
Re: Drag & Drop, Ad Blocker
Posted by: Carson
Date: January 20, 2005 05:32AM

Efosb, do you know the effect of all those asterisks * in the second half? And why there are also asterisks inside, as, for example:

*[class="ad"],
*[class*="eSext"],
*[name*="klipad"],
*[style*="/ads/"],
*[id*="popover_"],
*[src*="120x80"],

I asked this question a few days ago, but I've lost my link. I don't think it got a reply, though.

What I'm really wondering is whether those items are hashed # out by those asterisks, or whether we are supposed to leave them in.

Say, "asking after the asterisks" quickly five times.... :-)

Options: ReplyQuote
Re: Drag & Drop, Ad Blocker
Posted by: rmn
Date: January 20, 2005 10:34AM

IIRC,

*[src*="120x80"]

matches

<any_tag src="something_120x80_anything></any_tag>


BTW, CSS uses /* this */ for comments, not just *, and not #.
# matches the id attribute.

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: CaptnBlack
Date: January 20, 2005 12:35PM

I don't think you can actually "block" ads with CSS using the Gecko engine, it only "hides" ads.

For true ad blocking (no download of ads) you'll have to use an ad-blocking proxy like "Proxomitron"

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: efosb
Date: January 20, 2005 03:21PM

not really, do a google search for something like host file ad blocking. there are programs out there that u can use to add ads to ur hosts file and it will truely block them. to make it look prettyer u could use a local server that is serving a very small transparent image.

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: Phil Calvert
Date: January 20, 2005 04:54PM

Ad blocking should not be a standard feature in web browsers. Many web sites would not exist if not for the revenue they receive from advertising. If enough people were to use ad blocking, you can expect many of your favorite web sites to disappear. Of course, it's also possible that webmasters will implement strategies to defeat ad blockers. In fact, some have already done so.

I've noticed that advertisements that use Flash are often annoying. They are often CPU-intensive as well. Solution: Surf with Flash disabled. I have two DOS batch files that I can use to quickly disable and re-enable Flash.

Phil

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: CaptnBlack
Date: January 21, 2005 12:38AM

"not really, do a google search for something like host file ad blocking."

For the features the poster is looking for the hosts file solution wouldn't be adequate.
The hosts file can only block servers, the poster wants a solution that allows ad keywords to be used to block specific ads.

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: None
Date: January 21, 2005 05:53AM

What about drag&drop? Is it possible? What if I'm browsing a site, and see a thumbnail which is linked to the actual picture and would like to open it in a new layer. Do I have to right-click and select "open in new layer" each time?

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: jsnj
Date: January 21, 2005 06:19AM

Does your mouse have a middle scroll button? If so, middle-click the thumbnail. Otherwise I think Hao's version uses an altered gestures plugin to emulate some sort of drag & drop. You may wanna try that.

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: None
Date: January 21, 2005 07:05AM

Didn't know about middle scroll, thanks!

Options: ReplyQuote
Re: Drag &amp; Drop, Ad Blocker
Posted by: efosb
Date: January 21, 2005 04:49PM

Ad blocking should not be a standard feature in web browsers. Many web sites would not exist if not for the revenue they receive from advertising. If enough people were to use ad blocking, you can expect many of your favorite web sites to disappear.

well true but also i know i run a website and have a few ads on my site but no one ever clicks so whats really different between no ads and ads but not clicking? with my site ive have thousands of visitors but havnt made much at all... recently i took the ads off my site but left the ads on my forum.

when it comes to popups, a lot of people hate them including me, text ads arent as intrusive but doesnt seem to work well. banner ads are annoying and intrusive. flash ads are evil to me. i have a slow processor and a lot of people still have slow processors and using flash for ads isnt a good idea.

anywho, sorry for the rambling, lol.

i dont know what to say about the drag and drop ad blocking. i said what i said about the hosts file and css because thats what i know about ad blocking.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.