MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2024-05-13, 18:47

所有顯示的時間為 UTC + 8 小時





發表新文章 這個主題已被鎖定,您不能編輯或回覆這個主題。  [ 117 篇文章 ]  前往頁數 上一頁  12345678  下一頁
發表人 內容
 文章主題 :
文章發表於 : 2006-05-19, 14:08 
離線
[網站管理員]

註冊時間: 2005-01-02, 05:49
文章: 3220
Taiwan CNET.com 的文章用的,
把頁面加寬,字體變大而已。

我本來並不想隱藏住廣告的,
不過那頁面全是 table ,
所以乾脆藏起來比較省事。

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("taiwan.cnet.com") {

TABLE[width="750"] {
width:94%!important
}

div#savedborder {
display:none!important
;
width:94%!important
;
background:white!important
}

div#savedborder div {
width:auto!important
}

p {
text-indent:2em!important
;
text-align:justify!important
;
padding:0 .3em!important
;
font-size:large!important
}

img[vspace] ,
td[height="40"] ,
iframe ,
center ,
td[width="160"] {
display:none!important
}

}

_________________
【Firefox 有問題請先看這裡】
回覆文章的建議
萬用自我檢測除錯大法 for Firefox
完全備份大法 for Firefox
重建 Firefox 的設定
乾淨升級 Firefox
(本帳號停用中)


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
 個人資料  
 
 文章主題 :
文章發表於 : 2006-05-23, 16:30 
離線
[網站管理員]

註冊時間: 2005-01-02, 05:49
文章: 3220
GMailHTML 檢視畫面用的。
單純是把左方的選單變細,方便看信件而已,

目前做成滑鼠移到左方選單就會變大回來,
但是與右方的信件間的間隙還想不出辦法變緊。
另外,雖然用鍵盤也可以選到左方選單,
但是還想不出如何用游標移過時,
顯示出該項目出來的方法。

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("mail.google.com") {

/*body {
font-family: monospace !important
}*/

td[width="120"] {
display:block !important
;
width:4px !important
;
overflow:hidden !important
;
border:1px solid black !important
}

td[width="120"]:hover {
width:9em !important
}

}

_________________
【Firefox 有問題請先看這裡】
回覆文章的建議
萬用自我檢測除錯大法 for Firefox
完全備份大法 for Firefox
重建 Firefox 的設定
乾淨升級 Firefox
(本帳號停用中)


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
 個人資料  
 
文章發表於 : 2006-07-24, 13:27 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
goldie 寫:
乾淨版無名相簿 (隱藏掉 上/下 兩個橫幅廣告)
不過下面的橫幅廣告可能會因為無名後來再去調整 Style 參數,而可能就失效了 = =


Wretch Album:
代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(www.wretch.cc) {
  td[id="ad_banner"] {
    display: none !important;
  }
  div[style="border: 1px outset gray; padding: 5px; background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; height: 150px; width: 700px;"] {
    display: none !important;
  }
}


補上最後一段變成:
代碼:

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(www.wretch.cc) {
  td[id="ad_banner"] {
    display: none !important;
  }
  div[style="border: 1px outset gray; padding: 5px; background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; height: 150px; width: 700px;"] {
    display: none !important;
  }
tr > td > table[class="small-c"] {
    display: none !important;
  }
}


就可以去除相簿和留言板裡面他們所謂的黃金文字廣告了!


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
 個人資料  
 
 文章主題 : Live Spaces去廣告
文章發表於 : 2006-08-04, 00:37 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
可以拿掉最上面的廣告,讓版面看起來更整體化。
代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(spaces.live.com) {
  div[id="AdContainer"] {
    display: none !important;
  }
}


最後由 wandererm 於 2006-08-10, 23:49 編輯,總共編輯了 1 次。

回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
 文章主題 :
文章發表於 : 2006-08-09, 01:54 
離線

註冊時間: 2006-08-09, 01:49
文章: 1
wandererm 寫:
可以拿掉最上面的廣告,讓版面看起來更整體化。
<code>
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(spaces.live.com) {
div[id="AdContainer"] {
display: none !important;
}
}
</code>


小弟想問問點add這code落spaces? Where have button to add?


回頂端
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
 個人資料  
 
 文章主題 : Yahoo! Kimo News
文章發表於 : 2006-08-11, 01:35 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
呼~總算是弄出來了!
這是給新版奇摩新聞用的。
去了三個廣告區塊、投票區塊、最多人瀏覽新聞區塊。
另外解放回以前在800*600下方便閱覽的排版。
另外字體大小,Kimo已經有使用Java讀取個人設定,所以就沒調整必要了。


20060817update:新代碼在後面的討論。


附加檔案:
檔案註釋: 新版奇摩新聞套用這個規則後的效果
ykn.jpg [475.53 KiB]
被下載 781 次


最後由 wandererm 於 2006-08-17, 17:47 編輯,總共編輯了 1 次。
回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
 文章主題 :
文章發表於 : 2006-08-15, 14:26 
離線
頭像

註冊時間: 2004-11-19, 00:07
文章: 482
來自: 閃光彈的家
擋無名小站相簿跟留言板廣告的,似乎失效了哩~
請問有人能提供新的 code 嗎?

_________________
我的部落格


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
 文章主題 :
文章發表於 : 2006-08-15, 22:12 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
To:Nelson
我這邊使用都還正常沒有失效喔…有哪裡會失效的?


最後由 wandererm 於 2006-08-17, 12:42 編輯,總共編輯了 2 次。

回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
 文章主題 :
文章發表於 : 2006-08-15, 23:33 
離線
頭像

註冊時間: 2004-11-19, 00:07
文章: 482
來自: 閃光彈的家
wandererm 寫:
To:Nelson
我這邊使用都還正常沒有失效喔…有哪裡會失效的?

相簿跟留言板都有廣告哩~
之前文章提供的 code 是要放在 userContent.css 對吧?

你用起來正常會不會是因為 AdBlock 的關係。

_________________
我的部落格


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
文章發表於 : 2006-08-16, 14:02 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
因應Nelson的無法寫在userContent.css使用,
做了以下的修改:

相簿
代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(www.wretch.cc) {
  td[id="ad_banner"] {
    display: none !important;
  }
  div[style="background: #FFFFFF; border:1px outset gray; height: 150px; width:700px; padding: 5px;"],
div[style="border: 1px outset gray; padding: 5px; background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; height: 150px; width: 700px;"]
{
    display: none !important;
  }
tr > td > table[class="small-c"] {
    display: none !important;
  }
}


留言板
代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://www.wretch.cc/guestbook/) {
.ad_top,
#ad_float,
td[style="padding: 0px; border: 1px solid #000000; width: 700px; height: 90px; background: #FFFFFF;"],
td[style="border: 1px solid rgb(0, 0, 0); padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0%; width: 700px; height: 90px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"]
{ display: none !important; }
}



我猜是userContent.css比較嚴謹的原因吧....
另外Nelson提供了一個Google Search用的,很可愛。

來源:
http://userstyles.org/style/show/728

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://www.google), domain(google.com) {
  p.g {
    border: solid 1px #3366CC ! important;
    -moz-border-radius: 10px ! important;
    padding: 10px ! important;
    background-color: #E5ECF9 ! important;
  }
  p.g:hover {
    border: solid 2px #AB1501 ! important;
    padding: 9px ! important;
    background-color: #FFF4C2 ! important;
  }
  a {
    text-decoration: none ! important;
  }
  a:link {
    color: #006699 ! important;
  }
  a:visited {
    color: #008000 ! important;
    text-decoration: underline ! important;
  }
  a:hover {
    color: #AB1501 ! important;
    text-decoration: underline ! important;
  }
  a:active {
    color: #008000 ! important;
    text-decoration: underline ! important;
  }
  td.j {
    width: 100% ! important;
    padding-left: 2em ! important;
  }
  table[align="right"] {
    display: none ! important;
  }
  div.ch {
    display: none ! important;
  }
}


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
 文章主題 :
文章發表於 : 2006-08-16, 17:12 
離線

註冊時間: 2006-03-10, 09:47
文章: 287
wandererm 寫:
(恕刪)

您這個google的酷。多謝~!

_________________
2006/03/08 開始愛上 Firefox!


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060805 Firefox/1.5.0.6 (pigfoot)
 個人資料  
 
 文章主題 :
文章發表於 : 2006-08-16, 18:50 
離線
頭像

註冊時間: 2005-02-04, 08:59
文章: 326
wandererm 寫:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://www.google), domain(google.com) {
p.g {
border: solid 1px #3366CC ! important;
-moz-border-radius: 10px ! important;
padding: 10px ! important;
height: 90px;
background-color: #E5ECF9 ! important;
}

