enable glass to certain web content only
How to enable glass to certain web content ONLY (no other pages to be affected) such as:
- Download Manager opened in tab (chrome://mozapps/content/downloads/downloads.xul)
- Bookmark Manager opened in tab (Sidebar and content area only) (chrome://browser/content/places/places.xul)
- Sidebar: History/Bookmarks ... etc. (contents area only)
- About:Blank aka new tab
+ use the "all glass firefox mod 2.1.2" addon along with it instead of using "Glass every single part of firefox 3.5".
one more thing can you add comments or clean/rearrange your code, may be I could be able to do this but the code is hard to read
- Download Manager opened in tab (chrome://mozapps/content/downloads/downloads.xul)
- Bookmark Manager opened in tab (Sidebar and content area only) (chrome://browser/content/places/places.xul)
- Sidebar: History/Bookmarks ... etc. (contents area only)
- About:Blank aka new tab
+ use the "all glass firefox mod 2.1.2" addon along with it instead of using "Glass every single part of firefox 3.5".
one more thing can you add comments or clean/rearrange your code, may be I could be able to do this but the code is hard to read
Comments
@-moz-document url(chrome://*insert your area here*.xul), url(chrome://*insert another area here*.xul){ *insert code here* }
some form of "comments or clean/rearrange code" will come at some point.
Oh, i use what i linked in the description and didn't try it with All Glass... can't find the time to get to that profile! So, another words, i don't know if it will work for you but might give you an idea or two ;-)
EDIT: OK, it appears most of my styles do work with All Glass except for Addons Manager, Scrollbar and Sidebar styles (Stylish, Bookmarks and History). I don't think i'll be able to make them work either since i use Glasser (needs to be bumped it for Fx 3.5.2) and everything works fine there (well, scrollbar is a bit funny but that's beyond me, has to do with black bg everywhere to make it glassy. It work in sidebar and web pages except for textboxes and internal editors?!). So, menu, tooltips, options, editors (dialogs), ... all that works all right.
Oh well, at least i tried :-)
@ajaycee this style enables the glass for web content but you will still need a style for that specific website or it will look like the pic makondo posted.
/*-----------------------------------------------------------------------------------------------*/
@-moz-document url-prefix("about:")
{
html
{
background-color:#000 !important;
opacity:0.99!important
}
}
#main-window
{
-moz-appearance: -moz-win-glass !important ;
}
/*-----------------------------------------------------------------------------------------------*/
but it will result the same bug (text transparency) again
glassing #main-window is not efficient so I tried to go further with DOM inspector to find any other property from within the html that can work since #main-window or any other property wouldn't work inside html, found nothing.
my question is how to tell #main-window to be glassed only when I'am at @-moz-document url-prefix("about:") only. I feel like giving up on this.
/*Note: This will work in conjunction with most other 4chan styles as well. If you use this and modify it, let me know! I am always looking for new styles to use ;)*/
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document domain("blush.com.my")
{
html|body
{ background:
url("http://bayimg.com/image/kakhjaaca.jpg")
no-repeat fixed bottom right,
#000 !important; opacity: .99 !important;
text-shadow: 0px 0px 3px #aaa, 0px 0px 7px #aaa, 0px 0px 7px #aaa, 0px 0px 3px #aaa, 0px 0px 7px #aaa, 0px 0px 7px #aaa
}
}
#main-window[stylish-domain$="blush.com.my"]
{ padding-top: 1200px !important;
margin-top: -1200px !important;}
----------------------------------
used with "http://www.blush.com.my/black.htm"
about:blank doesn't have a background so you cant make it opaque. if someone knows how to edit "about:blank"