Firefox - Enable Aero Glass Transparency

Page 12 of 14 FirstFirst ... 21011121314 LastLast

  1. Posts : 141
    Dual Boot 7600 RTM x64
       #110

    ifro4u said:
    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 Computer


  2. Posts : 58
    Windows 7 Ultimate 7600 RTM - Windows Server 2008 R2 7600 RTM Dual Boot
       #111

    All my sites are now transparent after adding myspace to the whitelist. Anyone know why?
      My Computer


  3. Posts : 141
    Dual Boot 7600 RTM x64
       #112

    Psych0t1c said:
    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 Computer


  4. Posts : 58
    Windows 7 Ultimate 7600 RTM - Windows Server 2008 R2 7600 RTM Dual Boot
       #113

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


  5. Posts : 141
    Dual Boot 7600 RTM x64
       #114

    Psych0t1c said:
    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 Computer


  6. Posts : 58
    Windows 7 Ultimate 7600 RTM - Windows Server 2008 R2 7600 RTM Dual Boot
       #115

    Ok now none of my sites are glassed but sevenforums. This is confusing.
      My Computer


  7. Posts : 141
    Dual Boot 7600 RTM x64
       #116

    Psych0t1c said:
    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 Computer


  8. XoS
    Posts : 4
    Windows 7
       #117

    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 Computer


  9. Posts : 141
    Dual Boot 7600 RTM x64
       #118

    XoS said:
    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 Computer


  10. XoS
    Posts : 4
    Windows 7
       #119

    [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 Computer


 
Page 12 of 14 FirstFirst ... 21011121314 LastLast

  Related Discussions
Our Sites
Site Links
About 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 00:45.
Find Us