Skip to content

Instantly share code, notes, and snippets.

@alvnfaiz
Created January 2, 2025 05:05
Show Gist options
  • Save alvnfaiz/a8e4c5beb28564846763dcab05585a23 to your computer and use it in GitHub Desktop.
Save alvnfaiz/a8e4c5beb28564846763dcab05585a23 to your computer and use it in GitHub Desktop.
javascript: (function () { const e = '\n @media not all and (display-mode: standalone) {\n @media screen and (min-width: 1700px) {\n .app-wrapper-web ._aigs {\n max-width: 100% !important;\n }\n }\n }\n @media not all and (display-mode: standalone) {\n @media screen and (min-width: 1441px) {\n .app-wrapper-web ._aigs:not(._as6h) {\n top: 0 !important;\n width: 100% !important;\n max-width: 100% !important;\n height: 100% !important;\n }\n }\n }\n ', t = document.createElement("style"); t.type = "text/css", t.id = "custom-css-rules"; const n = document.getElementById("custom-css-rules"); n && n.remove(), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e)), document.head.appendChild(t); const o = document.createElement("div"); o.textContent = "CSS rules applied!", o.style.cssText = "position:fixed;top:20px;right:20px;background:#4CAF50;color:white;padding:10px 20px;border-radius:4px;z-index:999999;font-family:Arial,sans-serif;", document.body.appendChild(o), setTimeout(() => o.remove(), 2000) })();
@alvnfaiz
Copy link
Author

alvnfaiz commented Jan 2, 2025

This code to make your whatsapp web width 100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment