4 ms·
Here's a script Mac users can run: osascript -e 'tell application "System Events"' -e 'set currentVolume to output volume of (get volume settings)' -e 'set
by Buttons840 3y ago
Here's a script Mac users can run:
osascript -e 'tell application "System Events"' -e 'set currentVolume to output volume of (get volume settings)' -e 'set volume with output muted' -e 'repeat 16 times' -e 'key code 145' -e 'delay 0.1' -e 'end repeat' -e 'delay 12' -e 'set volume output volume currentVolume' -e 'repeat 16 times' -e 'key code 144' -e 'delay 0.1' -e 'end repeat' -e 'end tell'
It will mute the sound and blank the screen for 12 second, then restore them (adjust as desired). Mac doesn't give programmatic access to the screen brightness, so that cannot be restored perfectly.
This isn't a good technical solution to ads, but it might be an acceptable life solution. Enjoy the blank screen, look around the room, breath, enjoy the quiet. And be content that this "solution" will work to block ads so long as users have control over their own computers.