mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 06:03:03 -04:00
UserScript: disable theme ui, instead recommend Stylus
This commit is contained in:
parent
fae15dbdfe
commit
c19827a0e5
7 changed files with 48 additions and 10 deletions
|
@ -53,3 +53,11 @@ export function chooseFile(mimeTypes: string) {
|
|||
setImmediate(() => document.body.removeChild(input));
|
||||
});
|
||||
}
|
||||
|
||||
export function getStylusWebStoreUrl() {
|
||||
const isChromium = (navigator as any).userAgentData?.brands?.some(b => b.brand === "Chromium");
|
||||
|
||||
return isChromium
|
||||
? "https://chromewebstore.google.com/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne"
|
||||
: "https://addons.mozilla.org/firefox/addon/styl-us/";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue