Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global: hide alerts feature #101

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions wa.user.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ',
Expand Down Expand Up @@ -940,13 +946,17 @@
* { 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 {
* { c: red }
[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'] {
Expand Down