如果有使用GooglePreview的話 建議可以多補紅色那行…


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.5) Gecko/20060728 Firefox/1.5.0.5 (pigfoot)
 個人資料  
 
文章發表於 : 2006-08-17, 13:42 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
arphen 寫:
用Stylish把聯合新聞網多餘的部份清乾淨,整個畫面往上移,但是要點左邊選單時,彈出選單卻跑到下面,滑鼠移過去時彈出選單也不見了:(

這部份恐怕非得用greasymonkey才行吧!:x

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("udn.com") {

   #TOP1,
   #TOP2,
   table[width="918"],
   td[width="150"],
   form[name="grad"],
   table > tbody > tr > td > table[height="120"],
   td[height="120"]
   { display: none !important; }

   table > tbody > tr > td[height="120"]
   { background: white !important; }

   table > tbody > tr > td > img[height="13"]
   { display:none !important; }

   table > tbody > tr > td[height="120"]
   { height:133px !important; }

   table[width="760"]
   { width:100% !important; }

   td[width="30%"]
   { text-align: right !important; }

}


它的Java彈出選單出現的是絕對位置,所以如果動到上面,
選單出現的位置就會走掉。

我個人是針對新聞本身做修改啦,因為上首頁的機會不多。
搭配Adblock使用,規則↙
代碼:
http://ad*.udn.com/*

去掉了大部分的廣告。
在版面上比上次改進很多~
在新聞頁面一樣兼顧到了800*600解析度,
如果有任何地方可以改進,一定要說出來喔~

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://udn.com),
 url-prefix(http://www.udn.com) {
 tr > td.text11,
 form[name="grad"],
 #top1 iframe[width="154"],
 td[width="15"] + td[width="150"],
 td[height="70"] > table[width="468"],
 table.searchs img[width="82"],
 table[width="149"],
 iframe[width="470"],
 td[width="478"] iframe,
/* 對付首頁 */
 td[height="70"][valign="middle"] > table,
 td[bgcolor="#EDEDED"] + td > table:first-child,
 #top1 iframe[height="610"]
 {
 display: none !important;
 }
/* 以上去廣告,以下為版面調整 */
 table[width="760"]
 {
 text-align:center !important;
 margin:auto !important;
 width:100% !important;
 }
 td[background][height="120"],
 table[width="760"] tr
 {
 background-repeat:no-repeat !important;
 }
 table.searchs
 {
 position: absolute !important;
 left: 50px !important;
 margin-top:-50px !important;
 margin-left:200px !important;
 }
 img[width="760"][height="13"]
 {
 position: relative !important;
 left: 0px !important;
 display: block !important;
 }
 #top1
 {
 width:1% !important;
 }
 tr[valign="top"] > td[align="left"]
 {
 width: 1% !important;
 }
 td[width="30"][align="right"]
 {
 text-align: left !important;
 }
}

@-moz-document url(http://udn.com/NEWS/main.html) {
 table.searchs
 {
 left: 250px !important;
 margin-left:0px !important;
 }
 td[width="158"][valign="top"]
 {
 display: none !important;
 }
}

@-moz-document url-prefix(http://mag.udn.com) {
 a.right_item img,
 a.right_item iframe,
 img[height="5"],
 img[width="240"][height="80"],
 table[cellpadding="2"] table.border
 {
 display:none !important;
 }
 td[width="560"],
 table[width="560"]
 {
 width: 100% !important;
 }
 td[width="158"]
 {
 width:158px !important;
 display:block !important;
 }
 table.border[cellpadding="3"]
 {
 height: auto !important;
 }
 table[width="996"]
 {
 width: 100% !important;
 }
 td[width="240"]
 {
 width:auto !important;
 }
 tr.statistics
 {
 display: none !important;
 }
 td#act_board
 {
 display: none !important;
 }
}

@-moz-document url-prefix(http://stars.udn.com) {
td[valign="top"] > iframe:first-child,
td[width="240"] iframe,
table[cellpadding="5"],
table[cellpadding="5"] + table
 {
 display: none !important;
 }
}

@-moz-document domain(udn.com) {
 #top1 iframe[width="154"],#Layer1
 {
 display:none !important;
 }
}



P.S. 其實我從來不上聯合新聞網的,只是拿它當練習....
   不過這個站實在太麻煩了....嵌入廣告的花招真多,
   在發表的時候邊檢查還是有一堆小地方要修,
   還是用Table排版,Class和id設得又少....
   現在完成還真是有成就感!  


附加檔案:
檔案註釋: 常見的聯合新聞網精選閱讀修改後
mag_udn.jpg [527.77 KiB]
被下載 605 次
檔案註釋: 常見的聯合新聞網一般頁面修改後
udn_news.jpg [507.64 KiB]
被下載 523 次
回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
文章發表於 : 2006-08-17, 17:45 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
新聞:
修正了一些小錯誤。
預覽圖在上面之前的討論。

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://tw.news.yahoo.com/article/) {
  div[id="sec"] {
    display: none !important;
  }
div[id="adst"] {
    display: none !important;
  }
div[id="ynwsovls"] {
    display: none !important;
  }
div[id="ynwsratw"] {
    display: none !important;
  }
div[id="ynwsgnav"] {
    background-image:url(none) !important;
    padding: 0px !important;
  }
div#ynwsgnav ul.sec {
    display: none !important;
  }
