Introduction
Introduction Statistics Contact Development Disclaimer Help
google: fix some inline style that hides the page - firefox-fix-web - Firefox e…
git clone git://git.codemadness.org/firefox-fix-web
Log
Files
Refs
README
LICENSE
---
commit 39766339ab5c6e2b4f8815eda2422f6cca685c71
parent 702d00a37d2537ac8b58187d023b93862c4b220e
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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" ]
}
]
}
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 = "";
+}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.