Introduction
Introduction Statistics Contact Development Disclaimer Help
CSS: display transition animation, force opacity to 1, reset inline image style…
git clone git://git.codemadness.org/firefox-fix-web
Log
Files
Refs
README
LICENSE
---
commit 811b6ccb33519cc9dd18fba6bb9f03e0a757bd31
parent 50c08611c320e7df13a56ce7ecaf2b36681733a7
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 2 Sep 2018 21:16:21 +0200
CSS: display transition animation, force opacity to 1, reset inline image style
Diffstat:
A extension/global/anim.css | 4 ++++
M extension/global/fiximg.js | 2 ++
M extension/manifest.json | 3 ++-
3 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/extension/global/anim.css b/extension/global/anim.css
@@ -0,0 +1,4 @@
+* {
+ transition: 0s !important;
+ opacity: 1 !important;
+}
diff --git a/extension/global/fiximg.js b/extension/global/fiximg.js
@@ -1,9 +1,11 @@
(function() {
Array.from(document.querySelectorAll("img[data-mediumthumb]")).map(fun…
img.src = img.getAttribute("data-mediumthumb");
+ img.style.display = null; // reset inline display style
});
Array.from(document.querySelectorAll("img[data-original]")).map(functi…
img.src = img.getAttribute("data-original");
+ img.style.display = null; // reset inline display style
});
})();
diff --git a/extension/manifest.json b/extension/manifest.json
@@ -13,7 +13,8 @@
"content_scripts": [
{
"matches": [ "*://*/*" ],
- "js": [ "global/focus.js", "global/fiximg.js" ]
+ "js": [ "global/focus.js", "global/fiximg.js" ],
+ "css": [ "global/anim.css" ]
},
{
"matches": [ "*://www.gamekings.tv/*" ],
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.