Skip to content

Instantly share code, notes, and snippets.

@shuntksh
Created November 12, 2023 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuntksh/274b85e984e038640051bde3b091954c to your computer and use it in GitHub Desktop.
Save shuntksh/274b85e984e038640051bde3b091954c to your computer and use it in GitHub Desktop.
Is Arc Browser
// https://stackoverflow.com/questions/76123232/can-javascript-detect-the-arc-browser
console.log(
getComputedStyle(document.documentElement)
.getPropertyValue('--arc-palette-title') ? 'Is Arc' : 'Is Not Arc'
);
@shuntksh
Copy link
Author

// https://webmasters.stackexchange.com/questions/142229/can-i-tell-if-visitors-are-using-arc-browser
    window.addEventListener("load", function() {
        setTimeout(function(){
            console.log('1 second after window load: ', getComputedStyle(document.documentElement).getPropertyValue('--arc-palette-background') ? 'Yes' : 'No');
        }, 1000);
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment