{"id":13476159,"url":"https://github.com/freaktechnik/notification-sounds","last_synced_at":"2025-04-04T22:30:36.968Z","repository":{"id":2519112,"uuid":"46723790","full_name":"freaktechnik/notification-sounds","owner":"freaktechnik","description":"Makes a sound when a notification is shown","archived":false,"fork":false,"pushed_at":"2024-04-10T17:11:12.000Z","size":4983,"stargazers_count":19,"open_issues_count":10,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-11T00:14:47.788Z","etag":null,"topics":["firefox","notification","sound","webextension"],"latest_commit_sha":null,"homepage":"https://addons.mozilla.org/firefox/addon/notification-sound/?utm_source=github\u0026utm_content=about","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freaktechnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-11-23T13:58:31.000Z","updated_at":"2024-04-15T13:00:55.221Z","dependencies_parsed_at":"2024-01-19T18:28:33.532Z","dependency_job_id":"7586c6ff-edb3-45a3-ba17-954301235c2c","html_url":"https://github.com/freaktechnik/notification-sounds","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fnotification-sounds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fnotification-sounds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fnotification-sounds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fnotification-sounds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freaktechnik","download_url":"https://codeload.github.com/freaktechnik/notification-sounds/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247260261,"owners_count":20909968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firefox","notification","sound","webextension"],"created_at":"2024-07-31T16:01:27.188Z","updated_at":"2025-04-04T22:30:36.624Z","avatar_url":"https://github.com/freaktechnik.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ![icon](images/Notification_Sound_Icon_Square.svg) Notification Sound\n\nMakes a sound when a notification is shown.\n\nOverrides Website's `Notification` constructor and `showNotification` method on\nServiceWorker registrations to get notified when they're called. Other extensions\ncan also let this extension know that they've shown a notification.\n\nCurrently can not play a sound when a ServiceWorker shows a notification.\n\nSupports the `silent` and `sound` option on the `Notification` constructor.\n\n## Official Download\n\n[![addons.mozilla.org/](https://addons.cdn.mozilla.net/static/img/addons-buttons/AMO-button_2.png)](https://addons.mozilla.org/firefox/addon/notification-sound/?utm_source=github\u0026utm_content=readme)\n\n## Extension integration\n\nFor extensions to trigger a sound when creating a notification, they have to send the following message:\n\n```js\nbrowser.runtime.sendMessage(\"@notification-sound\", \"new-notification\");\n```\n\n`new-notification` returns a Promise that resolves to a boolean, indicating, whether the sound was played (based on user settings).\n\nStarting from Firefox 56, an extension can just add the following code to the top level of its background page to send the message whenever it shows a notification:\n\n```js\nbrowser.notifications.onShown.addListener(() =\u003e {\n    browser.runtime.sendMessage(\"@notification-sound\", \"new-notification\");\n});\n```\n\n## Notification tester\n\n[Notification Tester](https://freaktechnik.github.io/notification-sounds/)\n\n## Translations\n\nTranslations are managed on [Transifex](https://www.transifex.com/freaktechnik/notification-sound/). Feel free to request a new language if you are willing to translate into it.\n\n## Support and FAQ\n\nhttps://discourse.mozilla.org/t/support-notification-sound/23758\n\n## License\n\nThe code that makes up this project is licensed under the MPL-2.0\n\nThe pop.flac sound is licensed under the [CC-3.0-BY license](https://creativecommons.org/licenses/by/3.0/) and was created by [Tobiasz 'unfa' Karoń](https://freesound.org/people/unfa/), original available on [freesound.org](https://freesound.org/people/unfa/sounds/245645/)\n\nThe icon was created by @elioqoshi via request on http://opensourcedesign.net/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaktechnik%2Fnotification-sounds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaktechnik%2Fnotification-sounds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaktechnik%2Fnotification-sounds/lists"}