上次发了油猴的脚本,这次弄点stylish的样式
firefox吧
全部回复
仅看楼主
level 6
拱白菜 楼主
stylish用的人比较少,先介绍下stylish.
Firefox 内有四个能超强自定义能力的文件,分别是:
UserChrome.css -浏览器界面的样式表
UserContent.css -自定义网页的样式表
UserChrome.js -浏览器界面的功能脚本
UserContent.js -自定义网页用户脚本
为了更方便地管理用户样式表和脚本,避免挤到这四个文件中,于是有了三个(或许更多)超强的扩展,如下:
Stylish - 管理所有样式表,对应第一、第二个文件
GreaseMonkey - 管理所有网页用户脚本,对应第四个文件
UserChromeJS - 管理几乎所有用户脚本,对应第三第四个文件
Stylish 基本上就是一管理器,跟直接使用第一第二个文件是同样功能的
GM 只针对网页,并且基于安全理由添加了很多限制,例如 GM 脚本实际上是运行在独立的封包中而不是插入到网页内(尽管 GM 提供了直接运行而不封包的选项,也有绕过的方式)。于是 GM 脚本就跟网页脚本基本上一样。
UC 其实就是一个平台,让脚本可以以扩展的方式运行(其实很多简单的扩展就是一个脚本封装在扩展的架构中),所以 UC 脚本就是“骨架”扩展,也可针对浏览器也可针对网页。
总之.stylish注重的是样式,就是外形,greasemonkey和UC注重的是功能,但是UC我极力不推荐.为什么,很危险~打个比方就好像不用虚拟机,实机玩毒一样,没有一个杀毒敢保证百分百防御查杀.一旦崩溃后果很严重~UC也是一样~
Firefox 4 About:Blank Glass
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#appcontent,
#content > tabbox > tabpanels {
background-color: transparent !important;
}
#main-window[stylish-url="about:blank"]:not([onclose^="PrintUtils"]):not([title^="View Source Chart"]) #content browser{
opacity: 0 !important;
}

2011年03月24日 08点03分 1
level 6
拱白菜 楼主
晕 发不上来 审核
2011年03月24日 08点03分 2
level 14
mark
2011年03月24日 08点03分 3
level 1
-2
多谢分享。
发链接~~
2011年03月24日 08点03分 4
level 6
拱白菜 楼主
safari输入框蓝光样式
/*safari输入框蓝光样式*/
@namespace url(http://www.w3.org/1999/xhtml);
/* This file is licensed under Creative Commons Attribution License
* http://creativecommons.org/licenses/by/3.0/
*
* Initial Developer:
* Andreas Jung (sd-daken.deviantart.com)
*
* Contributor(s):
*
*/
@-moz-document url-prefix(http), url-prefix(https), url-prefix(file) {
input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="image"]),
textarea {
    -moz-appearance: none !important;
    border: 1px solid #7f9db9;
    -moz-box-sizing: padding-box;
    padding: 2px !important;
    min-height: 20px !important;
}
input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
    -moz-box-shadow: 0px 0px 3px 3px rgba(85,165,243,0.5) !important;
}
}
2011年03月24日 08点03分 6
level 6
uc.js我都会检查下的,比如网站地址和系统文件夹的地址,油猴子要弄你一样弄的到,要功能就得有风险。。
2011年03月24日 08点03分 7
level 6
拱白菜 楼主
FireFox橙色菜单栏变透明
/*FireFox橙色菜单栏变透明*/
#appmenu-button{ background: transparent !important; }
2011年03月24日 08点03分 8
level 6
拱白菜 楼主
导航栏和标签栏透明
/* 导航栏和标签栏透明 */
#navigator-toolbox[tabsontop="true"] #nav-bar{
   background: transparent !important;
   border: none !important;
}
#navigator-toolbox[tabsontop="false"] #TabsToolbar{
   background: transparent !important;
}
#TabsToolbar, *.tabbrowser-tab{
   background: transparent !important;
}
#TabsToolbar, .tabbrowser-tab, .tabs-newtab-button{
   background: transparent !important;
} 
2011年03月24日 08点03分 9
level 6
拱白菜 楼主
标签栏文字添加一阴影效果
/* 标签栏文字添加一阴影效果 */
.tabbrowser-tab {
   text-shadow:rgba(80, 80, 80, 0.5) 1px 1px 1px !important;
}
2011年03月24日 08点03分 10
level 3
正在使用中
2011年03月24日 08点03分 11
level 6
mark!
2011年03月24日 09点03分 12
level 6
拱白菜 楼主
回复:7楼
油猴好比游戏外挂~而且只针对网页,还有UC 脚本基本上都挂在一些论坛和一些作者自己的主页上,最后一点我最烦UC的理由,UC是小鬼子开发的~看看吧下次有心情就发些UC脚本
2011年03月24日 09点03分 13
level 6
拱白菜 楼主
Firefox 4: Choose Your Color
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#navigator-toolbox label:not([class^="menu-"]):not([id^="identity-icon"]):not([class^="urlbar"]):not([class^="tab"]),
#sidebar-header,
#browser-bottombox label,
#browser-bottombox description
    {color: black !important;
         text-shadow: white 0 0 6px,
                      white 0 0 6px,
                      rgba(255, 255, 255, .4) 0 1px 0 !important; }
#navigator-toolbox:not([blah]) .tabbrowser-tab
    {color: black !important;
         text-shadow: white 0 0 9px,
                      white 0 0 9px,
                      rgba(255, 255, 255, .3) 0 1px 0 !important; }
#navigator-toolbox:not([blah]) .tabbrowser-tab[selected="true"]
    {color: black !important;
         text-shadow: rgba(255, 255, 255, .4) 0 1px 0 !important; }
#browser-bottombox [disabled="true"] label
    {color: rgb(70, 70, 70) !important;
         text-shadow: 1px 1px 0 rgba(255, 255, 255, .4) !important; }
#main-window[stylish-platform*="Linux"] #navigator-toolbox label[class^="menu"],
#browser-bottombox notificationbox *:not([blah])
    {color: inherit !important;
         text-shadow: none !important; }
#sidebar-header
    {-moz-appearance: none !important;
         border-top: none !important;
         background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)) !important; }
#browser-bottombox > *
    {-moz-box-ordinal-group: 2 !important; }
#browser-bottombox notificationbox
    {-moz-box-ordinal-group: 1 !important; }
#status-bar
        {background-color: transparent !important; }
#navigator-toolbox textbox
        {background-color: rgba(255, 255, 255, .84) !important; }
#navigator-toolbox textbox:hover
        {background-color: rgba(255, 255, 255, .92) !important; }
#navigator-toolbox textbox[focused]

2011年03月24日 09点03分 14
level 6
拱白菜 楼主
        {background-color: white !important; }
#urlbar toolbarbutton
        {border-radius: 0 3.3px 3.3px 0!important; }
@media not all and (-moz-windows-compositor){
#browser-bottombox > *
    {-moz-appearance: none !important;
    background: none !important;
    border: none !important; }
#sidebar-header,
#navigator-toolbox:not(:-moz-lwtheme) > *:not(
#TabsToolbar):not(#
toolbar-menubar),
#browser-bottombox,
#main-window[tabsontop="false"] :-moz-any(
#TabsToolbar, #
toolbar-menubar),
#main-window[chromehidden=""][tabsontop="false"]:not(:-moz-lwtheme)
        {background-color: RGB(0, 84, 227
) !important; }
#navigator-toolbox:-moz-lwtheme > *:not(#TabsToolbar),
#browser-bottombox:-moz-lwtheme > *,
#main-window[tabsontop="false"]:-moz-lwtheme #TabsToolbar:nth-last-child(1n+2),
#main-window[tabsontop="false"]:-moz-lwtheme #PersonalToolbar[collapsed="false"] + #TabsToolbar,
#main-window[tabsontop="false"]:-moz-lwtheme [id^="__customToolbar"]:not([collapsed="true"]) ~ #TabsToolbar,
#sidebar-header:-moz-lwtheme
        {background-color: RGBa(0, 84, 227
, .5) !important; }

#main-window:-moz-lwtheme #
TabsToolbar,

#main-window:-moz-lwtheme #
toolbar-menubar,
#main-window[tabsontop="false"]:-moz-lwtheme #nav-bar
    {background-color: transparent !important; }
#main-window[stylish-platform*="Linux"] #nav-bar
    {background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)) !important; }
#main-window[stylish-platform*="Linux"][tabsontop="true"]:not([lwtheme="true"]) #TabsToolbar
    {box-shadow: 0 -1PX 0 threedshadow inset !important; }
#FindToolbar,
#addon-bar
    {border-top: 2px solid rgb(0, 0, 0) !important;
    -moz-border-top-colors: rgb(128, 128, 128) rgba(255, 255, 255, .5) !important; }
#FindToolbar:not([hidden="true"]) ~ #addon-bar
    {border-top: none !important; }
#navigator-toolbox:after
        {background-image: -moz-linear-gradient(RGBa(0, 84, 227
, .2), transparent) !important; }
.tabbrowser-tab[selected="true"]
    {background-image: -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
                           -moz-linear-gradient(RGB(0, 84, 227
), RGB(0, 84, 227
)) !important; }
#main-window[tabsontop="false"] .tabbrowser-tab[selected="true"]
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),

2011年03月24日 09点03分 15
level 6
拱白菜 楼主
                           -moz-linear-gradient(RGB(0, 84, 227
), RGB(0, 84, 227
)) !important; }
.tabbrowser-tab:not([selected="true"]),
.tabs-newtab-button
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(195, 195, 195, .5), rgba(90, 90, 90, .5)),
                           -moz-linear-gradient(RGB(0, 84, 227
), RGB(0, 84, 227
)) !important; }
.tabbrowser-tab:not([selected="true"]):hover,
.tabs-newtab-button:hover
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(245, 245, 245, .6), rgba(140, 140, 140, .6)),
                           -moz-linear-gradient(RGB(0, 84, 227
), RGB(0, 84, 227
)) !important; }
.tabbrowser-tab[pinned][titlechanged]
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-radial-gradient(50% 3px, circle cover, white 2%, rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(rgba(190, 190, 190, .5), rgba(110, 110, 110, .5) 50%),
                           -moz-linear-gradient(RGB(0, 84, 227
), RGB(0, 84, 227
)) !important; }
.tabbrowser-tab[pinned][titlechanged]:hover
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-radial-gradient(50% 3px, circle cover, white 2%, rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(rgba(240, 240, 240, .6), rgba(160, 160, 160, .6) 50%),

2011年03月24日 09点03分 16
level 6
拱白菜 楼主
                           -moz-linear-gradient(RGB(0, 84, 227
), RGB(0, 84, 227
)) !important; }
.tabbrowser-tab[selected="true"]:-moz-lwtheme
    {background-image: -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
                           -moz-linear-gradient(RGBa(0, 84, 227
, .5), RGBa(0, 84, 227
, .5)) !important; }
#main-window[tabsontop="false"] .tabbrowser-tab[selected="true"]:-moz-lwtheme
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
                           -moz-linear-gradient(RGBa(0, 84, 227
, .5), RGBa(0, 84, 227
, .5)) !important; }
.tabbrowser-tab:not([selected="true"]):-moz-lwtheme,
.tabs-newtab-button:-moz-lwtheme
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(RGBa(0, 84, 227
, .5), RGBa(0, 84, 227
, .5)) !important; }
.tabbrowser-tab:not([selected="true"]):-moz-lwtheme:hover,
.tabs-newtab-button:-moz-lwtheme:hover
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .1) 50%),
                           -moz-linear-gradient(RGBa(0, 84, 227
, .5), RGBa(0, 84, 227
, .5)) !important; }
.tabbrowser-tab[pinned][titlechanged]:-moz-lwtheme
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-radial-gradient(50% 3px, circle cover, white 2%, rgba(255, 255, 255, 0) 50%),

2011年03月24日 09点03分 17
level 6
拱白菜 楼主
                           -moz-linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(RGBa(0, 84, 227
, .5), RGBa(0, 84, 227
, .5)) !important; }
.tabbrowser-tab[pinned][titlechanged]:-moz-lwtheme:hover
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-radial-gradient(50% 3px, circle cover, white 2%, rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .1) 50%),
                           -moz-linear-gradient(RGBa(0, 84, 227
, .5), RGBa(0, 84, 227
, .5)) !important; }
}
@media all and (-moz-windows-compositor){
#browser-bottombox:-moz-lwtheme > *
    {border: none !important; }
#browser-bottombox:not(:-moz-lwtheme)
    {background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)) !important; }
#browser-bottombox:not(:-moz-lwtheme) > *:not(#sync-notifications)
    {-moz-appearance: -moz-win-glass !important; }
#FindToolbar,
#addon-bar
    {box-shadow: 0 1px 0 rgba(26, 26, 26, .4) inset !important; }
#FindToolbar:not([hidden="true"]) ~ #addon-bar
    {box-shadow: none !important; }

#addon-bar > *:not(#
status-bar)
    {margin-top: 1px !important;
    margin-bottom: -1px !important; }
#sidebar-header,
#navigator-toolbox > *,
#browser-bottombox,
#browser-bottombox > *,
#main-window[tabsontop="false"] #TabsToolbar:nth-last-child(1n+2),
#main-window[tabsontop="false"] #PersonalToolbar[collapsed="false"] + #TabsToolbar,
#main-window[tabsontop="false"] [id^="__customToolbar"]:not([collapsed="true"]) ~ #TabsToolbar
    {background-color: RGBA(0, 84, 227
, 0) !important; }
#TabsToolbar,
#toolbar-menubar,
#main-window[tabsontop="false"] #nav-bar
    {background-color: transparent !important; }
#main-window[tabsontop="true"][sizemode="maximized"]:not([lwtheme="true"]) #TabsToolbar
    {background-image: none !important;
    box-shadow: 0 -0PX 0 rgba(26, 26, 26, .4) inset !important; }

2011年03月24日 09点03分 18
level 6
拱白菜 楼主

#main-window[tabsontop="true"][sizemode="normal"]:not([lwtheme="true"]) #nav-bar
    {box-shadow: rgba(26, 26, 26, .4) 0 -0PX 0 !important;
         border-top: none !important;
         margin-top: 1px !important; }
#main-window[sizemode="normal"] #browser-bottombox > *
        {border-left: 1px solid rgba(26, 26, 26, .4) !important;
         border-right: 1px solid rgba(26, 26, 26, .4) !important; }
#navigator-toolbox:after
        {background-color: RGBA(0, 84, 227
, 0) !important;
         background-image: -moz-linear-gradient(rgba(26, 26, 26, .4), rgba(26, 26, 26, .4)),
                           -moz-linear-gradient(rgbA(160, 160, 160, 0), rgbA(160, 160, 160, 0)) !important; }
.tabbrowser-tab[selected="true"]
    {background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 16%),
                           -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
                           -moz-linear-gradient(RGBA(0, 84, 227
, 0), RGBA(0, 84, 227
, 0)) !important; }
#main-window[tabsontop="false"] .tabbrowser-tab[selected="true"]
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 1px, transparent 1px),
                           -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
                           -moz-linear-gradient(RGBA(0, 84, 227
, 0), RGBA(0, 84, 227
, 0)) !important; }
.tabbrowser-tab:not([selected="true"]),
.tabs-newtab-button
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 0PX, transparent 1px),
                           -moz-linear-gradient(rgba(195, 195, 195, .5), rgba(90, 90, 90, .5)),
                           -moz-linear-gradient(RGBA(0, 84, 227

2011年03月24日 09点03分 19
level 6
拱白菜 楼主
, 0), RGBA(0, 84, 227
, 0)) !important; }
.tabbrowser-tab:not([selected="true"]):hover,
.tabs-newtab-button:hover
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 0PX, transparent 1px),
                           -moz-linear-gradient(rgba(245, 245, 245, .6), rgba(140, 140, 140, .6)),
                           -moz-linear-gradient(RGBA(0, 84, 227
, 0), RGBA(0, 84, 227
, 0)) !important; }
.tabbrowser-tab[pinned][titlechanged]
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 0PX, transparent 1px),
                           -moz-radial-gradient(50% 3px, circle cover, white 2%, rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(rgba(190, 190, 190, .5), rgba(110, 110, 110, .5) 50%),
                           -moz-linear-gradient(RGBA(0, 84, 227
, 0), RGBA(0, 84, 227
, 0)) !important; }
.tabbrowser-tab[pinned][titlechanged]:hover
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, .4), rgba(26, 26, 26, .4) 0PX, transparent 1px),
                           -moz-radial-gradient(50% 3px, circle cover, white 2%, rgba(255, 255, 255, 0) 50%),
                           -moz-linear-gradient(rgba(240, 240, 240, .6), rgba(160, 160, 160, .6) 50%),
                           -moz-linear-gradient(RGBA(0, 84, 227
, 0), RGBA(0, 84, 227
, 0)) !important; }
}
@media not all and (-moz-windows-compositor){
/**/}
@media all and (-moz-windows-theme: luna-blue), all and (-moz-windows-theme: luna-olive), all and (-moz-windows-theme: luna-silver), all and (-moz-windows-theme: royale), all and (-moz-windows-theme: zune){
#main-window:not([inFullscreen])
    {margin-top: -2px !important;
    padding-top: 2px !important; }
}
@media not all and (-moz-windows-compositor){
#titlebar

2011年03月24日 09点03分 20
level 6
拱白菜 楼主
    {visibility: hidden !important; }
#titlebar-content
    {visibility: visible !important; }
#main-window[sizemode="maximized"][tabsintitlebar="true"]:not(:-moz-lwtheme) #TabsToolbar
    {background-image: -moz-linear-gradient(bottom, rgba(26, 26, 26, 0.4) 1px, rgba(0, 0, 0, 0.05) 1px, transparent 50%) !important; }
#main-window[chromehidden=""]:not(:-moz-lwtheme),
#navigator-toolbox:not(:-moz-lwtheme) > *
    {background-color: RGB(0, 84, 227
) !important; }
#main-window[tabsontop="false"]:not([stylish-platform*="Linux"])
#navigator-toolbox > *:not(#
TabsToolbar)
    {background-image: none !important; }
#main-window[tabsontop="true"][stylish-platform*="Linux"]:not([lwtheme="true"]) #TabsToolbar
    {background-color: RGB(0, 84, 227
) !important;
    -moz-appearance: none !important; }
}
@media all and (-moz-windows-compositor){
#main-window[chromehidden=""]
    {background-color: RGBA(0, 84, 227
, 0) !important; }
#navigator-toolbox:not(:-moz-lwtheme) > *,
#browser-bottombox:not(:-moz-lwtheme),
#sidebar-header,
#main-window:not(:-moz-lwtheme) #TabsToolbar:nth-last-child(1n+2),
#main-window[tabsontop="false"]:not(:-moz-lwtheme) #PersonalToolbar[collapsed="false"] + #TabsToolbar,
#main-window[tabsontop="false"]:not(:-moz-lwtheme) [id^="__customToolbar"]:not([collapsed="true"]) ~ #TabsToolbar
    {background-color: transparent !important; }
.tabbrowser-tab[selected="true"]:not(:-moz-lwtheme)
    {background-image: -moz-linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .5)),
                           -moz-linear-gradient(RGBA(0, 84, 227
, 0) 000%, transparent 000%) !important; }
#browser-bottombox
    {border-radius: 0 !important; }
}/**/

2011年03月24日 09点03分 21
1 2 尾页