question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Launch chrome with un-muted audio

See original GitHub issue

Is there a simple way to launch Chrome without --mute-audio flag? Or is it possible to clear out all default flags without forking the project and doing it manually?

Seems like there’s no option right now other than reverting to old version #65 #134 #28 #38 #70 #122 #124

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DusanBrejkacommented, Feb 21, 2019

Until someone comes up with a viable solution, this is the only thing I could do as I wasn’t able to properly build and test it due to type errors… I feel ashamed as a developer but whatever, it gets the shit done 😃

// PLEASE COME UP WITH A BETTER SOLUTION
// DON'T USE IT IN PRODUCTION

const _fs = require('fs');
const _path = require('path');

let clResolve = require.resolve('chrome-launcher');
if(clResolve) {
    clResolve = _path.join(_path.dirname(clResolve), 'flags.js');
    if(_fs.existsSync(clResolve)) {
        let content = _fs.readFileSync(clResolve, 'utf8');
        let newContent = content.replace(/^(\s+'--mute-audio')/gm, '//$1');
        if(content !== newContent) _fs.writeFileSync(clResolve, newContent, 'utf8');
    }
}

let chrome = require('chrome-launcher');
chrome.launch({ ... }); // Chrome will be launched without --mute-audio

Chrome-launcher contributors, please merge #134, #124 or #133

0reactions
paulirishcommented, Dec 22, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Enable Tab Audio Muting in Google Chrome (2022)
How to Enable Tab Audio Muting in Google Chrome in Windows 10 / Windows 11 # Chrome #Google #HowTo #Mac #BigSur #Catalina ...
Read more >
Try These Fixes When Your Sound is Not Working in Chrome
1. Launch Chrome. 2. Click on the three dots (or three horizontal lines) in the upper right-hand corner of the browser. 3. Go...
Read more >
Chrome Sound Not Working in Windows? Here's the Fix
The easiest way to fix Chrome sound on Windows is to ensure your audio hardware isn't malfunctioning, unmute the website, enable Chrome sound, ......
Read more >
How to enable Tab Audio Muting in Google Chrome?
To silence a tab, open it and click the black speaker symbol. The tab will get muted instantly. Smart Mute Extension. SmartMute Extension....
Read more >
Chrome Sound Not Working: 8 Fixes - groovyPost
Another simple thing you can do is check if the Chrome tab is set to Mute. Each tab can be muted, but you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found