MozTW 討論區 https://forum.moztw.org/ |
|
[分享]用 Stylish 來自訂網頁樣式 https://forum.moztw.org/viewtopic.php?f=8&t=13247 |
第 4 頁 (共 8 頁) |
發表人: | wini [ 2006-05-19, 14:08 ] |
文章主題 : | |
看 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 } } |
發表人: | wini [ 2006-05-23, 16:30 ] |
文章主題 : | |
GMail 的 HTML 檢視畫面用的。 單純是把左方的選單變細,方便看信件而已, 目前做成滑鼠移到左方選單就會變大回來, 但是與右方的信件間的間隙還想不出辦法變緊。 另外,雖然用鍵盤也可以選到左方選單, 但是還想不出如何用游標移過時, 顯示出該項目出來的方法。 代碼: @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 } } |
發表人: | wandererm [ 2006-07-24, 13:27 ] |
文章主題 : | 無名去除黃金文字廣告 |
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; } } 就可以去除相簿和留言板裡面他們所謂的黃金文字廣告了! |
發表人: | wandererm [ 2006-08-04, 00:37 ] |
文章主題 : | Live Spaces去廣告 |
可以拿掉最上面的廣告,讓版面看起來更整體化。 代碼: @namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain(spaces.live.com) { div[id="AdContainer"] { display: none !important; } } |
發表人: | lllleo [ 2006-08-09, 01:54 ] |
文章主題 : | |
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? |
發表人: | wandererm [ 2006-08-11, 01:35 ] | ||
文章主題 : | Yahoo! Kimo News | ||
呼~總算是弄出來了! 這是給新版奇摩新聞用的。 去了三個廣告區塊、投票區塊、最多人瀏覽新聞區塊。 另外解放回以前在800*600下方便閱覽的排版。 另外字體大小,Kimo已經有使用Java讀取個人設定,所以就沒調整必要了。 20060817update:新代碼在後面的討論。
|
發表人: | Nelson [ 2006-08-15, 14:26 ] |
文章主題 : | |
擋無名小站相簿跟留言板廣告的,似乎失效了哩~ 請問有人能提供新的 code 嗎? |
發表人: | wandererm [ 2006-08-15, 22:12 ] |
文章主題 : | |
To:Nelson 我這邊使用都還正常沒有失效喔…有哪裡會失效的? |
發表人: | Nelson [ 2006-08-15, 23:33 ] |
文章主題 : | |
wandererm 寫: To:Nelson
我這邊使用都還正常沒有失效喔…有哪裡會失效的? 相簿跟留言板都有廣告哩~ 之前文章提供的 code 是要放在 userContent.css 對吧? 你用起來正常會不會是因為 AdBlock 的關係。 |
發表人: | wandererm [ 2006-08-16, 14:02 ] |
文章主題 : | 無名去廣告修正 for userContent.css & Google Search |
因應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; } } |
發表人: | bulin23 [ 2006-08-16, 17:12 ] |
文章主題 : | |
wandererm 寫: (恕刪)
您這個google的酷。多謝~! |
發表人: | 筆筆 [ 2006-08-16, 18:50 ] |
文章主題 : | |
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的話 建議可以多補紅色那行… |
發表人: | wandererm [ 2006-08-17, 13:42 ] | |||
文章主題 : | 花了三個晚上,終於完成聯合新聞網的修改了~ | |||
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設得又少.... 現在完成還真是有成就感!
|
發表人: | wandererm [ 2006-08-17, 17:45 ] |
文章主題 : | Yahoo! 奇摩新聞 & 字典 |
新聞: 修正了一些小錯誤。 預覽圖在上面之前的討論。 代碼: @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; } } |
發表人: | wandererm [ 2006-08-28, 22:40 ] | ||
文章主題 : | Taiwan CNET我做的修改 | ||
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
|
第 4 頁 (共 8 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |