google: fix some inline style that hides the page - firefox-fix-web - Firefox extension: fix web
 (HTM) git clone git://git.codemadness.org/firefox-fix-web
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 39766339ab5c6e2b4f8815eda2422f6cca685c71
 (DIR) parent 702d00a37d2537ac8b58187d023b93862c4b220e
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu,  1 Jul 2021 22:46:33 +0200
       
       google: fix some inline style that hides the page
       
       Diffstat:
         M extension/manifest.json             |       4 ++++
         A extension/site/google.js            |       6 ++++++
       
       2 files changed, 10 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/extension/manifest.json b/extension/manifest.json
       @@ -78,6 +78,10 @@
                        {
                                "matches": [ "*://*.blender.org/*" ],
                                "css": [ "site/blender.css" ]
       +                },
       +                {
       +                        "matches": [ "*://*.google.com/*", "*://*.google.nl/*" ],
       +                        "js": [ "site/google.js" ]
                        }
                ]
        }
 (DIR) diff --git a/extension/site/google.js b/extension/site/google.js
       @@ -0,0 +1,6 @@
       +// fix-up some inline-style that sets "display:none" and hides the page.
       +for (var o of document.querySelectorAll("body>span>style")) {
       +        var text = o.innerText || "";
       +        if (text.indexOf("display:none") != 0 && text.length < 255)
       +                o.innerText = "";
       +}