From bdf3f37492008f92ae0561b130bf65b98e0c1c51 Mon Sep 17 00:00:00 2001 From: E-RELevant Date: Sun, 19 Jan 2020 12:27:52 +0200 Subject: [PATCH] global: hide alerts feature Choose between 3 different states: 1. Show all alerts 2. Hide "Turn on desktop notifications" alert 3. Hide all alerts fixes issue #88. --- wa.user.styl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wa.user.styl b/wa.user.styl index 6bfac825..d81a09db 100644 --- a/wa.user.styl +++ b/wa.user.styl @@ -22,6 +22,12 @@ @var checkbox chat_b_c 'Enable blurred contacts' 0 @var checkbox chat_b_img 'Enable blurred images/videos' 0 +@var select alerts 'Alerts' { + 'Show all *': 'show ', + 'Hide "Allow notifications" ': 'notifications ', + 'Hide all ': 'hide ', +} + @var select chat_msg_t 'Message tails style' { 'Default *': 'default ', 'Minimal ': 'minimal ', @@ -940,6 +946,8 @@ * { c: blue } [data-icon ^= 'chevron-'] path { v: blue } [data-icon ^= 'alert-'] path[fill ^= '#FFF'] { fill: blue } + /// Alerts -> Remove 'allow desktop notifications' alert. + if ( alerts == 'notifications' ) { display: none i } } /// Phone battery low. ._2t3oV { @@ -947,6 +955,8 @@ [data-icon ^= 'chevron-'] path { v: red } [data-icon ^= 'alert-'] path[fill ^= '#FFF'] { fill: red } } + /// Alerts -> Remove all alerts. + if ( alerts == 'hide' ) { display: none i } } /// Search. /div[class *= 'ZP8RM'] {