原作者好幾年沒更新了,有點小瑕疵,我修改一下,修改後不能切換語系,
要切換語系在網址列改,把zh改成你要的語言。
ModernWiki - userstyles.org
要切換語系在網址列改,把zh改成你要的語言。
ModernWiki - userstyles.org
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("wikipedia.org") { /* ################## ----- Overall / Element Settings----- ####################### */ body{background:-moz-linear-gradient(center 50px , #CACACA, #F4F4F4 140px) repeat fixed 0 0 #f4f4f4 !important; min-width: 990px!important} a{color:#9A3613 !important} a.new{color:#000 !important} font{color: #777!important} hr{height:1px!important;color:#aaa!important; background:#aaa!important; border:0 none #aaa!important; overflow:hidden!important; padding:0!important; margin: 1px 12px!important} ul, ul li, #toc ul li, .search-types li{list-style: none outside none!important;} table{border-collapse: collapse!important;} /* ################## ----- search form / top bar ----- ####################### */ #mw-head{height:28px!important; background:-moz-linear-gradient(center top , #b6b6b6 , #ababab 5px , #a6a6a6 14px ,#a1a1a1 26px ,#999999 27px ) repeat fixed 0 0 #f4f4f4 !important; overflow: visible !important; z-index: 99 !important; box-shadow: 0px 2px 2px #333; border-top: 1px solid #999!important; position: fixed!important} #mw-panel{position: fixed!important; top: 0px!important; z-index: 101 !important; width: 100%!important; height: 1px!important; overflow: visible!important; padding: 0px!important; margin: 0px!important} /* -------- Search Form -------- */ #p-search{margin: 0px!important; position: absolute; top: 0px; left: 50%; margin-left: -290px !important; border-right: 1px solid #666; padding: 3px 56px 3px 0!important; box-shadow: 1px 0px 0px #bcbcbc} #searchform, #simpleSearch{margin: 0px!important;} #simpleSearch{margin: 0px!important;border-radius:11px !important; background:#F4F4F4 none no-repeat fixed !important; height: 20px!important; ; box-shadow: inset 1px 2px 2px #333; border: 1px solid #555!important; padding: 0px 0 0 3px !important } #simpleSearch *{border: 0px none!important; color: #9A3613!important} /* ###### ---- Document Menu Tabs ---- ######*/ div.vectorTabs {background: transparent none !important} div.vectorTabs a span, div.vectorTabs li a{padding: 0px!important; height: auto!important; color: inherit!important; text-decoration: inherit!important; float: none!important; background: transparent none !important; margin: 0!important} /* ---- left menu ---- */ #left-navigation{position: absolute!important; left:48px!important; right:auto !important; top: 2px !important; z-index:555!important; } #p-namespaces{position: absolute!important; left:0!important; right:auto !important; top: 0px !important; } #p-namespaces ul:before{content:"▼" !important; color: #ddd; padding:0px 0px 0px 2%!important; font-size: .8em!important; } #p-namespaces ul:hover:before{content:"●" !important; color: #9A3613; font-size: 1.3em!important; } #p-namespaces ul{border-radius: 5px!important; padding: 2px 10px 2px 3px !important; margin: 0 !important; opacity:1!important; cursor: default; overflow: hidden!important; height: 15px !important;background: transparent none !important} #p-namespaces ul li{display: block !important; background: transparent !important; border-width: 0 0 0 9px!important; border-color: #ccc!important; border-style: solid!important; margin: 3px 1px 3px 3px!important; padding: 0px 3px 0px 4px !important; float: none!important; line-height: .9em !important;height:auto !important; color: #bbb!important; text-decoration: none!important;} #p-namespaces ul:hover{background: #404040 !important; height:auto !important; box-shadow: #444 2px 2px 3px } #p-namespaces ul li.selected{ border-color: #9A3613!important;color: #dedede!important } #p-namespaces ul li:hover{text-decoration: underline!important;} /* ---- right menu ---- */ #p-views{left:auto!important; right: 16px !important; top: 2px !important; z-index: 999!important; position: absolute!important } #p-views ul:before{content:"▼" !important; color: #ddd; padding:0px 0px 0px 90%!important; font-size: .8em!important; } #p-views ul:hover:before{content:"●" !important; color: #9A3613; padding:0px 0px 0px 90%!important; font-size: 1.3em!important; } #p-views ul{border-radius: 5px!important; padding: 2px 10px 2px 3px !important; margin: 0 !important; opacity:1!important; cursor: default; overflow: hidden!important; height: 15px !important;background: transparent none !important} #p-views ul:hover{background: #404040 !important; height:auto !important; box-shadow: #444 2px 2px 3px } #p-views ul li{display: block !important; background: transparent !important; border-width: 0 0 0 9px!important; border-color: #ccc!important; border-style: solid!important; margin: 3px 1px 3px 3px!important; padding: 0px 3px 0px 4px !important; float: none!important; line-height: .9em !important;height:auto !important; color: #bbb!important; text-decoration: none!important;} #p-views ul li.selected{ border-color: #9A3613!important;color: #dedede!important } #p-views ul li:hover{text-decoration: underline!important;} /* ----- personal portlet ----- */ #p-personal{position:absolute!important; height: 10px!important; width:10px!important; border-radius: 8px!important; background: #909090 none!important; overflow: hidden!important; top:8px!important; right:auto!important; left: 8px!important;padding: 0px !important; color: #6D777C!important; cursor: default!important; z-index:9999!important;border:2px solid #cacaca!important; box-shadow: inset #444 -1px -1px 0px, inset #ccc 1px 1px 1px, -1px -1px 1px #444 } #p-personal:hover{width: auto!important; height: auto!important; padding: 8px!important; background: #fff none!important; border:1px solid #666!important; box-shadow: #444 2px 2px 2px;opacity: .94!important} li#pt-userpage, li#pt-anonuserpage, li#pt-login{background: transparent none!important; padding: 0!important;} #p-personal li{display: block!important; margin: 2px 2px 4px 2px!important; float: none!important; padding: 0px!important} #p-personal ul{text-align:left!important; padding: 2px 4px!important; margin: 20px 0 0 0!important} #p-personal:hover ul {margin:0px 0 0 0!important} #p-personal li a{color:#9A3613!important} #p-personal li a:hover{text-decoration:underline!important} /* ----- Panels ----- */ #mw-panel.collapsible-nav div.portal{background: transparent none!important; padding: 0px!important; margin-top: 0px!important} .portal>h5{font-size: .8em!important} .portal ul li, .portal ul li.FA{background: transparent none!important; text-shadow: 1px 1px 1px #999} /* ----- Languages ----- */ #p-lang{ cursor: default !important; position: absolute !important; top:7px !important; left:50% !important; z-index:999 !important; overflow: visible !important; margin:0px 0px 0px 190px !important;} #p-lang div.body{position:relative !important; top:0px !important; left:-17px !important; display:none !important; z-index:99 !important;} #p-lang:hover div.body{display:block !important; } #p-lang:hover .body ul{-moz-column-count: 3!important; -moz-column-gap:16px!important; clear: both!important; background: #f8f8f8!important; margin: 17px 0px 0px 0px!important; border:1px solid #777 !important; padding: 2px 4px !important; box-shadow: #444 2px 2px 3px; opacity: .94!important} #p-lang h3>a{color:#cdcdcd !important; text-decoration: none!important} #p-lang h3{color:#cdcdcd !important;background: #4A5154 !important; border-radius: 9px !important; border-top:1px solid #333 !important; border-left:1px solid #333 !important;border-right:0px none #4A5154 !important;border-bottom:0px none #4A5154!important; padding:0px 10px 0px 10px!important; float: left!important} #p-lang:hover h3, #p-lang:hover h3>a{color:#f4f4f4!important;background: #5f666a !important; } #p-lang:hover .body ul>li{list-style: none outside none!important;} li[class*="interwiki-"]{display: none!important} li.interwiki-en, li.interwiki-de{font-weight:bold !important;display: block!important} li.interwiki-es, li.interwiki-fr, li.interwiki-it, li.interwiki-ru{display: block!important} /* -------- Navigation ------- */ #p-navigation>h3{display: block!important} #p-navigation{ cursor: default !important; position: absolute !important; top:7px !important; left:50% !important; z-index:900 !important; overflow: visible !important; margin-left:50px !important;} #p-navigation div.body{position:relative !important; top:0px !important; left:-8px !important; display:none !important; z-index:99 !important;} #p-navigation:hover .body{display:block !important; } #p-navigation:hover .body ul{ clear: both!important; background: #f8f8f8!important; margin: 17px 0px 0px 0px!important; border:1px solid #777 !important;list-style: none outside none!important; padding: 2px 4px !important; box-shadow: #444 2px 2px 3px; opacity: .94!important} #p-navigation:hover .body ul li{list-style: none outside none!important;} #p-navigation h3{color:#cdcdcd !important;background: #4A5154 !important; border-radius: 9px !important; border-top:1px solid #333 !important; border-left:1px solid #333 !important; border-right:0px none #4A5154 !important;border-bottom:0px none #4A5154!important; padding:0px 10px 0px 10px!important; display: block!important; float: left!important} #p-navigation:hover h3{color:#f4f4f4!important;background: #5f666a !important;} /* ################## ----- Main Content ----- ####################### */ #content{margin:48px auto 24px auto !important; border:1px solid #aaa !important; width:90% !important; min-width:880px !important; max-width: 1340px !important; border-radius:7px !important; background: #ffffff !important;} /* ################# ------- Layout-Article -------- ###################### */ #bodyContent th[style], #bodyContent table[class] th{background: #eeddcc !important; color: #333!important} #bodyContent th[style] font, #bodyContent table[class] th font, #bodyContent th[style] span, #bodyContent table[class] th span{ color: #533!important} #bodyContent tr[style], #bodyContent table[style], #bodyContent table[class], #bodyContent table[class] tr,#bodyContent table[class] td{border-color: #9A3613 !important} .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title {background: #e0e0e0 !important} .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {background: #eaeaea !important} .navbox-even{background: #f5f5f5 !important} #bodyContent table td.navbox-list,#bodyContent table .navbox-columns-table td{border-color: #FFFFFF !important} #bodyContent table.gallery td{border-color: #FFFFFF !important} /* -------- Images ----------- */ div.tright{border-left: 6px solid #fff !important} div.tleft{border-right: 6px solid #fff !important} /* --------- TOC ------------- */ #bodyContent table#toc{border-color: #aaaaaa !important} table#toc td>ul{-moz-column-count: 3!important; -moz-column-gap:6px!important; padding: 0px !important;} table#toc td ul{list-style-image:none !important; list-style-type:none !important; } #bodyContent ul li{color:#111 !important} /*################## ----- Content - TABLE - Colors ----- #######################*/ #bodyContent table[class~="float-right"] tr[style~="background:"], #bodyContent table[class~="float-right"] td[style~="background:"],#bodyContent table[class~="float-right"] tr[style~="background-color:"], #bodyContent table[class~="float-right"] td[style~="background-color:"],#bodyContent table[class~="float-right"] td[class][style=""]{background:#EEDDCC none!important; color:#000!important} #bodyContent table.infobox td[style]{background:#E8E8E8 none!important; color:#000!important} #bodyContent table[class~="float-right"] .navbox-group{background:#E8E8E8 none!important; color:#000!important} table.taxobox, table.taxobox th, table.taxobox tr, table.taxobox td{border-color: #9A3613 !important} table.wikitable, table.wikitable td, table.wikitable th, table.wikitable tr{border-color: #9A3613 !important} table.prettytable th{border-color: #9A3613 !important} #bodyContent table[class~="float-right"] a>font{color:#333!important} #bodyContent table[class~="float-right"] a+font{color:#666!important} /* ##################----- Suggestions ----------######################*/ div.suggestions{opacity: .94!important; box-shadow: #444 2px 2px 3px;background:#f8f8f8 !important} div.suggestions-results, div.suggestions-special{background:transparent !important} .suggestions-result-current, div.suggestions-special.suggestions-result-current{color: #fff!important; background:#9A3613 !important } /* ################## ----- Elements Display None ----- ####################### */ div.vectorTabs span{background-image: none!important} #mw-page-base, #mw-head-base, #footer, #p-logo,#siteNotice, .metadata, #mp-strapline, #p-coll-print_export, #mw-panel .portal:not(#p-lang):not(#p-navigation), .emptyPortlet {display:none !important} img[src*="Bluebg_rounded"]{visibility:hidden !important} /* ################## ----- Main/welcome page ----- ####################### */ /* --------- DE/Ger ------------- */ #hauptseite h2{background: #EEDDCC!important; border-color:#9A3613!important} #hauptseite .inhalt{border-color:white #888 #888!important} /* --------- US/UK/Eng ------------- */ body[class*="page-Main_Page"] #mp-upper *, body[class*="page-Main_Page"] #mp-upper+table *{background: transparent!important;border-color:#888!important } body[class*="page-Main_Page"] td.MainPageBG+td[style]{border:0px none !important} body[class*="page-Main_Page"] #mp-upper table th h2,body[class*="page-Main_Page"] #mp-upper+table table th h2{background: #EEDDCC!important;border:#9A3613 solid 1px!important } body[class*="page-Main_Page"] #mp-upper table th[style],body[class*="page-Main_Page"] #mp-upper+table table th[style]{background: transparent!important;border:#fff none!important; padding: 3px!important;margin: 0Px!important} body[class*="page-Main_Page"] #mp-upper+table a.image{display: block!important; padding: 6px!important; background: #ddd!important; border: 1px solid #888!important; box-shadow: 2px 1px 2px #555; max-width: 98%!important} /* --------- Fra ------------- */ #accueil_titre+table *, #accueil_titre *{background-color: transparent!important;border-color:#888!important } #accueil_titre+table tr td[style*="border: 5px"]{border:5px solid #fff !important} #accueil_titre+table th div:first-child{background: #EEDDCC!important;border-radius: 10px 0 0 10px!important ;} /* --------- Ita ------------- */ body[class*="page-Pagina_principale"] #bodyContent>div[style*="float"] *{background-color: transparent!important;border-color:#888!important } body[class*="page-Pagina_principale"] #bodyContent>div[style*="float"] h2{background-color: #EEDDCC!important;border-bottom:1px solid #9A3613!important } /* --------- Esp ------------- */ body[class*="page-Wikipedia_Portada"] #bodyContent table *{background-color: transparent!important;border-color:#888!important } body[class*="page-Wikipedia_Portada"] #bodyContent th h2{background: #EEDDCC!important; border-color:#9A3613!important} body[class*="page-Wikipedia_Portada"] #bodyContent table td[style="border: 1px solid transparent;"]{border: 1px solid #fff!important} /* --------- Hun ------------- */ body[class*="Kezd?lap"] #bodyContent table *{background-color: transparent!important;border-color:#888!important } body[class*="Kezd?lap"] #bodyContent th{background: #EEDDCC!important; border:1px solid #9A3613!important} /* --------- Dan /Cze ------------- */ body[class*="Forside"] #bodyContent table *, body[class*="Hlavní"] #bodyContent table *:not(.thumb) {background-color: transparent!important;border-color:#888!important } /* --------- Fin/Suomi ------------- */ body[class*="Etusivu"] #bodyContent table *{background-color: transparent!important;border-color:#888!important } body[class*="Etusivu"] #bodyContent th h2{background: #EEDDCC!important; border-color:#9A3613!important} /* --------- Türk?e ------------- */ body[class*="Ana_Sayfa"] #bodyContent>table:first-of-type {background-color: #f4f4f4!important;border-color:#888!important } body[class*="Ana_Sayfa"] #bodyContent table *{background-color: transparent!important;border-color:#888!important } body[class*="Ana_Sayfa"] #bodyContent th{background: #EEDDCC!important; border:1px solid #9A3613!important} /* ---------list style image - main page/Content------------- */ ul li{list-style-image:url(data:image/gif;base64,R0lGODlhBQAHAKIAANe4rbl3YNGqnaRKK+3k4axcQLh1XQAAACH5BAEAAAcALAAAAAAFAAcAAAMQSDZGUaKEAQ5gsLTVjv9gAgA7) !important; } #left-navigation, .portal { display: none !important; } } |