Best method to add CSS code to Custom Filters.

Post any interesting custom filters here.

Moderators: Murray, Jeff

Best method to add CSS code to Custom Filters.

Postby ZooMan » Thu May 31, 2012 6:46 pm

I need to add following to CSS custom filter section, The only way I see to add this is line by line. Is there any way to past in all at once?

Thanks



@-moz-document
/* facebook */ domain("facebook.com"),
domain("connect.facebook.com"),
/* delicious */ domain("delicious.com"),
/* google */ domain("google.com"),
domain("google.de"),
url-prefix("http://google."),
url-prefix("https://google."),
url-prefix("http://www.google."),
url-prefix("https://www.google."),
/* twitter */ domain("twitter.com"),
/*stumble upon */ domain("stumbleupon.com"),
/* add this */ domain("addthis.com"),
/* linked in */ domain("linkedin.com"),
/* wer kennt wen */ domain("werkenntwen.de"),
domain("static.werkenntwen.de")
{body{ } }

/* facebook */

iframe[src^="http://facebook.com"],
iframe[src^="https://facebook.com"],
iframe[src^="http://www.facebook.com"],
iframe[src^="https://www.facebook.com"],
a[href^="http://www.facebook.com/sharer.php"],
iframe[src^=" http://facebook.com"],
iframe[src^=" https://facebook.com"],
iframe[src^=" http://www.facebook.com"],
iframe[src^=" https://www.facebook.com"],
a[href^=" http://www.facebook.com/sharer.php"],
a[href^="http://www.facebook.com/sharer"],
a[href^="http://facebook.com/sharer"],
a[href^=" http://www.facebook.com/sharer"],
a[href^=" http://facebook.com/sharer"],
iframe[src^="http://www.connect.facebook.com"],
iframe[src^="http://connect.facebook.com"],
iframe[src^="https://www.connect.facebook.com"],
iframe[src^="https://connect.facebook.com"],
iframe[src^=" http://www.connect.facebook.com"],
iframe[src^=" http://connect.facebook.com"],
iframe[src^=" https://www.connect.facebook.com"],
iframe[src^=" https://connect.facebook.com"]
{display: none !important;}

/* google plus */

iframe[src^="http://plusone.google.com"],
iframe[src^="http://www.plusone.google.com"],
iframe[src^="https://plusone.google.com"],
iframe[src^="https://www.plusone.google.com"],
iframe[id^="gfc_iframe_"],
div[id^="gfc_iframe_"]
{display: none !important;}

/* twitter */

iframe[src^="http://platform.twitter.com"],
iframe[src^="https://platform.twitter.com"],
iframe[src^="http://www.platform.twitter.com"],
iframe[src^="https://www.platform.twitter.com"]
{display: none !important;}

/* stumble upon */

iframe[src^="http://www.stumbleupon.com"],
iframe[src^="https://www.stumbleupon.com"],
iframe[src^="http://stumbleupon.com"],
iframe[src^="https://www.stumbleupon.com"]
{display: none !important;}

/* MISC */

.social-tabs, #social-wrapper, #social
{display:none!important;}

/* ADD THIS */

a[onmouseover^="return(addthis_open("],
a[onmouseout^="addthis_close()"]
{display: none !important;}

/* LINKED IN */

span.IN-widget
{display: none !important;}

/* WER KENNT WEN */

img[src^="http://static.werkenntwen.de/images/empfehlen_buttons/"]
{display: none !important;}
Ken
ZooMan
New User
 
Posts: 5
Joined: Thu Sep 24, 2009 7:43 pm

Re: Best method to add CSS code to Custom Filters.

Postby Jeff » Thu May 31, 2012 7:45 pm

place it on one line.

A filter can be 1023 characters long.

iframe[src^="http://facebook.com"],iframe[src^="https://facebook.com"],iframe[src^="http://www.facebook.com"],iframe[src^="https://www.facebook.com"],a[href^="http://www.facebook.com/sharer.php"],iframe[src^=" http://facebook.com"],iframe[src^=" https://facebook.com"],iframe[src^=" http://www.facebook.com"],iframe[src^=" https://www.facebook.com"],a[href^=" http://www.facebook.com/sharer.php"],a[href^="http://www.facebook.com/sharer"],a[href^="http://facebook.com/sharer"],a[href^=" http://www.facebook.com/sharer"],a[href^=" http://facebook.com/sharer"],iframe[src^="http://www.connect.facebook.com"],iframe[src^="http://connect.facebook.com"],iframe[src^="https://www.connect.facebook.com"],iframe[src^="https://connect.facebook.com"],iframe[src^=" http://www.connect.facebook.com"],iframe[src^=" http://connect.facebook.com"],iframe[src^=" https://www.connect.facebook.com"],iframe[src^=" https://connect.facebook.com"]{display:none!important;}

etc..
That's not an ad blocker... THIS is an ad blocker.
---
No bovines were harmed in the making of this program.
---
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Jeff
Ad Muncher Developer
 
Posts: 5466
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States

Re: Best method to add CSS code to Custom Filters.

Postby ZooMan » Thu May 31, 2012 10:31 pm

Thank you for your time. I will add this in a few filters.
What about this"? /* facebook */ Is this part of the filter or just house keeping?

And this?
@-moz-document
/* facebook */ domain("facebook.com"),
domain("connect.facebook.com"),
/* delicious */ domain("delicious.com"),
/* google */ domain("google.com"),
domain("google.de"),
url-prefix("http://google."),
url-prefix("https://google."),
url-prefix("http://www.google."),
url-prefix("https://www.google."),
/* twitter */ domain("twitter.com"),
/*stumble upon */ domain("stumbleupon.com"),
/* add this */ domain("addthis.com"),
/* linked in */ domain("linkedin.com"),
/* wer kennt wen */ domain("werkenntwen.de"),
domain("static.werkenntwen.de")
{body{ } }

Thanks again Jeff


Jeff wrote:place it on one line.

A filter can be 1023 characters long.

iframe[src^="http://facebook.com"],iframe[src^="https://facebook.com"],iframe[src^="http://www.facebook.com"],iframe[src^="https://www.facebook.com"],a[href^="http://www.facebook.com/sharer.php"],iframe[src^=" http://facebook.com"],iframe[src^=" https://facebook.com"],iframe[src^=" http://www.facebook.com"],iframe[src^=" https://www.facebook.com"],a[href^=" http://www.facebook.com/sharer.php"],a[href^="http://www.facebook.com/sharer"],a[href^="http://facebook.com/sharer"],a[href^=" http://www.facebook.com/sharer"],a[href^=" http://facebook.com/sharer"],iframe[src^="http://www.connect.facebook.com"],iframe[src^="http://connect.facebook.com"],iframe[src^="https://www.connect.facebook.com"],iframe[src^="https://connect.facebook.com"],iframe[src^=" http://www.connect.facebook.com"],iframe[src^=" http://connect.facebook.com"],iframe[src^=" https://www.connect.facebook.com"],iframe[src^=" https://connect.facebook.com"]{display:none!important;}

etc..
Ken
ZooMan
New User
 
Posts: 5
Joined: Thu Sep 24, 2009 7:43 pm

Re: Best method to add CSS code to Custom Filters.

Postby Jeff » Thu May 31, 2012 10:52 pm

exclude all that junk, the comments and the domain stuff etc..
That's not an ad blocker... THIS is an ad blocker.
---
No bovines were harmed in the making of this program.
---
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Jeff
Ad Muncher Developer
 
Posts: 5466
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States


Return to Custom Filters

Who is online

Users browsing this forum: No registered users and 0 guests