[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: media-views.js
const CUSTOM_CSS_ELEMENT_ID = 'media-views-important'; const processRules = (rules) => { const result = []; [...rules].forEach((rule) => { switch (rule.type) { case CSSRule.STYLE_RULE: result.push(addImportant(rule)); break; case CSSRule.MEDIA_RULE: result.push(`@media ${rule.conditionText} {`); processRules(rule.cssRules, result); result.push('}'); break; default: result.push(rule.cssText); break; } }); return result; }; const addImportant = (rule) => { const declarations = [...rule.style].map( (prop) => `${prop}: ${rule.style.getPropertyValue(prop)} !important`, ); return `${rule.selectorText} { ${declarations.join('; ')}; }`; }; const getCustomMediaViewsCss = () => { const link = document.getElementById('media-views-css'); if (!link) return null; const processedRules = processRules(link.sheet?.cssRules); if (!processedRules?.length) return null; const css = processedRules.join('\n'); const additionalCSS = ` div:has(> .media-modal) {z-index: 999999 !important} .media-frame { h1, h2, h3, h4, h5, h6 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important; color: #1d2327 !important; } .uploader-inline-content { color: #1d2327 !important; } .media-sidebar { color: #646970 !important; } .media-search-input-label, .load-more-count { color: #3c434a !important; } } `; return `${additionalCSS} ${css}`; }; export const addCustomMediaViewsCss = () => { if (document.getElementById(CUSTOM_CSS_ELEMENT_ID)) return; const css = getCustomMediaViewsCss(); if (!css) return; const style = document.createElement('style'); style.id = CUSTOM_CSS_ELEMENT_ID; style.textContent = css; document.head.appendChild(style); }; export const removeCustomMediaViewsCss = () => { const style = document.getElementById(CUSTOM_CSS_ELEMENT_ID); if (style) style.remove(); };
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.78 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830