div#ynwsgnav ul.pri li {
    background-image:url(none) !important;
    padding: 0px 3px 0px 3px !important;
  }
div[id="ynwsppl"] {
    display: none !important;
  }
div[id="bdbg"] {
    width: 95% !important;
    background-image:url(null) !important;
  }
div[id="bd"] {
    width: auto !important;
  }
div[id="pri"] {
    width: 100% !important;
  }
div[id="ynwscatv"] {
  clear: both !important;
  }
}



字典:
因為最近在用Backword,查詢連結是用奇摩字典,
就順手做了出來。

請搭配Adblock Plus規則去掉底部廣告↙
代碼:
http://tw.linkspot.search.yahoo.com/*



代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://tw.dictionary.yahoo.com/)
{
 #VREC
 {
 display: none !important;
 }
 #simvoc
 {
  margin-top: 20px !important;
 }
}



回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
文章發表於 : 2006-08-28, 22:40 
離線
頭像

註冊時間: 2005-07-14, 22:36
文章: 64
wini 寫:
Taiwan CNET.com 的文章用的,
把頁面加寬,字體變大而已。

我本來並不想隱藏住廣告的,
不過那頁面全是 table ,
所以乾脆藏起來比較省事。

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("taiwan.cnet.com") {

TABLE[width="750"] {
width:94%!important
}

div#savedborder {
display:none!important
;
width:94%!important
;
background:white!important
}

div#savedborder div {
width:auto!important
}

p {
text-indent:2em!important
;
text-align:justify!important
;
padding:0 .3em!important
;
font-size:large!important
}

img[vspace] ,
td[height="40"] ,
iframe ,
center ,
td[width="160"] {
display:none!important
}

}



我又補完了兩種沒去掉的廣告,把標題加大,
然後版面調整得比較好看些。

代碼:
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("taiwan.cnet.com") {

h1{
text-align: center !important;
font-size: 1.6em !important;
}

TABLE[width="750"] {
width:94%!important
}

td[width="568"]{
padding:20px !important
}

div#savedborder {
display:none!important
;
width:94%!important
;
background:white!important
}

div#savedborder div {
width:auto!important
}

p {
text-indent:2em!important
;
text-align:justify!important
;
padding:0 .3em!important
;
font-size:1.2em!important
}

img[vspace] ,
table[width="380"][align="right"],
td[height="40"] ,
iframe ,
center ,
div[id="evotingPromo"],
td[align="right"] > table[width="380"],
td[width="160"],
table[width="750"] td[width="1"],
table[width="750"] td[width="8"] {
display:none!important
}

span[class="13px_normal"] > center
{
display:block !important
}

}


20060904update:補上了一些未去乾淨的廣告和他們加上的新廣告。
20060914update:修正不小心連新聞圖片也去掉:P


附加檔案:
檔案註釋: 我在wini基礎上所修改的成果
taiwancnet.jpg [498.25 KiB]
被下載 572 次


最後由 wandererm 於 2006-09-14, 12:06 編輯,總共編輯了 3 次。
回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
 個人資料  
 
顯示文章 :  排序  
發表新文章 這個主題已被鎖定,您不能編輯或回覆這個主題。  [ 117 篇文章 ]  前往頁數 上一頁  12345678  下一頁

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 3 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群