├── MuteIntercom-Icon@2x.png ├── README.md ├── mute.js ├── manifest.json ├── LICENSE └── mute.html /MuteIntercom-Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rayfeed/muteintercom/HEAD/MuteIntercom-Icon@2x.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MuteIntercom 2 | Chrome extension to mute sounds from Intercom widgets. https://muteinter.com 3 | 4 | [Download from Chrome Web Store](https://chrome.google.com/webstore/detail/gfcdbfadghgpcbaiiedpdhpdolffkojl) 5 | 6 | ![img](https://muteinter.com/share-card.jpg) 7 | -------------------------------------------------------------------------------- /mute.js: -------------------------------------------------------------------------------- 1 | chrome.webRequest.onBeforeRequest.addListener( 2 | details => { 3 | try { 4 | const url = new URL(details.url); 5 | const hasIntercomSound = url.href.startsWith( 6 | "https://js.intercomcdn.com/audio/" 7 | ); 8 | 9 | return { cancel: hasIntercomSound }; 10 | } catch (err) { 11 | console.error(err.stack); 12 | return { cancel: false }; 13 | } 14 | }, 15 | { urls: [""] }, 16 | ["blocking"] 17 | ); 18 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | 4 | "name": "MuteIntercom", 5 | "description": "Mute all sound notifications from Intercom.", 6 | "version": "1.0", 7 | "author": "Wojtek Witkowski ", 8 | "homepage_url": "https://github.com/rayfeed/muteintercom", 9 | 10 | "browser_action": { 11 | "default_icon": "MuteIntercom-Icon@2x.png", 12 | "default_popup": "mute.html", 13 | "default_title": "Mute Intercom Sounds" 14 | }, 15 | "permissions": [ 16 | "webRequest", 17 | "webRequestBlocking", 18 | "https://js.intercomcdn.com/*" 19 | ], 20 | "background": { 21 | "scripts": ["./mute.js"] 22 | }, 23 | "icons": { 24 | "128": "MuteIntercom-Icon@2x.png" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Rayfeed 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /mute.html: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | MuteIntercom 12 | 50 | 51 | 52 | 53 | 54 | 55 |
56 |

MuteIntercom

57 |
58 | 64 |
65 |
66 | 67 | 68 | 69 | --------------------------------------------------------------------------------