特別版!不顯示右方側邊欄
下列是擋 聯合新聞網 廣告的檔案,
請將檔案儲存到 %AppData%\Mozilla\Firefox\Profiles\xxxxxxxx.default\chrome\
※若 userContent.css 已存在,請將 @import url("udn.com.css"); 加入到 userContent.css
udn.com.css
代碼:
@-moz-document domain(udn.com) {
a:link[href^="http://ad1.udn.com/RealMedia/ads/click_lx.ads/"][target="_blank"],
a:link[href^="http://ad2.udn.com/RealMedia/ads/click_lx.ads/"][target="_blank"],
a:link[href^="http://ad3.udn.com/RealMedia/ads/click_lx.ads/"][target="_blank"],
a:link[href^="http://ad4.udn.com/RealMedia/ads/click_lx.ads/"][target="_blank"],
object[ID="banner"],
object embed[src^="http://ad1.udn.com/RealMedia/ads/"],
object embed[src^="http://ad2.udn.com/RealMedia/ads/"],
object embed[src^="http://ad3.udn.com/RealMedia/ads/"],
object embed[src^="http://ad4.udn.com/RealMedia/ads/"],
iframe[id="ad_set"],iframe[id="biz"],iframe[id="bd"], /* 首頁右方廣告 */
#ad125_450,div#ad_sash, /* 首頁廣告 */
div#tabnav3,div#tabnav4,div#tabbg3,div#tabbg4,div#tabnav_arrow3,div#tabnav_arrow4,div#ad_sash, /* 首頁廣告 */
iframe[width="728"][height="90"], /* 內頁橫幅廣告 */
iframe[width="120"][height="160"], /* 內頁購物推薦 */
iframe[width="240"][height="400"], /* 內頁右方廣告 */
iframe[width="240"][height="160"], /* 內頁右方廣告 */
iframe[name="ad"], /* 內頁創意情報 */
iframe[id="kkbox"], /* KKBOX廣告 */
iframe[id="_gpxiframe"], /* 久騰廣告 */
img[id="gpxbaseimg"],
iframe[id="_gpxtriggerx"],
iframe[src*=".jtmedia.com.tw/"],
.styleHeader,
.styleSubject,
.styleContent,
table[width="545"][height="196"][border="0"][cellpadding="0"][cellspacing="1"][bgcolor="#E6E6E6"], /* scupio 酷比廣告 */
table[width="530"][height="60"][border="0"][cellpadding="0"][cellspacing="1"][bgcolor="#f7e7c6"], /* scupio 酷比廣告 */
.ad_text1, /* 購物推薦 */
.bd_leftbg, /* 購物推薦 - 背景色 */
td[class="hotkey"], /* 熱門關鍵字 */
form[action="/NASApp/Grading/grading"], /* 評分 */
div#resultsLis,div#resultsKey /* overture.com */
{display:none !important;}
#pulldownmenus {position:relative !important; top:8px !important;} /* 內頁下拉選單 */
div[id^="item"] {position:relative !important; top:-85px !important; display:block !important; border:1px #FFFFFF solid !important}
}
/* 不顯示右方側邊欄 */
body > table[width="996"][border="0"][align="center"][cellpadding="0"][cellspacing="9"][class="mainbg"] > tbody > tr:first-child > td:first-child[valign="top"] {width:996px !important;}
body > table[width="996"][border="0"][align="center"][cellpadding="0"][cellspacing="9"][class="mainbg"] > tbody > tr:first-child > td:first-child[valign="top"] > table[width="100%"][border="0"][cellspacing="0"][cellpadding="0"]> tbody > tr:first-child > td:first-child[width="134"][height="100%"][valign="top"] {width:134px !important;}
body > table[width="996"][border="0"][align="center"][cellpadding="0"][cellspacing="9"][class="mainbg"] > tbody > tr:first-child > td:first-child[valign="top"] > table[width="100%"][border="0"][cellspacing="0"][cellpadding="0"]> tbody > tr:first-child > td:last-child[width="584"][height="100%"][valign="top"] {width:834px !important;}
body > table[width="996"][border="0"][align="center"][cellpadding="0"][cellspacing="9"][class="mainbg"] > tbody > tr:first-child > td:last-child[width="240"][height="100%"][valign="top"] {width:0px !important; display:none !important;}
@-moz-document url-prefix(http://udn.com/NEWS/main.html) {
#pulldownmenus {position:relative !important; top:5px !important;} /* 首頁下拉選單 */
div[id^="item"] {position:relative !important; top:0px !important;}
iframe[id="sub_content"],#tabbg,#tabnav2 {position:absolute !important; top:566px !important;}
#tabnav_arrow2 {position:absolute !important; top:586px !important;}
}
@-moz-document url-prefix(http://udn.com/NEWS/FINANCE/),url-prefix(http://udn.com/NEWS/STOCK/) {
.ad_text1, /* 購物推薦 */
.bd_leftbg /* 購物推薦 - 背景色 */
{display:block !important;}
}
@-moz-document url-prefix(http://udn.com/NEWS/STOCK/STO10/) {
object[width="728"][height="90"],IFRAME[width="535"][height="350"] {display:none !important;}
}
userContent.css
代碼:
@import url("udn.com.css");