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

help removing hostname from Chrome notifications #716

Open
ffigiel opened this issue May 15, 2020 · 1 comment
Open

help removing hostname from Chrome notifications #716

ffigiel opened this issue May 15, 2020 · 1 comment

Comments

@ffigiel
Copy link

ffigiel commented May 15, 2020

On chrome, the notification shown by visiting https://davidwalsh.name/demo/notifications-api.php and clicking "Show a Notification" has the following body:

davidwalsh.name

I am the body text!

On firefox, the notification body is simply I am the body text!

I'm not sure what's causing it and I found no useful information online. This is likely not related to dunst, but I hope to start a conversation around this problem in case there are more folks with this issue.

Looking at dbus-monitor output, it seems chrome includes a link to the website:

   string "<a href="https://davidwalsh.name/">davidwalsh.name</a>

I am the body text!"

I wonder if there's a way to post-process this notification and remove the link?

Installation info

  • Version: 1.4.1 (2019-07-03)
  • Install type: package
  • Distro and version: Kubuntu 20.04
@tsipinakis
Copy link
Member

I'm not sure what's causing it and I found no useful information online. This is likely not related to dunst, but I hope to start a conversation around this problem in case there are more folks with this issue.

Well, since it doesn't happen on firefox, my guess is the obvious: Chrome inserts the website address at the start of the body.

There's currently no functionality to preprocess notifications and remove parts from the body.

If it's chromium (rather than chrome) you can try to find where the notifications are generated and patch that part out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants