diff --git a/data/uas.txt b/data/uas.txt index 2239d5b..15bd72b 100644 --- a/data/uas.txt +++ b/data/uas.txt @@ -7,4 +7,4 @@ Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Mozilla/5.0 (Windows NT 10.0; WOW64; rv:114.0) Gecko/20100101 Firefox/114.0 Mozilla/5.0 (Linux; Android 11; SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Mobile Safari/537.36 Mozilla/5.0 (Linux; U; Android 11; en-US; SM-G960F Build/RP1A.200720.012) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.77 Mobile Safari/537.36 -Mozilla/5.0 (iPad; CPU OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1 +Mozilla/5.0 (iPad; CPU OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1 \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index f1186e8..0e3a277 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,6 +22,7 @@ function App() { const [lastUpdatedPPS, setLastUpdatedPPS] = useState(Date.now()); const [lastTotalPackets, setLastTotalPackets] = useState(0); const [currentTask, setCurrentTask] = useState(null); + const [audioVol, setAudioVol] = useState(100); const audioRef = useRef(null); useEffect(() => { @@ -90,6 +91,14 @@ function App() { }; }, []); + + useEffect(() => { + if (audioRef.current) { + audioRef.current.volume = audioVol / 100; + } + }, [audioVol]) + + const addLog = (message: string) => { setLogs((prev) => [message, ...prev].slice(0, 12)); }; @@ -111,6 +120,7 @@ function App() { // Play audio if (audioRef.current) { audioRef.current.currentTime = isQuick ? 9.5 : 0; + audioRef.current.volume = audioVol / 100; audioRef.current.play(); } @@ -146,7 +156,7 @@ function App() {
-

+

Miku Miku Beam

@@ -155,10 +165,10 @@ function App() {

-
+
{/* Miku GIF */}
setTarget(e.target.value)} placeholder="Enter target URL or IP" - className="px-4 py-2 rounded-lg border border-pink-200 focus:border-pink-500 focus:ring-2 focus:ring-pink-200 outline-none" + className="px-4 py-2 border border-pink-200 rounded-lg outline-none focus:border-pink-500 focus:ring-2 focus:ring-pink-200" disabled={isAttacking} /> -
+