- Last Modified: 2008年11月 6日 22:29
windowsの場合
Documents and Settings\ユーザ名\Application Data\Mozilla\Firefox\Profiles\*****\chrome\userContent.css
linuxの場合
~/.mozilla/firefox/*****.default/userContent.css
にある。
a[href*="a8.net"],
a[href*="valueclick"],
a[href*="valuecommerce"],
a[href*="linksynergy.com"],
a[href*="trafficgate.net"],
a[href*="custom-click.net"],
a[href*="accesstrade.net"],
a[href*="webcashing.com"] {
display: none !important;
}
/* サイズが指定された広告をカット */
[src][width="468"][height="60"] {
display: none !important;
}
@-moz-document domain("impress.co.jp") {
[src*="doubleclick.net"], [id^="ebBanner"],
[src^="http://ngs.impress.co.jp/"],
[src*="/ad/"], [src*="/ads/"],
a[href*="/event.ng/"][href*="&AdID="],
iframe[src^="http://ad.watch.impress.co.jp/"] {
display: none !important;
}
/*
* 更に徹底してカットする場合は以下を追加
*/
/* ページ先頭部のロゴを消して表示領域を広くする */
body>table:first-child>tbody>tr>td[height="125"]:first-child>
a>img[src*="/header/img0510/"],
body>script[src]:first-child+table>tbody>tr>td[height="125"]:first-child>
a>img[src*="/header/img0510/"] {
display: none !important;
}
body>table:first-child>tbody>tr>td[height="125"],
body>script[src]:first-child+table>tbody>tr>td[height="125"] {
height: 0 !important;
}
/* 記事広告エリアの余白カット(Weekly Topics他) */
td[width="468"] img[src="/headline/img/tit_weeklytopics.gif"],
td[width="468"] img[src$="spacer.gif"],
td[width="468"] img[src$="clear.gif"],
td[width="468"] img[src$="clear.gif"]+br,
td[width="300"] img[src$="spacer.gif"],
td[width="300"] img[src$="clear.gif"],
img[width="100"][src$="spacer.gif"],
td[width="468"] hr {
display: none !important;
}
td[width="468"]>table:first-child,
td[width="468"]>table:first-child td,
td[width="468"]>table:first-child+table,
td[width="468"]>table:first-child+table td,
td[width="300"]>table,
td[width="300"]>table td {
height: 0 !important;
padding: 0 !important;
}
body>table:first-child {
border-collapse: collapse !important;
}
td[width="160"],
td[width="160"]>table[width="160"] {
width: auto !important;
}
font[size="-1"] {
font-size: 11pt !important;
}
}
@-moz-document domain("slashdot.jp") {
iframe[src*="googlesyndication.com"],
table[summary="advertise"],
.tilead, img[src$="topicbug.gif"],
.bigbanner, .ad200, #ad1,
a[href*="http://ads.slashdot.jp"] {
display: none !important;
}
}
@-moz-document domain("journal.mycom.co.jp") {
#headbannerArea,
.promotionPart,
.ad,
.adBlock,
.widetileBlock,
.imagetextad1Block,
.imagetextad2Block,
.specialBlock {
display: none !important;
}
}
iframe[src*="googlesyndication.com"] {
display: none !important;
}
@-moz-document url-prefix("http://www.google.co.jp/search") {
table[width="25%"][bgcolor="#ffffff"][align="right"],
a[id^="aw"], a[id^="aw"]~*,
div[id^="tpa"] {
display: none !important;
}
}
@-moz-document domain("hatena.ne.jp") {
img[src*="/images/ad/"],
iframe[src*="googlesyndication.com"],
embed[src*="atdmt.com"],
div.ad, #text-ad {
display: none !important;
}
}
/* はてなアンテナのテキスト広告 */
@-moz-document domain("a.hatena.ne.jp") {
body>p.pager+ol[style="list-style-type: none;"],
body>ol[start="1"]+ol[style="list-style-type: none;"] {
display: none !important;
}
}
/* はてなダイアリーキーワードページのテキスト広告 */
@-moz-document domain("d.hatena.ne.jp") {
p[onclick^="top.location.href='http://www.hatena.ne.jp/hatenatypered"],
p[onclick^="location.href='http://www.hatena.ne.jp/hatenatypered"] {
display: none !important;
}
}
/* はてなRSSのテキスト広告 */
@-moz-document domain("r.hatena.ne.jp") {
div#sidebar {
margin-top: 0px !important;
}
div#main-header {
margin-right: 265px !important;
padding-right: 0px !important;
}
div.ad,
div.sponsor,
div#ad-line {
display: none !important;
}
}
@-moz-document url("http://www.excite.co.jp/world/"),
url("http://www.excite.co.jp/world/english/"),
url("http://www.excite.co.jp/world/english/web/"),
url("http://www.excite.co.jp/world/chinese/"),
url("http://www.excite.co.jp/world/chinese/web/"),
url("http://www.excite.co.jp/world/korean/"),
url("http://www.excite.co.jp/world/korean/web/") {
body>center:first-child+table:not([width="100%"]),
a[href^="http://www.excite.co.jp/sa/"],
a[href^="http://www.excite.co.jp/relocate/"],
a[href^="http://www.all-field.net/orix/"],
iframe[src^="http://www.excite.co.jp/world/exlet/"],
iframe[name="ex_banner"] {
display: none !important;
}
td[bgcolor="#a0b8c8"] {
width: 320px !important;
}
}
@-moz-document domain("geocities.jp"),
domain("geocities.co.jp") {
[src^="http://www.geocities.jp/js_source/"],
[src^="http://ai.yimg.jp/"],
a[href^="http://ard.yahoo.co.jp/"],
a[href^="http://rd.yahoo.co.jp/"],
#y_gc_div_adcntr,
#y_gc_div_adcntr+br {
display: none !important;
}
body>div[align="center"]>table[width="468"],
body>div[align="center"]>table[width="468"]>tbody>tr,
body>div[align="center"]>table[width="468"]>tbody>tr>td {
border: 0 !important;
height: 0 !important;
}
}
@-moz-document domain("tok2.com") {
a[href*="adjustnetwork.com"],
a[href*="adjustnetwork.com"]+br,
a[href*="eyegift.co.jp"],
a[href^="http://cc.tok2.com/"],
iframe[src*="googlesyndication.com"],
iframe[src$="FreettPopGecko.htm"],
body>script[src^="http://download.jword.jp/"]+center>table[border="0"],
#tok2-side-banner, #TOK2-SEO, #PS-SEO, #TOK2-TOP-TEXT {
display: none !important;
}
}
@-moz-document url-prefix(http://www58.tok2.com/home/letsgokorea/) {
center,
#TOK2-SIDE-BANNER {display:none !important;}
}
@-moz-document domain("freett.com") {
#FreePageBannerSpan {
display: none !important;
}
}
@-moz-document domain("aaa.livedoor.jp") {
body>center:first-child>form[action="http://search.aaacafe.ne.jp/jump.php"] {
display: none !important;
}
}
@-moz-document domain("xrea.com") {
body>center:first-child>a[href="http://www.xrea.com/"],
body>center:first-child>a[href="http://www.xrea.com/"]+br,
iframe[src*=".xrea.com/ad_"] {
display: none !important;
}
}
@-moz-document domain("2chan.net") {
a[href*="/ad/"],
a[href*="noel.st"],
a[href*="i-cute.jp"],
a[href*="nijiket.net"],
a[href="http://eltz.sakura.ne.jp/2chan/index.htm"],
form>b+br,
/* 404NotFoundページの広告カット */
body>h1:first-child+p+hr+table[border="0"] {
display: none !important;
}
}