From 429b81e6adba6ccc0df8b260ba7cee6fa5a4bcae Mon Sep 17 00:00:00 2001 From: Autli Date: Tue, 27 Oct 2026 13:18:00 +0500 Subject: [PATCH] feat(cinema): multi-layer adblock & popup shield, iframe anti-popunder sandbox, adguard click interceptor & hud toggle in 0.0.7 --- index.html | 40 +++++++++++++++++++++++++++ package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/pages/cinema/Cinema.css | 31 +++++++++++++++++++++ src/pages/cinema/Cinema.tsx | 54 ++++++++++++++++++++++++++++++++++++- 7 files changed, 128 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 11a8833..524f823 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,46 @@ has + + diff --git a/package.json b/package.json index 1bf7e18..673f599 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "has", "private": true, - "version": "0.0.6", + "version": "0.0.7", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7ddbf62..1471446 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1581,7 +1581,7 @@ dependencies = [ [[package]] name = "has" -version = "0.0.5" +version = "0.0.6" dependencies = [ "base64 0.22.1", "bcrypt", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 7d1c8e4..b5783d9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "has" -version = "0.0.6" +version = "0.0.7" description = "has" authors = ["autli"] edition = "2024" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b5c654c..935e20b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "has", - "version": "0.0.6", + "version": "0.0.7", "identifier": "com.has.tauri-app", "build": { "beforeDevCommand": "npm run dev", diff --git a/src/pages/cinema/Cinema.css b/src/pages/cinema/Cinema.css index d2fa75b..e2d0bd9 100644 --- a/src/pages/cinema/Cinema.css +++ b/src/pages/cinema/Cinema.css @@ -769,6 +769,37 @@ color: #ffffff; } +/* AdBlock Guard pill */ +.has-cinema-player-hud-btn.adblock-pill { + font-size: 12px; + padding: 7px 13px; + border-radius: 9999px; + background: rgba(16, 185, 129, 0.12); + border: 1px solid rgba(16, 185, 129, 0.35); + color: #a7f3d0; + transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); +} + +.has-cinema-player-hud-btn.adblock-pill:hover { + background: rgba(16, 185, 129, 0.25); + border-color: #34d399; + color: #ffffff; +} + +.has-cinema-player-hud-btn.adblock-pill.active { + background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.5)); + border-color: #10b981; + color: #ffffff; + box-shadow: 0 0 16px rgba(16, 185, 129, 0.55); +} + +.has-cinema-player-hud-btn.adblock-pill:focus-visible, +.has-cinema-player-hud-btn.adblock-pill[data-tv-focused="true"] { + outline: 3px solid #10b981 !important; + box-shadow: 0 0 25px rgba(16, 185, 129, 0.85) !important; + transform: scale(1.05); +} + /* Server selector pills in top HUD */ .has-cinema-player-hud-servers { display: flex; diff --git a/src/pages/cinema/Cinema.tsx b/src/pages/cinema/Cinema.tsx index c8025c0..444e019 100644 --- a/src/pages/cinema/Cinema.tsx +++ b/src/pages/cinema/Cinema.tsx @@ -618,6 +618,7 @@ export default function Cinema({ const [currentKpId, setCurrentKpId] = useState(null); const [currentImdbId, setCurrentImdbId] = useState(null); const [currentAllohaUrl, setCurrentAllohaUrl] = useState(null); + const [isAdBlockEnabled, setIsAdBlockEnabled] = useState(true); const [isFullscreen, setIsFullscreen] = useState(false); const [kodikResults, setKodikResults] = useState([]); const [selectedKodikLink, setSelectedKodikLink] = useState(null); @@ -3728,6 +3729,27 @@ export default function Cinema({ 🔄 Сменить источник + {/* AdBlock Guard toggle */} + + {/* Single Settings button (Contains voiceover studios & mirrors) */} + + {/* External Tools */}