Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Firefox - Enable Aero Glass Transparency

20 Dec 2009   #110
xxrazor

Dual Boot 7600 RTM x64
 
 

Quote   Quote: Originally Posted by ifro4u View Post
dude i got this after applying transparency on Firefox can you explained what to do for full transparency

I have have the same problem, see my post here, as i know what the problem is, but i do not know how to fix it, still waiting for a answer.

https://www.sevenforums.com/customiza...letely-61.html

Cheers
xxrazor


My System SpecsSystem Spec
.
28 Dec 2009   #111
Psych0t1c

Windows 7 Ultimate 7600 RTM - Windows Server 2008 R2 7600 RTM Dual Boot
 
 

All my sites are now transparent after adding myspace to the whitelist. Anyone know why?
My System SpecsSystem Spec
28 Dec 2009   #112
xxrazor

Dual Boot 7600 RTM x64
 
 

Quote   Quote: Originally Posted by Psych0t1c View Post
All my sites are now transparent after adding myspace to the whitelist. Anyone know why?
In the white list, be care full of spaces and comers, this is important,

cheers
xxrazor
My System SpecsSystem Spec
28 Dec 2009   #113
Psych0t1c

Windows 7 Ultimate 7600 RTM - Windows Server 2008 R2 7600 RTM Dual Boot
 
 

Yeah there aren't any spaces. Could someone post a screenshot of how the whitelist should look
My System SpecsSystem Spec
.

28 Dec 2009   #114
xxrazor

Dual Boot 7600 RTM x64
 
 

Quote   Quote: Originally Posted by Psych0t1c View Post
Yeah there aren't any spaces. Could someone post a screenshot of how the whitelist should look
Code:
/******************************************************************************
Copyright 2008 Matthew Holder. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

   1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
   2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*********************************************************************************/


var inFullscreen = false;

var toolbox = null;
var sidebar = null;
var statbar = null;
var browbox = null;
var vScrollBar = null;
var hScrollBar = null;

/*-----------------------------------WHITELIST---------------------------------------------**/


var whiteListItem = new Array(
"www.google.com",
"www.google.com.au",
"www.sevenforums.com",
"images.google.com.au",
"blogsearch.google.com.au",
"video.google.com.au",
"news.google.com.au",
"maps.google.com.au",
"books.google.com.au",
"scholar.google.com.au",
"picasaweb.google.com.au",
"sites.google.com.au",
"code.google.com.au",
"groups.google.com.au",
"reader.google.com.au",
"www.youtube.com"


                              /*ignore whitespace, but don't forget to put the domain in quotes and leave a comma off the last one*/
                              )
                              

/*********getfile method disbled bt mozdev due to bugs:(*/
//  try
//  {        
//    var   whiteListFile = IO.getFile("Profile", "WhiteList.txt")
//  }
//   catch (err)
//  {
//    alert("didn't work")
//  }
//
//while(stream.available())
//whiteListItem.push(stream.readLine());



/************************** interface with dwm                *******************************************/    
var dwm = Components.classes["@sixxgate.com/DwmCalls/CDwmCalls;1"].createInstance();
dwm = dwm.QueryInterface(Components.interfaces.IDwmCalls);


/**************************************Event Handlers*******************************************************/

function DWM_Glasser_OnFullscreen()
{
    this.handleEvent = function(e)
    {
        if (!dwm.GlassEnabled){  return;};
        
        if(e.attrName == "inFullscreen" && e.newValue == "true")
        {
            try
            {
                dwm.ExtendFrameIntoWindow(0, 0, 0, 0);
        
            }
            catch (err)
            {   // Something failed
                    window.alert(err);
            }
            inFullscreen = true;
        }
        else if (e.attrName == "inFullscreen")
        {
            goGoGadgetGlass()
            inFullscreen = false;
        }
    };
};


/*--------------------------------------------------------------------------------------------------------------------*/
function DWM_Glasser_OnAttrChange()
{
    this.handleEvent = function(e)
    {
        if (!dwm.GlassEnabled || inFullscreen == true) 
        {
            return;
        }          
        else
        {
            goGoGadgetGlass()
        }
   }
}
/*--------------------------------------------------------------------------------------------------------------------*/
function ChangeGlasserTheme()     
{
   if (dwm.GlassEnabled)
   {
      for (var i = 0; i != window.document.styleSheets.length; ++i)
      {
         if (window.document.styleSheets[i].href == "chrome://glasser/skin/overlay.css")
         {
            window.document.styleSheets[i].disabled = false;
            break;
         }
      }
      Glasser_OnAttrChange.handleEvent(e);
   }
   else
   {
      for (var i = 0; i != window.document.styleSheets.length; ++i)
      {
         if (window.document.styleSheets[i].href == "chrome://glasser/skin/overlay.css")
         {
            window.document.styleSheets[i].disabled = true;
            break;
         }
      }
   }
};
/*--------------------------------------------------------------------------------------------------------------------*/
function DWM_Glasser_OnLoad()    
{
   this.handleEvent = function(e)
   {

        toolbox = window.document.getElementById("navigator-toolbox");
         if (toolbox)

        toolbox.addEventListener("DOMAttrModified", Glasser_OnFullscreen, false);  
        toolbox.addEventListener("DOMAttrModified", Glasser_OnAttrChange, true); 
        sidebar = window.document.getElementById("sidebar-splitter");
        sidebar.addEventListener("DOMAttrModified", Glasser_OnAttrChange, true);
      
     
        statbar = window.document.getElementById("browser-bottombox");
        statbar.addEventListener("DOMAttrModified", Glasser_OnAttrChange, true)
        
        detectContentChange.init(e)
        window.addEventListener("resize", calScrollBar.init, false);

        

      ChangeGlasserTheme();
  };
};

/********************************************Functions********************************************************/
function DWM_Glasser_OnGlassChange()     
{
   this.handleEvent = function(e)
   {
      ChangeGlasserTheme();
   };
};

var detectContentChange =
{
  init: function()
  {
    var fBrowser = document.getElementById("appcontent");   
    if(fBrowser)
      fBrowser.addEventListener("DOMContentLoaded", detectContentChange.onContentChange, true);
    var container = gBrowser.tabContainer;
    if(container)
      container.addEventListener("TabSelect", detectContentChange.onContentChange, false);
  },
  
  onContentChange: function(e)
  {
      
        if(gBrowser.selectedBrowser.contentDocument.domain == null) return; 
        var x;
        for (x in whiteListItem)
        {
            if (gBrowser.selectedBrowser.contentDocument.domain==whiteListItem[x])
            var inWhiteList = true;
        }
        if(inWhiteList==true || gBrowser.selectedBrowser.contentDocument.location == "about:blank")
        { 
            try
            {
                 browbox = window.document.getElementById("browser");
                 
            }
            catch (err)
            {   // Something failed
                window.alert(err);
            }
            inWhiteList = false;
        }
        else
        {
             browbox = null;
        };
        calScrollBar.init()
  },
}

var calScrollBar =
{
    init: function()
          {
             
              calScrollBar.vert();
              calScrollBar.horz();
              Glasser_OnAttrChange();
              

          },
    vert: function()
    {
        
        try
        {
             var bBrowser = gBrowser.selectedBrowser.contentDocument.body
              var eBrowser = gBrowser.selectedBrowser.contentDocument.documentElement
              if(bBrowser == null || eBrowser == null)
             {return;}
             else
             {
                if((bBrowser.scrollHeight > bBrowser.clientHeight) || (eBrowser.scrollHeight > eBrowser.clientHeight))
                {
                    vScrollBar = 18;
        
                }
                else
                {
                    vScrollBar = 0;
                }
              }
        }
        catch(error)
        {
        alert(error)
        };
        
    },
    horz: function()
    {
        try
        {
             var bBrowser = gBrowser.selectedBrowser.contentDocument.body
             var eBrowser = gBrowser.selectedBrowser.contentDocument.documentElement
             if(bBrowser == null || eBrowser == null)
             {return;}
             else
             {
                if((bBrowser.scrollWidth > bBrowser.clientWidth) || (eBrowser.scrollWidth > eBrowser.clientWidth))
                {
                    hScrollBar = 18;
                }
                else
                {
                    hScrollBar = 0;
                    
                }
             }
        }
        catch(error)
        {
        alert(error)
        };
    }
};

function goGoGadgetGlass()
{  
   try
   { 
    var tabbar = gBrowser.tabContainer.boxObject;
    var win = window.document.getElementById("main-window");
    var height = null;
    var top = null;
    var bottom = null;
    var left = null;
    var full = null;
    var aiostoolbar = window.document.getElementById("aios-toolbar");
    var aiosttoolbox = window.document.getElementById("aios-toggle-toolbar");
    
/**********Calaculations for extent of glass into frame******/
/*-------- top  ------*/                
    if(toolbox!=null)
    {    top = tabbar.y + tabbar.height;}
    else
    {top = 0;};
    /*-------- bottom ----*/
    if(statbar!=null)
    {    bottom =  win.boxObject.height - statbar.boxObject.y}
    else
    {bottom = 0;};
    /*--------right -----*/
    
    /*------left---------*/
    if(sidebar!=null)
    {
        if((aiostoolbar == null) || (aiostoolbar != null && sidebar.boxObject.width != 0))
        {    left = sidebar.boxObject.width + sidebar.boxObject.x;}
        else if(aiostoolbar != null && aiostoolbar.boxObject.width == 0 && sidebar.boxObject.width == 0)    
        {    left = aiosttoolbox.boxObject.width}
        else if(aiostoolbar != null && aiostoolbar.boxObject.width != 0 && sidebar.boxObject.width == 0)
        {    left = aiostoolbar.boxObject.width}
    
    }
    else
    {left = 0;};
    
    /*------full---------*/
    if(browbox!=null)
    {full = browbox.boxObject.height;}
    else
    {full = 0;};

/*-------------------------------------------------------------*/

     dwm.ExtendFrameIntoWindow(top, vScrollBar, bottom+full+hScrollBar, left)  
   }
   catch (err)
   {   // Something failed
        window.alert(err);
   }
}

/*              instantiate all the above event handlers                     */    
var Glasser_OnFullscreen = new DWM_Glasser_OnFullscreen();
var Glasser_OnAttrChange = new DWM_Glasser_OnAttrChange();
var Glasser_OnLoad = new DWM_Glasser_OnLoad();    
var Glasser_OnGlassChange = new DWM_Glasser_OnGlassChange();

/*******            get the ball rolling              ****/    


window.addEventListener("load", Glasser_OnLoad, false); 



/****-------------------------- this bit deals with windows dwm ------------------------------------*****/
    
dwm.AttachToWindow(window);
dwm.OnGlassChange = Glasser_OnGlassChange;

There you go.

cheers
xxrazor
My System SpecsSystem Spec
28 Dec 2009   #115
Psych0t1c

Windows 7 Ultimate 7600 RTM - Windows Server 2008 R2 7600 RTM Dual Boot
 
 

Ok now none of my sites are glassed but sevenforums. This is confusing.
My System SpecsSystem Spec
28 Dec 2009   #116
xxrazor

Dual Boot 7600 RTM x64
 
 

Quote   Quote: Originally Posted by Psych0t1c View Post
Ok now none of my sites are glassed but sevenforums. This is confusing.
Sorry mate, change the domain, mine is .com.au, you need to change them.

cheers
xxxrazor
My System SpecsSystem Spec
30 Jan 2010   #117
XoS

Windows 7
 
 

Any of you genoiuses up to the task of creating a complete installer, which includes firefox, glasser, google glass and the lot??
go on u know u want to...
My System SpecsSystem Spec
31 Jan 2010   #118
xxrazor

Dual Boot 7600 RTM x64
 
 

Quote   Quote: Originally Posted by XoS View Post
Any of you genoiuses up to the task of creating a complete installer, which includes firefox, glasser, google glass and the lot??
go on u know u want to...
Yes i am working on it now, silent install, Firefox glass with Google glass, the only issue is the domain will be .com and not .com.au as a example. I see this being a issue only due to the change required to the white-list after installation.

cheers
xxrazor
My System SpecsSystem Spec
31 Jan 2010   #119
XoS

Windows 7
 
 

[QUOTE=xxrazor;540268]

Much appreciation for the effort xxrazor.. when are you expecting it completed.. where will you post it, also is it for x64 only or both, is it compatible with ff3.6 or does your installer include its own?

how about posting it on mozilla add-ons website..?
My System SpecsSystem Spec
Reply

 Firefox - Enable Aero Glass Transparency




Thread Tools




Similar help and support threads
Thread Forum
Transparency - Enable Full Clear Glass Transparency
How to Enable "Full Clear Glass Transparency" in Windows 7 By default when you enabled transparency in Windows 7, the transparency will be blurred a bit in the window borders. This will show you how to have the window borders fully clear and transparent like glass instead for your current...
Tutorials
Enable Aero and Transparency in Windows 7 Home Basic n Starter
Hi! Shon here.. Today I will show you how to enable transparency and all the aero effects in Windows 7 Home Basic and Starter. 1.Download Aero PatchWindows 7 Starter and Home Basic by shikharev (Direct link) : ...
Themes and Styles
Let your Windows 7 starter/Home Basic aquire Aero Glass/Transparency
i discovered an add-on/patch for those who have windows7 Starter/Home Basic. For i know Starter/Home Basic doesn't have the Glass-like options that the other versions of Windows 7 have.. So i just wanna share it with you guys.. :))
Themes and Styles
Traybar Transparency - Enable Full Clear Glass !!!
Hello here my TIP for Windows 7 Aero Traybar Transparency - Enable Full Clear Glass !!! Step 1: make you backup for file C:\windows\resources\aero.msstyles !!! Step 2: download and extract the glassbar.zip file -> !!! Step 3: starting Resource Hacker (V 3.5.2.84) Resource Hacker or Restorator...
Customization
help for Enable Windows Aero Glass Transparency
HI .. i m using a TV tuner card software(honestech TVR) in my windows 7 32 bit.. but when i launch this software it change my Transparency to normal... i searched for updated version of that software but there is no available ,.. everything is working fine, only problem is of Aero Glass...
Customization
How i Enable Full Clear Glass Transparency for taskbar!
How i Enable Full Clear Glass Transparency for taskbar!!!
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:29.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App